Template:Random portal component/doc: Difference between revisions

From ScoutWiki, For Everyone, Everywhere involved with Scouting and Guiding...
Jump to navigation Jump to search
(Add further detail from Wikipedia + category)
(Content removed - requires with further knowledge to implement this.)
 
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
Content removed - requires with further knowledge to implement this.
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
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 [[Special:Whatlinkshere/Template:{{BASEPAGENAME}}|what links here]].
 
Here's a stale example of the output generated by this template.
{{Portal:Box-header | title=header
|editpage=Template:Lorem ipsum
|border=Black          <!-- This is the color of the borders around Box Sections -->
|titleforeground=#ffe247    <!-- This is the color of the Box Section Title Bar text -->
|titlebackground=#A9A9A9  <!-- This is the color of the Box Section Title Bar -->
|background=#FFFFFF      <!-- This is the color of the Box Section background -->
|foreground=black}}      <!-- This is the color of the Box Section text -->
{{Lorem ipsum}}
{{Portal:box-footer | 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. Numbers under ten do '''not''' start with 0.
* This template calls '''/box-header''' and '''/box-footer''' for it's colour styles and closing, consequently - these must be present in your portal design for it to work correctly.
 
==Parameters==
Using this template for your portal page is easy! Just include these parameters
* '''header''':(optional) The header text of the box. If no header is passed to the template, the default is the subpage name.
* '''footer''': (optional) The footer text in the box.e.g Nominations for  selected picture
* '''rootpage''': (optional) The root of the transcluded page, e.g. Portal:Foo
* '''subpage''': The subpage of the transcluded page, e.g. Selected picture
* '''max''': The maximum number of sub-subpages. Must be a positive integer.
* '''seed''': (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.
 
== See also ==
* {{tl|Selected article}}
* {{tl|Selected biography}}
* {{tl|Selected business}}
* {{tl|Selected DYK}}
* {{tl|Selected ingredient}}
* {{tl|Selected picture}}
* {{tl|Selected quote}}
 
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category: Portal components]]
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
</includeonly>

Latest revision as of 17:17, 25 January 2009

Content removed - requires with further knowledge to implement this.