Template:Lx: Difference between revisions
Appearance
Content deleted Content added
Redo properly, and simpler. |
Returning page name link hiding when "cfd2" parameter is active - this is how Template:Lx1 was set up - changing this otherwise may be controversial |
||
Line 1: | Line 1: | ||
<includeonly><span class="plainlinks nourlexpansion lx" {{#if:{{{cfd2|}}}|style="font-family: monospace;"}}><!-- |
<includeonly><span class="plainlinks nourlexpansion lx" {{#if:{{{cfd2|}}}|style="font-family: monospace;"}}><!-- |
||
-->[[{{{1}}}{{{2}}}]] <!-- |
-->{{#if:{{{cfd2|}}}||[[{{{1}}}{{{2}}}]] }}<!-- |
||
--><span style="font-size:90%;">(<!-- |
--><span style="font-size:90%;">(<!-- |
||
-->{{#if:{{{noedit|}}}||[{{fullurl:{{{1}}}{{{2}}}|action=edit}} edit] |}} <!-- |
-->{{#if:{{{noedit|}}}||[{{fullurl:{{{1}}}{{{2}}}|action=edit}} edit] |}} <!-- |
Revision as of 21:08, 27 January 2016
This template is used on approximately 23,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
{{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.)