Template:randommainpage
From Homestar Runner Wiki
(Difference between revisions)
It's dot com (Talk | contribs) (how to update) |
It's dot com (Talk | contribs) (the template only chooses a random number once per page) |
||
Line 13: | Line 13: | ||
| <!-- default --> main{{#expr: {{#var:Get_Main_Page}} - {{#var:Special_Main_Pages}} }} | | <!-- default --> main{{#expr: {{#var:Get_Main_Page}} - {{#var:Special_Main_Pages}} }} | ||
}}</includeonly><noinclude>Returns the filename of a random main page, including the special main pages. | }}</includeonly><noinclude>Returns the filename of a random main page, including the special main pages. | ||
+ | |||
+ | The template only chooses a random number once per page (the same value is returned for every instance of the template on a given page). | ||
---- | ---- | ||
===Usage=== | ===Usage=== |
Revision as of 20:43, 18 December 2007
Returns the filename of a random main page, including the special main pages.
The template only chooses a random number once per page (the same value is returned for every instance of the template on a given page).
Usage
{{randommainpage}}
: main26[[HR:{{randommainpage}}.html]]
: HR:main26.html
To update
- Increment the number of regular main pages whenever a new one is added.
- To add a special main page, increment the appropriate number and add the filename to the lower list.