Template:Random component/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Script error: No such module "Message box". This template generates a box for a portal home page. The content is drawn randomly from a pre-defined list. Using this template makes editing portal page easy!

Example

To see a real time example, see what links here.

Here's a stale example of the output generated by this template.

Script error: No such module "Box-header". Script error: No such module "lorem ipsum".

footer

Prerequisites

  • Create a subpage first. If your portal is Portal:Foo, then a subpage could be Portal:Foo/Selected picture.
  • Under that subpage, create subpage to that page, named 1, 2, 3, ... with no prefixing 0. And it does not start with 0.

Parameters

Using this template for your portal page is easy! Just include these parameters

  • subpage: The subpage of the transcluded page, e.g. Selected picture
  • max: The maximum number of sub-subpages. Must be a positive integer.

See also