Template:plainlinks

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(plainlinks shortcut (use subst))
(recategorize properly)
 
(includes 7 intermediate revisions)
Line 1: Line 1:
-
<span class="plainlinks">[{{{1}}}]</span>
+
<span class="plainlinks">[{{{l}}}]</span><noinclude>
 +
 
 +
Formats a link by removing the external link image (http://www.hrwiki.org/skins/monobook/external.png). 
 +
 
 +
'''Usage:'''
 +
 
 +
Replace the regular link code:<br/>
 +
<code>    [''external link code'']</code>
 +
 
 +
With the template code:<br/>
 +
<code>    <nowiki>{{</nowiki>p|l=''external link code''}} </code>
 +
 
 +
'''Examples:'''
 +
 
 +
<code>    <nowiki>{{p|l=http://hrwiki.org/w/index.php?title=Template:plainlinks&action=history}}</nowiki> </code><br/>
 +
Becomes: {{p|l=http://hrwiki.org/w/index.php?title=Template:plainlinks&action=history}}<br/>
 +
 
 +
<code>    <nowiki>{{p|l=http://hrwiki.org/w/index.php?title=Template:plainlinks&action=history See this template's history page.}}</nowiki> </code><br/>
 +
Becomes: {{p|l=http://hrwiki.org/w/index.php?title=Template:plainlinks&action=history See this template's history page.}}<br/>
 +
 
 +
[[Category:Simple Formatting Templates|{{PAGENAME}}]]
 +
[[Category:Internal link templates|{{PAGENAME}}]]
 +
</noinclude>

Current revision as of 20:25, 25 November 2017

[{{{l}}}]

Formats a link by removing the external link image (external.png).

Usage:

Replace the regular link code:
[external link code]

With the template code:
{{p|l=external link code}}

Examples:

{{p|l=http://hrwiki.org/w/index.php?title=Template:plainlinks&action=history}}
Becomes: [1]

{{p|l=http://hrwiki.org/w/index.php?title=Template:plainlinks&action=history See this template's history page.}}
Becomes: See this template's history page.

Personal tools