Work in progress — This wiki is an active migration / mirror of Homestar Runner Wiki and is not finished yet. Account registration and public editing are turned off until the migration is further along. For status updates, see the migration thread on the forums.

Template randommainpage: Difference between revisions

From HR Wiki Twice
Jump to navigationJump to search
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; HTML converted to wikitext. Formatting may be imperfect. -->
<!-- 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).


-----
----


<span id="usage"></span>
=== Usage ===
=== <span class="mw-headline">Usage</span> ===


* <code>{{randommainpage}}</code>: main8
* {{randommainpage}}: main8
* <code>{{randommainpage|oldhr=true}}</code>: main8 ''(excludes any main pages after [[Main Page 26|26]])''
* {{randommainpage|oldhr=true}}: main8 ''(excludes any main pages after [[Main Page 26|26]])''
* <code>[[HR:{{randommainpage}}.html]]</code>: [https://homestarrunner.com/main8.html HR:main8.html]
* [[HR:{{randommainpage}}.html]]: [https://homestarrunner.com/main8.html HR:main8.html]


<span id="to-update"></span>
=== To update ===
=== <span class="mw-headline">To update</span> ===


* 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]]
<div id="catlinks" class="catlinks">
 
<div id="mw-normal-catlinks">
 
[/wiki/Special:Categories Category]: <span dir="ltr">[[Category:Link Box Templates|Link Box Templates]]</span>
 
</div>
 
</div>



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

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.