Difference between revisions of "Template:Lx/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(+doc, move test to /testcases)
imported>BigNate37
(noredirect)
Line 1: Line 1:
{{anchor|<nowiki>{{l</nowiki>{{#switch: {{{1|}}}
+
<span class="plainlinks nourlexpansion lx">[{{fullurl:{{{1}}}|redirect=no}} {{{1}}}] <tt>(</tt>[{{fullurl:{{{1}}}{{{2}}}|action=edit}} edit]<tt>&#124;</tt>[[{{{3}}}:{{{2}}}|{{{4}}}]]<tt>&#124;</tt>[{{fullurl:{{{1}}}{{{2}}}|action=history}} history]<tt>&#124;</tt>[{{fullurl:Special:Whatlinkshere/{{{1}}}{{{2}}}|limit=999}} links]<tt>&#124;</tt>[{{fullurl:{{{1}}}{{{2}}}|action=watch}} watch]<tt>&#124;</tt>[{{fullurl:Special:Log|page={{urlencode:{{{1}}}{{{2}}}}}}} logs]<tt>)</tt></span><noinclude>
| #default = a
 
| : = a
 
| Talk: = at
 
| Template: = t
 
| Template talk: = tt
 
| Wikipedia: = w
 
| Wikipedia talk: = wt
 
| Wikipedia:Articles for deletion/ = afd
 
| User: = u
 
| User talk: = ut
 
| Category: = c
 
| Category talk: = ct
 
| File: = f
 
| File talk: = ft
 
| Portal: = p
 
| Portal talk: = pt
 
| MediaWiki: = m
 
| MediaWiki talk: = mt
 
| Help: = h
 
| Help talk: = ht
 
| Book: = b
 
| Book talk: = bt
 
}}<nowiki>|</nowiki>{{{2}}}<nowiki>}}</nowiki>}}<span class="plainlinks nourlexpansion lx">[[{{{1}}}{{{2}}}]] <tt>(</tt>[{{fullurl:{{{1}}}{{{2}}}|action=edit}} edit]<tt>&#124;</tt>[[{{{3}}}:{{{2}}}|{{{4}}}]]<tt>&#124;</tt>[{{fullurl:{{{1}}}{{{2}}}|action=history}} history]<tt>&#124;</tt>[{{fullurl:Special:Whatlinkshere/{{{1}}}{{{2}}}|limit=999}} links]<tt>&#124;</tt>[{{fullurl:{{{1}}}{{{2}}}|action=watch}} watch]<tt>&#124;</tt>[{{fullurl:Special:Log|page={{urlencode:{{{1}}}{{{2}}}}}}} logs]<tt>)</tt></span><noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 02:07, 8 August 2012

[{{fullurl:{{{1}}}|redirect=no}} {{{1}}}] ([{{fullurl:{{{1}}}{{{2}}}|action=edit}} edit]|[[{{{3}}}:{{{2}}}|{{{4}}}]]|[{{fullurl:{{{1}}}{{{2}}}|action=history}} history]|[{{fullurl:Special:Whatlinkshere/{{{1}}}{{{2}}}|limit=999}} links]|[{{fullurl:{{{1}}}{{{2}}}|action=watch}} watch]|logs)

{{Lx|Tag|Name|Namespace|Label}} produces TagName (edit | Label | history | links | watch | logs)

This template is a metatemplate for the Template:Ln-family. This template should normally not be used on its own. Its purpose is to ensure that all ln-template looks the same.

Optional parameters

  • noedit - adding noedit=yes false will disable and hide the "edit" link.
  • notalk - adding notalk=yes will disable and hide the customizable link. (This link is usually customized as a "talk" link in templates that transclude this template.)
  • nohistory - adding nohistory=yes will disable and hide the "history" link.
  • nolinks - adding nolinks=yes false will disable and hide the "links" link.
  • nowatch - adding nowatch=yes will disable and hide the "watch" link.
  • nologs - adding nologs=yes will disable and hide the "logs" link. (At this time, using this parameter unfortunately doesn't hide the "|" that appears before the "logs" link; however, there will probably never be a case where the "logs" link should not appear.)