Template randommainpage: Difference between revisions
imported>HRWikiMirrorBot Imported from hrwiki.org via Wayback Machine (HTML→wikitext) |
imported>HRWikiMirrorBot Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert) |
||
| Line 1: | Line 1: | ||
<!-- Mirrored from Homestar Runner Wiki (hrwiki.org) via Wayback Machine | <!-- Mirrored from Homestar Runner Wiki (hrwiki.org) via Wayback Machine --> | ||
Returns the filename of a random main page, including the special main pages (with the exception of the [[Strong Bad Main Page]], which doesn't have its own URL). | Returns the filename of a random main page, including the special main pages (with the exception of the [[Strong Bad Main Page]], which doesn't have its own URL). | ||
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). | 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}}: main8 | ||
* | * {{randommainpage|oldhr=true}}: main8 ''(excludes any main pages after [[Main Page 26|26]])'' | ||
* | * [[HR:{{randommainpage}}.html]]: [https://homestarrunner.com/main8.html HR:main8.html] | ||
=== To update === | |||
* Increment the number of regular main pages whenever a new one is added. | * 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. | * To add a special main page, increment the appropriate number and add the filename to the lower list. | ||
[[Category:Link Box Templates]] | |||
Latest revision as of 14:24, 14 July 2026
Returns the filename of a random main page, including the special main pages (with the exception of the Strong Bad Main Page, which doesn't have its own URL).
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
- Template:Randommainpage: main8
- Template:Randommainpage: main8 (excludes any main pages after 26)
- [[HR:Template:Randommainpage.html]]: HR:main8.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.