Difference between revisions of "Template:Lx/doc"

From blackwiki
Jump to navigation Jump to search
imported>Steel1943
(Add more info)
imported>Bsherr
(Removing deprecated parameter from documentation)
Line 12: Line 12:
 
*<code>nowatch</code> - adding '''nowatch=yes''' will disable and hide the "watch" link.
 
*<code>nowatch</code> - adding '''nowatch=yes''' will disable and hide the "watch" link.
 
*<code>nologs</code> - 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.)''
 
*<code>nologs</code> - 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.)''
*<code>cfd2</code> - ''(The sole purpose of this parameter is for custom formatting which appears in [[Template:Cfd2]]. The only transclusion of this template with the "cfd2" parameter should be [[Template:Lc1]] [which is transcluded in [[Template:Cfd2]], so, in effect, this parameter is used in all transclusions of [[Template:Cfd2]]].)''
 
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
<!-- Categories go here and interwikis go in Wikidata. -->

Revision as of 18:58, 2 December 2018

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