Template:L

(Difference between revisions)
Jump to: navigation, search
(hmm... nevermind)
(add doc)
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>
 +
 
 +
==Purpose==
 +
This template simplifies the formatting of example links in "help" pages. ''It should never be used in regular articles.''
 +
 
 +
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).
 +
 
 +
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]].
 +
 
 +
==Usage==
 +
* {{t|L|''Article title''}}
 +
* {{t|L|''Article title''|''link text''}}
 +
 
 +
==Examples==
 +
* {{t|L|Reason}} &rarr; {{L|Reason}}
 +
* {{t|L|Reason|rational}} &rarr; {{L|Reason|rational}}
 +
* {{t|L|Wikipedia:Mathematics}} &rarr; {{L|Wikipedia:Mathematics}}
 +
* {{t|L|Wikipedia:Mathematics|mathematician}} &rarr; {{L|Wikipedia:Mathematics|mathematician}}
 +
 
 +
==See also==
 +
* [[Template:Ll]] for links like: {{Ll|Reason}}
 +
* [[Template:Lp]] for links like: {{Lp|Reason}}
 +
* [[Template:Llp]] for links like: {{Llp|Reason}}
 +
 
 +
[[Category:Informational templates]]
 +
</noinclude>

Revision as of 16:25, 11 October 2007

[[{{{1}}}]]

Contents

Purpose

This template simplifies the formatting of example links in "help" pages. It should never be used in regular articles.

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).

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.

Usage

  • {{L|Article title}}
  • {{L|Article title|link text}}

Examples

  • {{L|Reason}}[[Reason]]
  • {{L|Reason|rational}}[[Reason|rational]]
  • {{L|Wikipedia:Mathematics}}[[Wikipedia:Mathematics]]
  • {{L|Wikipedia:Mathematics|mathematician}}[[Wikipedia:Mathematics|mathematician]]

See also

Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox