Template:Lp

(Difference between revisions)
Jump to: navigation, search
(Purpose: polish a bit)
m (Purpose: rem parens)
Line 5: Line 5:
  
 
==Purpose==
 
==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 wikicode that would form a link without actually creating a working link. (See examples below.)
+
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).
 
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).

Revision as of 17:09, 13 October 2007

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

Contents

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.

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

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

Examples

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

See also

Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox