Template:Random portal component/doc

This page will only parse completely when it is included in another page.
[redirect]Documentation subpageTemplate:r from other template
[/redirect]

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!
[h="2"]Example[/h]
To see a real time example, see [special="Whatlinkshere/Template:[template]BASEPAGENAME[/template]"]what links here[/special].
Here's a stale example of the output generated by this template.
[template]Portal:Box-header | title=header
|editpage=Template:Lorem ipsum
|border=Black
|titleforeground=#ffe247
|titlebackground=#A9A9A9
|background=#FFFFFF
|foreground=black[/template]
[template]Lorem ipsum[/template]
[template]Portal:box-footer | footer [/template]
[h="2"]Prerequisites[/h]
[list][*] Create a subpage first. If your portal is [b]Portal:Foo[/b], then a subpage could be [b]Portal:Foo/Selected picture[/b].
[*] Under that subpage, create subpage to that page, named 1, 2, 3, ... with no prefixing 0. Numbers under ten do [b]not[/b] start with 0.
[/LIST]
[h="2"]Parameters[/h]
Using this template for your portal page is easy! Just include these parameters
[list][*] [b]header[/b]:(optional) The header text of the box. If no header is passed to the template, the default is the subpage name.
[*] [b]footer[/b]: (optional) The footer text in the box.e.g Nominations for selected picture
[*] [b]rootpage[/b]: (optional) The root of the transcluded page, e.g. Portal:Foo
[*] [b]subpage[/b]: The subpage of the transcluded page, e.g. Selected picture
[*] [b]max[/b]: The maximum number of sub-subpages. Must be a positive integer.
[*] [b]seed[/b]: (optional) The default seed is 17 and can be set to any other integer value (used to generate distinct values on the same page). Prime numbers work best, such as 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, and 113.
[/LIST]

Tags for this Page

Similar Pages

  1. Comments: 0
    Last Post: 11-23-2008, 09:27 PM
  2. Comments: 0
    Last Post: 11-23-2008, 09:27 PM
  3. Comments: 0
    Last Post: 11-23-2008, 09:27 PM
  4. Random portal component
    By Arjan in forum Template
    Comments: 0
    Last Post: 11-23-2008, 09:27 PM
  5. Random portal component with nominate
    By Arjan in forum Template
    Comments: 0
    Last Post: 11-23-2008, 08:22 PM

Bookmarks

Posting Permissions

Posting Permissions
  • You may not create new articles
  • You may not edit articles
  • You may not protect articles
  • You may not post comments
  • You may not post attachments
  • You may not edit your comments
BIRTHRIGHT, DUNGEONS & DRAGONS, D&D, the BIRTHRIGHT logo, and the D&D logo are trademarks owned by Wizards of the Coast, Inc., a subsidiary of Hasbro, Inc., and are used by permission. ©2002-2010 Wizards of the Coast, Inc.