Template:Llp

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
(+ sortkey)
(doc moved to subpage)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<tt><nowiki>[[</nowiki>[[{{{1}}}]]{{if|
 
<tt><nowiki>[[</nowiki>[[{{{1}}}]]{{if|
test={{{2|}}}|then=<nowiki>|</nowiki>{{{2}}}|else=<nowiki>|</nowiki>}}<nowiki>]]</nowiki></tt><noinclude>
+
test={{{2|}}}|then=<nowiki>|</nowiki>{{{2}}}|
 
+
else=<nowiki>|</nowiki>}}<nowiki>]]</nowiki></tt><noinclude>{{doc}}
==Purpose==
+
This template, ''which should only be used in non-article pages'', simplifies the formatting of example links containing a trailing "pipe" character (<tt>|</tt>) with no following "link text". That is, it displays (in a monospace font) the "double-brackets" wikicode that would form such a link, as well as actually providing a working link to the target article. See the examples below.
+
 
+
The one required parameter is the title of the article being linked to. If an optional second parameter is provided, it is used as the "link text" in a "piped link" (but note that [[Template:Lp]] is more appropriate in that case).
+
 
+
If you don't need an actual live link on the article title, use [[Template:Lp]] instead. If you don't need a trailing pipe character (or, as mentioned, if you want to specify text to follow the pipe), use [[Template:Ll]] (linked version) or [[Template:L]] (non-linked version).
+
 
+
==Usage==
+
* {{t|llp|''Article title''}}
+
* {{t|llp|''Article title''|''link text''}}
+
 
+
==Examples==
+
* {{t|llp|Reason}} &rarr; {{llp|Reason}}
+
* {{t|llp|Reason|rational}} &rarr; {{llp|Reason|rational}}
+
* {{t|llp|Wikipedia:Mathematics}} &rarr; {{llp|Wikipedia:Mathematics}}
+
* {{t|llp|Wikipedia:Mathematics|mathematician}} &rarr; {{llp|Wikipedia:Mathematics|mathematician}}
+
 
+
==See also==
+
* [[Template:L]] for links like: {{L|Reason}}
+
* [[Template:Ll]] for links like: {{Ll|Reason}}
+
* [[Template:Lp]] for links like: {{Lp|Reason}}
+
  
 
[[Category:Wikicode templates|Llp]]
 
[[Category:Wikicode templates|Llp]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:47, 11 August 2008

[[[[{{{1}}}]]|]]

The documentation for this template is transcluded from Template:Llp/doc. Please edit that page if you want to change something in the documentation. Do not edit this page unless you know what you're doing.
Purpose
This template, which should only be used in non-article pages, simplifies the formatting of example links containing a trailing "pipe" character (|) with no following "link text". That is, it displays (in a monospace font) the "double-brackets" wikicode that would form such a link, as well as actually providing a working link to the target article. See the examples below.
Usage
{{llp|Article title}}
{{llp|Article title|link text}}
Notes
  1. The one required parameter is the title of the article being linked to. If an optional second parameter is provided, it is used as the "link text" in a "piped link" (but note that Template:Lp is more appropriate in that case).
  2. If you don't need an actual live link on the article title, use Template:Lp instead. If you don't need a trailing pipe character (or, as mentioned, if you want to specify text to follow the pipe), use Template:Ll (linked version) or Template:L (non-linked version).
Examples
Mnemonic
The name "llp" is short for "linked link with visible pipe".
See also
Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox