Template:Ln/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Lightsup55 m →Examples: provided a couple of better examples that have talk pages |
meta>Markhurd Update catsort to cater for shared doc; removed Interwikitmp-grp because it is empty and would need to be placed in each template's own /doc page or otherwise specific |
||
| Line 1: | Line 1: | ||
{{Interwikitmp-grp|V=1|wdy=|wnw=|wqt=|wsr=|wbk=|wsp=|cms=|Ln|Ln|updated=18:12, Friday 15 August 2008 (UTC)}} | <!-- {{Interwikitmp-grp|V=1|wdy=|wnw=|wqt=|wsr=|wbk=|wsp=|cms=|Ln|Ln|updated=18:12, Friday 15 August 2008 (UTC)}} --> | ||
*general: | *general: | ||
** {{lt|Ln}} creates a link and additional links to a page of a namespace. | ** {{lt|Ln}} creates a link and additional links to a page of a namespace. | ||
| Line 107: | Line 107: | ||
*[[:Category:Internal link templates]] | *[[:Category:Internal link templates]] | ||
<includeonly> | <includeonly> | ||
[[Category:Internal link templates| | [[Category:Internal link templates|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> | ||
Revision as of 08:15, 8 April 2009
- general:
- article:
- template:
etc.
Usage
| Namespace | Link to page | Link to talk page |
|---|---|---|
| Generic | {{ln|NAMESPACE|PAGE NAME}} | {{lnt|NAMESPACE|PAGE NAME}} |
| Article | {{la|ARTICLE}} | {{lat|ARTICLE}} |
| Template | {{lt|TEMPLATE}} | {{ltt|TEMPLATE}} |
| Wikipedia | {{lw|PAGE}} | {{lwt|PAGE}} |
| User | {{lu|PAGE}} | {{lut|PAGE}} |
| Category | {{lc|PAGE}} | {{lct|PAGE}} |
| File | {{lf|FILE}} | {{lft|FILE}} |
| Portal | {{lp|PORTAL}} | {{lpt|PORTAL}} |
| MediaWiki | {{lm|MESSAGE}} | {{lmt|MESSAGE}} |
| Help | {{lh|PAGE}} | {{lht|PAGE}} |
Examples
{{subst:ln|Category|Stubs}} results (or resulted) in this code:
{{lx|1=:{{ucfirst:Category}}:|2={{ucfirst:Stubs}}|3=:Category talk|4=talk}}
Note the important colon in 1=:, unnecessary (?) for other Lx namespaces.
Substituting both Lx and Ucfirst finally arrived at (line breaks added manually):
<span class="plainlinksneverexpand">[[:Category:Stubs]] <tt>(</tt>
[{{fullurl::Category:Stubs|action=edit}} edit]<tt>|</tt>
[[:Category talk:Stubs|talk]]<tt>|</tt>
[{{fullurl:Special:Whatlinkshere/:Category:Stubs|limit=999}} links]<tt>|</tt>
[{{fullurl::Category:Stubs|action=history}} history]<tt>|</tt>
[{{fullurl::Category:Stubs|action=watch}} watch]<tt>)</tt></span>
See also
- Template:Ln/doc(edit talk links history) comparison Lx-family
- Template:Al(edit talk links history) provides edit/history links for both article and talk page
- Template:Lcs(edit talk links history) comparison categories
- Template:Lps(edit talk links history) comparison Wikipedia
- Template:Lts(edit talk links history) comparison templates
- Template:Ti(edit talk links history)
- Template:Tlsp(edit talk links history)
- Template:Tlx(edit talk links history) comparison parameters
- Template:Ultce(edit talk links history)
- Category:Internal link templates