Template:L

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
(hmm... nevermind)
(doc moved to subpage)
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<tt><nowiki>[[</nowiki>{{{1}}}{{if|
 
<tt><nowiki>[[</nowiki>{{{1}}}{{if|
  test={{{2|}}}|then=&#124;{{{2}}}|else=}}<nowiki>]]</nowiki></tt>
+
  test={{{2|}}}|then=&#124;{{{2}}}|else=}}<nowiki>]]</nowiki></tt><noinclude>{{doc}}
 +
 
 +
[[Category:Wikicode templates|L]]
 +
</noinclude>

Latest revision as of 17:57, 11 August 2008

[[{{{1}}}]]

The documentation for this template is transcluded from Template:L/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 simplifies the formatting of example links in "help" pages (that is, it displays the wikicode that would form a link, without actually creating a working link). It should never be used in regular articles.
Usage
  • {{L|Article title}}
  • {{L|Article title|link text}}
Notes
  1. The template has one required parameter, which is the title of the "article" (it doesn't have to 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" (see examples below).
  2. If you want an actual live link on the article title, use Template:Ll. If you need a trailing pipe character with no link text following it, use Template:Lp. Finally, if you need both a live link and a trailing pipe, use Template:Llp.
Examples
  • {{L|Reason}}[[Reason]]
  • {{L|Reason|rational}}[[Reason|rational]]
  • {{L|Wikipedia:Mathematics}}[[Wikipedia:Mathematics]]
  • {{L|Wikipedia:Mathematics|mathematician}}[[Wikipedia:Mathematics|mathematician]]
Mnemonic
The name "L" is short for "link". It has been capitalized in the examples above merely for clarity; you can also use a lowercase "l".
See also
Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox