This template uses Lua: |
This template pulls in the content of one sub-subpage randomly chosen from a set of numerically-named sub-subpages. Designed primarily for use on portals.
{{Transclude random subpage
|max =
|subpage =
}}
{{Transclude random subpage
|max =
|subpage =
|rootpage =
|several =
|prefix =
|more =
|leftfooter =
|rightfooter =
}}
|max=
|subpage=
|rootpage=
|several=
|prefix=
|prefix=*
to generate an unordered list.|more=
|leftfooter=
|rightfooter=
Examples of usage of almost all parameters can be seen in Portal:Mathematics/Did you know and Portal:Doctor Who.
Portal:Foo
, then the subpage could be Portal:Foo/Selected bar
.Portal:Foo/Selected bar
), place the template {{numbered subpages}}
on that page and save it.To see an example, see Portal:Psychiatry -- it uses this template and a corresponding subpage scheme.
This template was created to enable {{Random portal component}}
to be replaced with standard portal box notation, including {{Box-header colour}}
and {{Box-footer}}
.
Example:
{{Random portal component|max=22|header=Selected article}}
could be replaced by this:
{{Box-header colour|Selected article}} {{Transclude random subpage |max=22|subpage=Selected article}} {{Box-footer}}
This also allows a box to be modified (edited) independently of its contents, and to match the other boxes on the page.