Template:Tlx
This page will only parse completely when it is included in another page.
default Wikipedia:Protection policy#{{lc:indef}}}}}|{{{icon-text|This {{#ifeq:{{NAMESPACE}}|{{ns:0}}|article|page}} is {{#switch:{{lc:indef}}
|semi=semi-
|move=move-
|indef=permanently
|create=creation-
|office=
|full
|#default=
}}protected{{#ifeq:{{lc:indef}}|indef||{{#if:|unti l {{#time:F j, Y|}}}}}}.}}}
desc none
}}
[/div]
|
Template:-- template namespace detect|40px|{{{icon-text|This page is {{#switch:{{lc:indef}}
|semi=semi-
|move=move-
|indef=permanently
|create=creation-
|office=
|full
|#default=
}}protected.}}}[/image]
| text = '''{{{reason-text|{{#switch:{{lc:indef}}
|full=This page is currently protected from editing
|semi=Editing of this {{#ifeq:{{NAMESPACE}}|{{ns:0}}|article|page}} by new or unregistered users is currently disabled
|move=This {{#ifeq:{{NAMESPACE}}|{{ns:0}}|article|page}} is currently protected from page moves
|indef=This page is protected from editing indefinitely
|office=This {{#ifeq:{{NAMESPACE}}|{{ns:0}}|article|page}} is currently protected from editing
|create=Recreation of this {{#ifeq:{{NAMESPACE}}|{{ns:0}}|article|page}} has been disabled
}}{{#ifeq:{{lc:indef}}|indef||{{#if:| until {{#time:F j, Y|}}}}}}[/includeonly].}}}
{{{explanation-text|{{#ifeq:{{lc:no}}|yes|This protection is not''' an endorsement of the {{#ifeq:indef|move|[{{fullurl:Special:Log|type=move&page={{FULLPAGENAMEE}}}} current title]|Template:Tlx|action=history[/var] current version]}}.}} See the [[Wikipedia:Protection policy|protection policy and [wiki="var]fullurl"]Special:Log|type=protect&page=Template:Tlx[/var] protection log] for more details.
"][/if]}}}
}}
}}[noedit]
This '[noedit][span] style="font-family:monospace;" |
{{transcluded for all Tlx family templates (Tlx, Tlxc, Tlxm, Tlxw)'' [ class="plainlinks" |
Template:Tlx/doc |action=edit[/var] edit]
].[[M:template:Template:pagenamee|Masterpage
[noedit][span] style="font-family:monospace;" |
{{[wiki=":tlx|tlx[/wiki]
|template
|first parameter
|second
|third
|fourth
|fifth
|sixth
|seventh
|eight
|ninth
}}
[/span][/noedit] ? [noedit][span] style="font-family:monospace;" |
{{[wiki=":template|template[/wiki]
|first parameter
|second
|third
|fourth
|fifth
|sixth
|seventh
|eight
|ninth
}}
[/span][/noedit]
[h="2"]Purpose and naming[/h]
Mnemonically 'Template link expanded'... after [noedit][span] style="font-family:monospace;" |
{{pipe-tricked (numbered) parameters (or 'pass parameters'), and displays them as an 'example demonstration' of how the template-name template could be coded, literally. Its primary use is in instruction and documentation.
[*] Specifics: Up to five pass parameters (numbered or nowiki-keywords) for the specified template are displayed as 'placeholders', and over 5 parameters can be displayed using a coded vertical-bar (as in "|..."). A keyword parameter can be used, when tagged as a nowiki-keyword: "[noparse]siz=10<\nowiki>" with each keyword parameter surrounded by "<nowiki>" tags; see Examples at bottom. For more details, see the this talk page.
[*] Exceptions: If the intended template lists numerous/keyword parameters, then perhaps this template should really not be used, and just hardcode the usage with
<code><nowiki></code>, for example: <code><nowiki><code><nowiki>{{Anytemplate|arg1=23| siz=250px|other parameters...}}
[/noparse]. If a vertical display, with parameters on their own lines, is desired, this can also be laid out manually in this manner, or more rapidly done with [code]...[/code]
.[/LIST]
- If given no additional parameters except
'template name' ([comment] was param [/comment][comment] / was param [/comment]),
it presents the same as the similar Template:template tl tl template macro template -- a blue link nested in curly-braces-- the same as a user would apply the template without parameters, but with a noticably clearer font and spacing on most modern browsers.
[indent]* [noedit][span] style="font-family:monospace;" |
{{1.
[/LIST]
[list][*] Additionally, Tlx will take a 'named' parameter 'SISTER' to link interwiki to other sister projects such as one of these examples: '|SISTER=W:', 'Tlx|SISTER=M:', 'Tlx|SISTER=Q:', 'Tlx|SISTER=S:', allowing documentation or discourse about a template across interwiki boundaries. Small 'front end' Shell or convience templates [noedit][span] style="font-family:monospace;" |
{{[wiki=":Tlxw|Tlxw[/wiki]}}
[/span][/noedit] and [noedit][span] style="font-family:monospace;" |
{{[wiki=":Tlxm|Tlxm[/wiki]}}
[/span][/noedit] are typing-aid templates available at Meta for automatic substitution in discussions about templates on BrWiki or Meta.
[/LIST]
[hr][/hr]
[h="2"]Documentation[/h]
Template:template tlx var pagename var template
is a generalization of Template:tlxw, Template:tlxw,
etcetera with arguably better readable
output. This depends on the browser, but too narrow
uses of "{", "|", "}" in conjunction
with links can be hard to read.
[top]Usage
:Template:tlx template name param:Template:tlx template name 1 2 3Up to three placeholders for parameters of the specified template
[top]Examples
;Note: On the source sister projects, en.wikipedia and Meta, X0, X1, X2,..., X9 are sandbox templates for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects.
[table] border="1" cellpadding="4" class="wikitable"
! Code
! Result
! Remark
|-
|[span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x0
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x0
}}
[/span][/noedit]
||
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|Abc
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Abc
}}
[/span][/noedit]
||
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|ABC
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|ABC
}}
[/span][/noedit]
||
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|AbC
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|AbC
}}
[/span][/noedit]
||
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x1
|one
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x1
|one
}}
[/span][/noedit]
||
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x2
|one
|two
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x2
|one
|two
}}
[/span][/noedit]
||
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x3
|1
|2
|3
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x3
|1
|2
|3
}}
[/span][/noedit]
||
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x4
|1
|2
|3
|4
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x4
|1
|2
|3
|4
}}
[/span][/noedit]
|up to 5 parameters, then ...
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x4
|1
|2
|3
|4
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x4
|1
|2
|3
|4
}}
[/span][/noedit]
|align="right"|| for more
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x1
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x1
}}
[/span][/noedit]
|[b]=[/b] won't work
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x1
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x1
}}
[/span][/noedit]
|align="right"|= is okay
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x1
|x{{=}}u
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x1
|xu
}}
[/span][/noedit]
|align="right"|{{=}} is okay
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x1
|x=u
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x1
|x=u
}}
[/span][/noedit]
|align="right"|sticky nowiki is okay
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x2
|
|two
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x2
|two
}}
[/span][/noedit]
|empty won't work
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x2
|two
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x2
|two
}}
[/span][/noedit]
|align="right"| is okay
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x2
|
|two
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x2
|
|two
}}
[/span][/noedit]
|align="right"| is okay
|-
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x2
|two
}}
[/span][/noedit]
|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x2
|two
}}
[/span][/noedit]
|align="right"|| is okay
|-
|| [noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x2
|! two
}}
[/span][/noedit]
|| [noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|x2
|! two
}}
[/span][/noedit]
|align="right"|[noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|!
}}
[/span][/noedit] is dubious
|-
|| [noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x2
|2=
|3=two
}}
[/span][/noedit]
|| [noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|two
}}
[/span][/noedit]
|empty really doesn't work
|-
|| [noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x2
|2=one
|two
}}
[/span][/noedit]
|| [noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|one
|two
}}
[/span][/noedit]
|[b]two[/b] clobbers [b]2=one[/b]
|-
|| [noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|Tlx
|x2
|3=two
|2=one
}}
[/span][/noedit]
|| [noedit][span] style="font-family:monospace;" |
{{[wiki="W::|[/wiki]
|one
|two
}}
[/span][/noedit]
|align="right"|right to left okay
[/table]
[h="2"]See also[/h]
Template:Para – for giving examples of template parameters and values only, instead of entire templates with parameters.
[top]Pages That Use This Template
The following pages include this template:
Created by Last edited by , 10-23-2011 at 12:10 PM 0 Comments, 1,087 Views |
, 11-23-2008 at 09:21 PM
Bookmarks