Editing Template:shortcut

From Homestar Runner Wiki

Jump to: navigation, search
Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
Current revision Your text
Line 1: Line 1:
<div id="shortcut" style="border: 1px dashed blue; background: #FFF; margin: 0em 1em 0em 1em; text-align: center; padding:5px; float: {{{float|right}}}; clear: both;">
<div id="shortcut" style="border: 1px dashed blue; background: #FFF; margin: 0em 1em 0em 1em; text-align: center; padding:5px; float: {{{float|right}}}; clear: both;">
-
Shortcut{{#ifeq:{{{plural}}}|false||{{#ifexpr: ( ( {{#if:{{{1|}}}|1|0}} + {{#if:{{{2|}}}|1|0}} + {{#if:{{{3|}}}|1|0}} ) > 1 ) or {{#if:{{{plural|}}}|1|0}}|s||}}}}:{{#if:{{{1|}}}|<br>[[HRW{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}|T|}}:{{{1}}}]]|}}{{#if:{{{2|}}}|<br>[[HRW{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}|T|}}:{{{2}}}]]|}}{{#if:{{{3|}}}|<br>{{{3}}}|}}</div><noinclude>
+
Shortcut{{#ifeq:{{{plural}}}|false||{{#ifexpr: ( ( {{#if:{{{1|}}}|1|0}} + {{#if:{{{2|}}}|1|0}} + {{#if:{{{3|}}}|1|0}} ) > 1 ) or {{#if:{{{plural|}}}|1|0}}|s||}}}}:{{#if:{{{1|}}}|<br>[[HRW:{{{1}}}]]|}}{{#if:{{{2|}}}|<br>[[HRW:{{{2}}}]]|}}{{#if:{{{3|}}}|<br>{{{3}}}|}}</div><noinclude>
===Usage:===
===Usage:===
-
When linking to a shortcut using the '''HRW''' or '''HRWT''' namespace aliases, simply enter the target name (without the namespace) as a template parameter. In all of the examples below, '''HRWT''' would automatically be used instead of '''HRW''' if the template is used on a talk page:
+
When linking to a shortcut in the '''HRW''' pseudo-namespace, simply enter the target name (without the namespace) as a template parameter:
-
:<code><nowiki>{{shortcut|SHORTCUT1}}</nowiki></code> &mdash; automatically links to '''HRW:SHORTCUT1''' ''(Note that the '''HRW:''' namespace alias is automatically added)''
+
:<code><nowiki>{{shortcut|SHORTCUT1}}</nowiki></code> &mdash; automatically links to '''HRW:SHORTCUT1''' ''(Note that the '''HRW:''' pseudo-namespace is automatically added)''
::or
::or
:<code><nowiki>{{shortcut|SHORTCUT1|SHORTCUT2}}</nowiki></code> &mdash; automatically links to '''HRW:SHORTCUT1''' and '''HRW:SHORTCUT2'''
:<code><nowiki>{{shortcut|SHORTCUT1|SHORTCUT2}}</nowiki></code> &mdash; automatically links to '''HRW:SHORTCUT1''' and '''HRW:SHORTCUT2'''
Line 17: Line 17:
:<code><nowiki>{{shortcut|3=[[SHORTCUT1]]<br>[[SHORTCUT2]]|plural=true}}</nowiki></code>
:<code><nowiki>{{shortcut|3=[[SHORTCUT1]]<br>[[SHORTCUT2]]|plural=true}}</nowiki></code>
[[Category:Internal link templates|{{PAGENAME}}]]
[[Category:Internal link templates|{{PAGENAME}}]]
-
If the shortcuts are better placed on the left side of the page, you can set <code>float=left</code>:
+
If the shortcuts are better placed on the left side of the page, you may set <code>float=left</code>:
:<code><nowiki>{{shortcut|SHORTCUT1|float=left}}</nowiki></code>
:<code><nowiki>{{shortcut|SHORTCUT1|float=left}}</nowiki></code>
</noinclude>
</noinclude>

Your changes will be visible immediately. If you would like to test or practice editing, please do so in the sandbox. You are encouraged to create, expand, and improve upon articles; however, bad edits to articles are watched for and will be quickly removed.


CAPTCHA Image
Image Code:
Cancel | Editing help (opens in new window)
You are required to enter a code from an image in order to perform certain operations. This image is designed to protect the site from vandalism. If the images are too obscured to read, just give it your best shot and a new image will be shown next time. If you are visually impaired or limited to text-based browsing, you can contact the site administrator and something can be arranged. The code is not case-sensitive.

The Homestar Runner Wiki is neither owned by nor affiliated with homestarrunner.com. Much of the material presented here is copyrighted by The Brothers Chaps and/or Harmless Junk, Inc. For more information, see the legal stuff page on the official Homestar Runner website. The proprietor of this site asserts that publication of such material on the wiki qualifies as fair use under United States copyright law.

Material on this site that is not copyrighted by The Brothers Chaps (e.g. opinions and mindless chatter) is licensed to the various authors, where indicated, and is released under a Creative Commons Deed, which simply ensures that none of this information may legally be used for commercial purposes.

Personal tools