Template:randommainpage
From Homestar Runner Wiki
(Difference between revisions)
(There are twenty-five now) |
DorianGray (Talk | contribs) (Update rando) |
||
Line 1: | Line 1: | ||
<includeonly>{{#setvar: Total_Main_Pages | {{#expr: | <includeonly>{{#setvar: Total_Main_Pages | {{#expr: | ||
- | + | 26 <!-- number of regular main pages --> + {{#setvar: Special_Main_Pages | | |
3 <!-- number of special main pages; see list below --> |show}} }} | 3 <!-- number of special main pages; see list below --> |show}} }} | ||
Revision as of 11:42, 12 April 2010
Returns the filename of a random main page, including the special main pages.
The same value is returned for every instance of the template on a given page (the template only chooses a random number once per page).
Usage
{{randommainpage}}
: main24[[HR:{{randommainpage}}.html]]
: HR:main24.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.