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
Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert)
 
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 -->
<!-- Wayback HTML body (hrwiki.org); RawHtml -->
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).
<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>


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 ===
 
<div class="visualClear"></div>
* {{randommainpage}}: main8
</html>
* {{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.
* 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 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.