Template:Lp

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
m (Purpose: rem parens)
(doc moved to subpage)
 
(5 intermediate revisions by one user not shown)
Line 2: Line 2:
 
  test={{{2|}}}|
 
  test={{{2|}}}|
 
  then=<nowiki>|</nowiki>{{{2}}}|
 
  then=<nowiki>|</nowiki>{{{2}}}|
  else=<nowiki>|</nowiki>}}<nowiki>]]</nowiki></tt><noinclude>
+
  else=<nowiki>|</nowiki>}}<nowiki>]]</nowiki></tt><noinclude>{{doc}}
  
==Purpose==
+
[[Category:Wikicode templates|Lp]]
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 wikicode that would form a link without actually creating a working link. See examples below.
+
 
+
The one required parameter is the title of the "article" (it doesn't have to actually exist on this wiki) to be shown between the double brackets. If an optional second parameter is provided, it is used as the "link text" in a "piped link" (but note that [[Template:L]] is more appropriate in that case).
+
 
+
If you want an actual live link on the article title, use [[Template:Llp]]. If you don't need a trailing pipe character (or, as mentioned, if you want to specify text to follow the pipe), use [[Template:L]] (non-linked version) or [[Template:Llp]] (linked version).
+
 
+
==Usage==
+
* {{t|lp|''Article title''}}
+
* {{t|lp|''Article title''|''link text''}}
+
 
+
==Examples==
+
* {{t|lp|Reason}} &rarr; {{lp|Reason}}
+
* {{t|lp|Reason|rational}} &rarr; {{lp|Reason|rational}}
+
* {{t|lp|Wikipedia:Mathematics}} &rarr; {{lp|Wikipedia:Mathematics}}
+
* {{t|lp|Wikipedia:Mathematics|mathematician}} &rarr; {{lp|Wikipedia:Mathematics|mathematician}}
+
 
+
==See also==
+
* [[Template:L]] for links like: {{L|Reason}}
+
* [[Template:Ll]] for links like: {{Ll|Reason}}
+
* [[Template:Llp]] for links like: {{Llp|Reason}}
+
 
+
[[Category:Informational templates]]
+
 
</noinclude>
 
</noinclude>

Latest revision as of 17:47, 11 August 2008

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

The documentation for this template is transcluded from Template:Lp/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 wikicode that would form a link without actually creating a working link. See examples below.
Usage
{{lp|Article title}}
{{lp|Article title|link text}}
Notes
  1. The one required parameter is the title of the "article" (it doesn't have to actually exist on this wiki) to be shown between the double brackets. If an optional second parameter is provided, it is used as the "link text" in a "piped link" (but note that Template:L is more appropriate in that case).
  2. If you want an actual live link on the article title, use Template:Llp. If you don't need a trailing pipe character (or, as mentioned, if you want to specify text to follow the pipe), use Template:L (non-linked version) or Template:Llp (linked version).
Examples
  • {{lp|Reason}}[[Reason|]]
  • {{lp|Reason|rational}}[[Reason|rational]]
  • {{lp|Wikipedia:Mathematics}}[[Wikipedia:Mathematics|]]
  • {{lp|Wikipedia:Mathematics|mathematician}}[[Wikipedia:Mathematics|mathematician]]
Mnemonic
The name "lp" is short for "link with visible pipe".
See also
Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox