Template:randommainpage
From Homestar Runner Wiki
(Difference between revisions)
DorianGray (Talk | contribs) (Update rando) |
(better category) |
||
Line 24: | Line 24: | ||
*To add a special main page, increment the appropriate number and add the filename to the lower list. | *To add a special main page, increment the appropriate number and add the filename to the lower list. | ||
- | [[Category: | + | [[Category:Link Box Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 21:42, 25 November 2017
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}}
: main2[[HR:{{randommainpage}}.html]]
: HR:main2.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.