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.

Help Quickbar: 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 -->
'''Here's how to add a link to your quickbar:'''
'''Here's how to add a link to your quickbar:'''


{| id="toc" class="wikitable toc" summary="Contents"
== Preparation ==
|-
| <div id="toctitle">
 
<span id="contents"></span>
== Contents ==
 
</div>
* [#Preparation 1 Preparation]
* [#The_Code_for_Monobook_.28the_default_skin.29 2 The Code for Monobook (the default skin)]
** [#Fine_Tuning 2.1 Fine Tuning]
* [#The_Code_for_Cologne_Blue 3 The Code for Cologne Blue]
** [#Fine_Tuning_2 3.1 Fine Tuning]
* [#The_Code_for_TaviStyle 4 The Code for TaviStyle]
** [#Fine_Tuning_3 4.1 Fine Tuning]
 
|}
 
<span id="preparation"></span>
== <span class="mw-headline">Preparation</span> ==


1. First, decide what kind of link you would like to add:
1. First, decide what kind of link you would like to add:
Line 31: Line 12:
2. Find the complete address of that page, and copy it down.
2. Find the complete address of that page, and copy it down.


<span id="the-code-for-monobook-the-default-skin"></span>
== The Code for Monobook (the default skin) ==
== <span class="mw-headline">The Code for Monobook (the default skin)</span> ==


Go to your monobook.js page by clicking [/wiki/Special:MyPage/monobook.js here].
Go to your monobook.js page by clicking [/wiki/Special:MyPage/monobook.js here].
Line 38: Line 18:
Edit the page, and insert the following lines of code:
Edit the page, and insert the following lines of code:


<pre>{{subst:utilities}}
<pre>
{{subst:utilities}}


function addLinks()
function addLinks()
Line 44: Line 25:
   with (utilities)
   with (utilities)
   {
   {
     addMonobookQuickbarLink(&quot;http://www.hrwiki.org/etc&quot;, &quot;link title&quot;, &quot;watchlist&quot;); ******
     addMonobookQuickbarLink("http://www.hrwiki.org/etc", "link title", "watchlist"); ******
   }
   }
}
}
if (window.addEventListener) window.addEventListener('load', addLinks, false);
if (window.addEventListener) window.addEventListener('load', addLinks, false);
else if (window.attachEvent) window.attachEvent('onload', addLinks);</pre>
else if (window.attachEvent) window.attachEvent('onload', addLinks);
<span id="fine-tuning"></span>
</pre>
=== <span class="mw-headline">Fine Tuning</span> ===
 
=== Fine Tuning ===


Now, look at the line marked with ******:
Now, look at the line marked with ******:


* Remove the ******, it's only there so you can find the line.
* Remove the ******, it's only there so you can find the line.
* There are three things you need to replace, in &quot;quotes&quot;, separated by commas.
* There are three things you need to replace, in "quotes", separated by commas.
** The first is the complete URL to the page you want to link to.
** The first is the complete URL to the page you want to link to.
** The second is what you want the link to say.
** The second is what you want the link to say.
Line 65: Line 47:
*** Replace it with '''mycontris''' if you want the link to appear before your '''my contributions''' link.
*** Replace it with '''mycontris''' if you want the link to appear before your '''my contributions''' link.
*** Replace it with '''logout''' if you want the link to appear before your '''log out''' link.
*** Replace it with '''logout''' if you want the link to appear before your '''log out''' link.
*** Make it blank (ie just two quote marks <code>&quot;&quot;</code>) if you want the link to appear after your '''log out''' link.
*** Make it blank (ie just two quote marks "") if you want the link to appear after your '''log out''' link.
* If you want to add several links, make multiple copies of this one line (don't copy the whole script).
* If you want to add several links, make multiple copies of this one line (don't copy the whole script).


Now, save your edit, and reload the page.
Now, save your edit, and reload the page.


<span id="the-code-for-cologne-blue"></span>
== The Code for Cologne Blue ==
== <span class="mw-headline">The Code for Cologne Blue</span> ==


Go to your cologneblue.js page by clicking [/wiki/Special:MyPage/cologneblue.js here].
Go to your cologneblue.js page by clicking [/wiki/Special:MyPage/cologneblue.js here].
Line 77: Line 58:
Edit the page, and insert the following lines of code:
Edit the page, and insert the following lines of code:


<pre>{{subst:utilities}}
<pre>
{{subst:utilities}}


function addLinks()
function addLinks()
Line 83: Line 65:
   with (utilities)
   with (utilities)
   {
   {
     addCologneBlueTopbarLink(&quot;http://www.hrwiki.org/etc&quot;, &quot;link title&quot;, true); ******
     addCologneBlueTopbarLink("http://www.hrwiki.org/etc", "link title", true); ******
   }
   }
}
}
if (window.addEventListener) window.addEventListener('load', addLinks, false);
if (window.addEventListener) window.addEventListener('load', addLinks, false);
else if (window.attachEvent) window.attachEvent('onload', addLinks);</pre>
else if (window.attachEvent) window.attachEvent('onload', addLinks);
<span id="fine-tuning-1"></span>
</pre>
=== <span class="mw-headline">Fine Tuning</span> ===
 
=== Fine Tuning ===


Now, look at the line marked with ******:
Now, look at the line marked with ******:
Line 97: Line 80:
** The first is the complete URL to the page you want to link to.
** The first is the complete URL to the page you want to link to.
** The second is what you want the link to say.
** The second is what you want the link to say.
** The third says where you want the link to be in the quickbar. This can be <code>true</code> to put it at the start, or <code>false</code> to put it at the end.
** The third says where you want the link to be in the quickbar. This can be true to put it at the start, or false to put it at the end.
** You can also replace <code>addCologneBlueTopbarLink</code> with <code>addCologneBlueSubtopbarLink</code> to add it to the second top bar (the one just below the categories)
** You can also replace addCologneBlueTopbarLink with addCologneBlueSubtopbarLink to add it to the second top bar (the one just below the categories)
* If you want to add several links, make multiple copies of this one line (don't copy the whole script).
* If you want to add several links, make multiple copies of this one line (don't copy the whole script).


Now, save your edit, and reload the page.
Now, save your edit, and reload the page.


<span id="the-code-for-tavistyle"></span>
== The Code for TaviStyle ==
== <span class="mw-headline">The Code for TaviStyle</span> ==


Go to your tavistyle.js page by clicking [/wiki/Special:MyPage/tavistyle.js here].
Go to your tavistyle.js page by clicking [/wiki/Special:MyPage/tavistyle.js here].
Line 110: Line 92:
Edit the page, and insert the following lines of code:
Edit the page, and insert the following lines of code:


<pre>{{subst:utilities}}
<pre>
{{subst:utilities}}


function addLinks()
function addLinks()
Line 116: Line 99:
   with (utilities)
   with (utilities)
   {
   {
     addTavistyleTopbarLink(&quot;http://www.hrwiki.org/etc&quot;, &quot;link title&quot;, 1, true); ******
     addTavistyleTopbarLink("http://www.hrwiki.org/etc", "link title", 1, true); ******
   }
   }
}
}
if (window.addEventListener) window.addEventListener('load', addLinks, false);
if (window.addEventListener) window.addEventListener('load', addLinks, false);
else if (window.attachEvent) window.attachEvent('onload', addLinks);</pre>
else if (window.attachEvent) window.attachEvent('onload', addLinks);
<span id="fine-tuning-2"></span>
</pre>
=== <span class="mw-headline">Fine Tuning</span> ===
 
=== Fine Tuning ===


Now, look at the line marked with ******:
Now, look at the line marked with ******:
Line 130: Line 114:
** The first is the complete URL to the page you want to link to.
** The first is the complete URL to the page you want to link to.
** The second is what you want the link to say.
** The second is what you want the link to say.
** the third is which row of the top bar you want to add it to – <code>1</code> for the first, <code>2</code> for the second, or <code>3</code> to add a new row to the bottom.
** the third is which row of the top bar you want to add it to – 1 for the first, 2 for the second, or 3 to add a new row to the bottom.
** The fourth says where you want the link to be in the quickbar. This can be <code>true</code> to put it at the start, or <code>false</code> to put it at the end.
** The fourth says where you want the link to be in the quickbar. This can be true to put it at the start, or false to put it at the end.
* If you want to add several links, make multiple copies of this one line (don't copy the whole script).
* If you want to add several links, make multiple copies of this one line (don't copy the whole script).


Now, save your edit, and reload the page.
Now, save your edit, and reload the page.
 
[[Category:Help]]
<div id="catlinks" class="catlinks">
 
<div id="mw-normal-catlinks">
 
[/wiki/Special:Categories Category]: <span dir="ltr">[[Category:Help|Help]]</span>
 
</div>
 
</div>



Latest revision as of 14:24, 14 July 2026

Here's how to add a link to your quickbar:

Preparation

1. First, decide what kind of link you would like to add:

  • A page that you frequently visit, that isn't easily accessible.
  • One of your user space pages.
  • A friend's user page or talk page.

2. Find the complete address of that page, and copy it down.

The Code for Monobook (the default skin)

Go to your monobook.js page by clicking [/wiki/Special:MyPage/monobook.js here].

Edit the page, and insert the following lines of code:

{{subst:utilities}}

function addLinks()
{
  with (utilities)
  {
    addMonobookQuickbarLink("http://www.hrwiki.org/etc", "link title", "watchlist"); ******
  }
}
if (window.addEventListener) window.addEventListener('load', addLinks, false);
else if (window.attachEvent) window.attachEvent('onload', addLinks);

Fine Tuning

Now, look at the line marked with ******:

  • Remove the ******, it's only there so you can find the line.
  • There are three things you need to replace, in "quotes", separated by commas.
    • The first is the complete URL to the page you want to link to.
    • The second is what you want the link to say.
    • The third says where you want the link to be in the quickbar:
      • Replace it with userpage if you want the link to appear before your userpage link.
      • Replace it with mytalk if you want the link to appear before your my talk link.
      • Replace it with preferences if you want the link to appear before your preferences link.
      • Replace it with watchlist if you want the link to appear before your my watchlist link.
      • Replace it with mycontris if you want the link to appear before your my contributions link.
      • Replace it with logout if you want the link to appear before your log out link.
      • Make it blank (ie just two quote marks "") if you want the link to appear after your log out link.
  • If you want to add several links, make multiple copies of this one line (don't copy the whole script).

Now, save your edit, and reload the page.

The Code for Cologne Blue

Go to your cologneblue.js page by clicking [/wiki/Special:MyPage/cologneblue.js here].

Edit the page, and insert the following lines of code:

{{subst:utilities}}

function addLinks()
{
  with (utilities)
  {
    addCologneBlueTopbarLink("http://www.hrwiki.org/etc", "link title", true); ******
  }
}
if (window.addEventListener) window.addEventListener('load', addLinks, false);
else if (window.attachEvent) window.attachEvent('onload', addLinks);

Fine Tuning

Now, look at the line marked with ******:

  • Remove the ******, it's only there so you can find the line.
  • There are three things you need to replace, separated by commas.
    • The first is the complete URL to the page you want to link to.
    • The second is what you want the link to say.
    • The third says where you want the link to be in the quickbar. This can be true to put it at the start, or false to put it at the end.
    • You can also replace addCologneBlueTopbarLink with addCologneBlueSubtopbarLink to add it to the second top bar (the one just below the categories)
  • If you want to add several links, make multiple copies of this one line (don't copy the whole script).

Now, save your edit, and reload the page.

The Code for TaviStyle

Go to your tavistyle.js page by clicking [/wiki/Special:MyPage/tavistyle.js here].

Edit the page, and insert the following lines of code:

{{subst:utilities}}

function addLinks()
{
  with (utilities)
  {
    addTavistyleTopbarLink("http://www.hrwiki.org/etc", "link title", 1, true); ******
  }
}
if (window.addEventListener) window.addEventListener('load', addLinks, false);
else if (window.attachEvent) window.attachEvent('onload', addLinks);

Fine Tuning

Now, look at the line marked with ******:

  • Remove the ******, it's only there so you can find the line.
  • There are four things you need to replace, separated by commas.
    • The first is the complete URL to the page you want to link to.
    • The second is what you want the link to say.
    • the third is which row of the top bar you want to add it to – 1 for the first, 2 for the second, or 3 to add a new row to the bottom.
    • The fourth says where you want the link to be in the quickbar. This can be true to put it at the start, or false to put it at the end.
  • If you want to add several links, make multiple copies of this one line (don't copy the whole script).

Now, save your edit, and reload the page.