Help:Quickbar: 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 --> | ||
<html> | |||
<p><b>Here's how to add a link to your quickbar:</b> | |||
</p> | |||
<a id="Preparation" name="Preparation"></a><h2> <span class="mw-headline">Preparation</span></h2> | |||
<p>1. First, decide what kind of link you would like to add: | |||
</p> | |||
<ul><li>A page that you frequently visit, that isn't easily accessible. | |||
</li><li>One of your user space pages. | |||
</li><li>A friend's user page or talk page. | |||
</li></ul> | |||
<p>2. Find the complete address of that page, and copy it down. | |||
</p> | |||
<a id="The_Code_for_Monobook_.28the_default_skin.29" name="The_Code_for_Monobook_.28the_default_skin.29"></a><h2> <span class="mw-headline">The Code for Monobook (the default skin)</span></h2> | |||
<p>Go to your monobook.js page by clicking <a href="/index.php?title=Special:MyPage/monobook.js" title="Special:MyPage/monobook.js">here</a>. | |||
</p><p>Edit the page, and insert the following lines of code: | |||
</p> | |||
<pre> | <pre> | ||
{{subst:utilities}} | {{subst:utilities}} | ||
| Line 31: | Line 30: | ||
else if (window.attachEvent) window.attachEvent('onload', addLinks); | else if (window.attachEvent) window.attachEvent('onload', addLinks); | ||
</pre> | </pre> | ||
<a id="Fine_Tuning" name="Fine_Tuning"></a><h3> <span class="mw-headline">Fine Tuning</span></h3> | |||
=== Fine Tuning | <p>Now, look at the line marked with ******: | ||
</p> | |||
Now, look at the line marked with ******: | <ul><li>Remove the ******, it's only there so you can find the line. | ||
</li><li>There are three things you need to replace, in "quotes", separated by commas. | |||
<ul><li>The first is the complete URL to the page you want to link to. | |||
</li><li>The second is what you want the link to say. | |||
</li><li>The third says where you want the link to be in the quickbar: | |||
<ul><li>Replace it with <b>userpage</b> if you want the link to appear before your <b>userpage</b> link. | |||
</li><li>Replace it with <b>mytalk</b> if you want the link to appear before your <b>my talk</b> link. | |||
</li><li>Replace it with <b>preferences</b> if you want the link to appear before your <b>preferences</b> link. | |||
</li><li>Replace it with <b>watchlist</b> if you want the link to appear before your <b>my watchlist</b> link. | |||
</li><li>Replace it with <b>mycontris</b> if you want the link to appear before your <b>my contributions</b> link. | |||
</li><li>Replace it with <b>logout</b> if you want the link to appear before your <b>log out</b> link. | |||
</li><li>Make it blank (ie just two quote marks <code>""</code>) if you want the link to appear after your <b>log out</b> link. | |||
</li></ul> | |||
</li></ul> | |||
</li><li>If you want to add several links, make multiple copies of this one line (don't copy the whole script). | |||
</li></ul> | |||
Now, save your edit, and reload the page. | <p>Now, save your edit, and reload the page. | ||
</p> | |||
== The Code for Cologne Blue | <a id="The_Code_for_Cologne_Blue" name="The_Code_for_Cologne_Blue"></a><h2> <span class="mw-headline">The Code for Cologne Blue</span></h2> | ||
<p>Go to your cologneblue.js page by clicking <a href="/index.php?title=Special:MyPage/cologneblue.js" title="Special:MyPage/cologneblue.js">here</a>. | |||
Go to your cologneblue.js page by clicking | </p><p>Edit the page, and insert the following lines of code: | ||
</p> | |||
Edit the page, and insert the following lines of code: | |||
<pre> | <pre> | ||
{{subst:utilities}} | {{subst:utilities}} | ||
| Line 71: | Line 68: | ||
else if (window.attachEvent) window.attachEvent('onload', addLinks); | else if (window.attachEvent) window.attachEvent('onload', addLinks); | ||
</pre> | </pre> | ||
<a id="Fine_Tuning_2" name="Fine_Tuning_2"></a><h3> <span class="mw-headline">Fine Tuning</span></h3> | |||
=== Fine Tuning | <p>Now, look at the line marked with ******: | ||
</p> | |||
Now, look at the line marked with ******: | <ul><li>Remove the ******, it's only there so you can find the line. | ||
</li><li>There are three things you need to replace, separated by commas. | |||
<ul><li>The first is the complete URL to the page you want to link to. | |||
</li><li>The second is what you want the link to say. | |||
</li><li>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. | |||
</li><li>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) | |||
</li></ul> | |||
</li><li>If you want to add several links, make multiple copies of this one line (don't copy the whole script). | |||
</li></ul> | |||
<p>Now, save your edit, and reload the page. | |||
Now, save your edit, and reload the page. | </p> | ||
<a id="The_Code_for_TaviStyle" name="The_Code_for_TaviStyle"></a><h2> <span class="mw-headline">The Code for TaviStyle</span></h2> | |||
== The Code for TaviStyle | <p>Go to your tavistyle.js page by clicking <a href="/index.php?title=Special:MyPage/tavistyle.js" title="Special:MyPage/tavistyle.js">here</a>. | ||
</p><p>Edit the page, and insert the following lines of code: | |||
Go to your tavistyle.js page by clicking | </p> | ||
Edit the page, and insert the following lines of code: | |||
<pre> | <pre> | ||
{{subst:utilities}} | {{subst:utilities}} | ||
| Line 105: | Line 99: | ||
else if (window.attachEvent) window.attachEvent('onload', addLinks); | else if (window.attachEvent) window.attachEvent('onload', addLinks); | ||
</pre> | </pre> | ||
<a id="Fine_Tuning_3" name="Fine_Tuning_3"></a><h3> <span class="mw-headline">Fine Tuning</span></h3> | |||
<p>Now, look at the line marked with ******: | |||
</p> | |||
<ul><li>Remove the ******, it's only there so you can find the line. | |||
</li><li>There are four things you need to replace, separated by commas. | |||
<ul><li>The first is the complete URL to the page you want to link to. | |||
</li><li>The second is what you want the link to say. | |||
</li><li>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. | |||
</li><li>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. | |||
</li></ul> | |||
</li><li>If you want to add several links, make multiple copies of this one line (don't copy the whole script). | |||
</li></ul> | |||
<p>Now, save your edit, and reload the page. | |||
</p> | |||
<div class="visualClear"></div> | |||
</html> | |||
Latest revision as of 21:00, 18 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 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 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
trueto put it at the start, orfalseto put it at the end. - You can also replace
addCologneBlueTopbarLinkwithaddCologneBlueSubtopbarLinkto 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 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 –
1for the first,2for the second, or3to add a new row to the bottom. - The fourth says where you want the link to be in the quickbar. This can be
trueto put it at the start, orfalseto 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.