Template:Ll

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
(recat:Wikicode templates)
(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=&#124;{{{2}}}|else=}}<nowiki>]]</nowiki></tt><noinclude>
+
  test={{{2|}}}|then=&#124;{{{2}}}|
 +
else=}}<nowiki>]]</nowiki></tt><noinclude>{{doc}}
  
==Purpose==
+
[[Category:Wikicode templates|Ll]]
This template simplifies the formatting of example links in "help" pages. ''It should never be used in regular articles.''
+
 
+
To be more precise, the template displays in a monospace font the "double-brackets" wikicode that would form an "internal" wikilink, as well as providing a live link (see 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".
+
 
+
If you don't want an actual live link on the article title, use [[Template:L]] instead. If you need a trailing pipe character with no link text following it, use [[Template:Llp]] (linked version) or [[Template:Lp]] (non-linked version).
+
 
+
==Usage==
+
* {{t|ll|''Article title''}}
+
* {{t|ll|''Article title''|''link text''}}
+
 
+
==Examples==
+
* {{t|ll|Reason}} &rarr; {{ll|Reason}}
+
* {{t|ll|Reason|rational}} &rarr; {{ll|Reason|rational}}
+
* {{t|ll|Wikipedia:Mathematics}} &rarr; {{ll|Wikipedia:Mathematics}}
+
* {{t|ll|Wikipedia:Mathematics|mathematician}} &rarr; {{ll|Wikipedia:Mathematics|mathematician}}
+
 
+
==See also==
+
* [[Template:L]] for links like: {{L|Reason}}
+
* [[Template:Lp]] for links like: {{Lp|Reason}}
+
* [[Template:Llp]] for links like: {{Llp|Reason}}
+
 
+
[[Category:Wikicode templates]]
+
 
</noinclude>
 
</noinclude>

Latest revision as of 17:54, 11 August 2008

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

The documentation for this template is transcluded from Template:Ll/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. It should never be used in regular articles.
To be more precise, the template displays in a monospace font the "double-brackets" wikicode that would form an "internal" wikilink, as well as providing a live link (see examples below).
Usage
  • {{ll|Article title}}
  • {{ll|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".
  2. If you don't want an actual live link on the article title, use Template:L instead. If you need a trailing pipe character with no link text following it, use Template:Llp (linked version) or Template:Lp (non-linked version).
Examples
Mnemonic
Note that the name "ll" is short for "linked link".
See also
Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox