Template:randommainpage: Difference between revisions
imported>HRWikiMirrorBot Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert) |
imported>HRWikiMirrorBot Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert) |
||
| Line 1: | Line 1: | ||
<!-- | <!-- Wayback HTML body (hrwiki.org); RawHtml --> | ||
Returns the filename of a random main page, including the special main pages (with the exception of the | <html> | ||
<p>Returns the filename of a random main page, including the special main pages (with the exception of the <a href="/index.php?title=Strong_Bad_Main_Page" title="Strong Bad Main Page">Strong Bad Main Page</a>, which doesn't have its own URL). | |||
</p><p>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). | |||
</p> | |||
<hr/> | |||
<a id="Usage" name="Usage"></a><h3> <span class="mw-headline">Usage</span></h3> | |||
<ul><li><code>{{randommainpage}}</code>: main8 | |||
</li><li><code>{{randommainpage|oldhr=true}}</code>: main8 <i>(excludes any main pages after <a href="/index.php?title=Main_Page_26" title="Main Page 26">26</a>)</i> | |||
</li><li><code>[[HR:{{randommainpage}}.html]]</code>: <a class="extiw" href="https://homestarrunner.com/main8.html" title="hr:main8.html">HR:main8.html</a> | |||
</li></ul> | |||
<a id="To_update" name="To_update"></a><h3> <span class="mw-headline">To update</span></h3> | |||
<ul><li>Increment the number of regular main pages whenever a new one is added. | |||
</li><li>To add a special main page, increment the appropriate number and add the filename to the lower list. | |||
</li></ul> | |||
<div class="visualClear"></div> | |||
</html> | |||
Latest revision as of 21:00, 18 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
{{randommainpage}}: main8{{randommainpage|oldhr=true}}: main8 (excludes any main pages after 26)[[HR:{{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.