|
|
(2 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| <includeonly><!-----------------Interwiki Doc page pattern-------------------> | | <includeonly><!-----------------Interwiki Doc page pattern-------------------> |
| <small>''This '{{Tlx|Tlx}}' template documentation is [[w:Wikipedia:Template doc page pattern|transcluded]] for all ''Tlx family templates (Tlx, Tlxc, Tlxm, Tlxw)'' [<span class="plainlinks">[{{fullurl:Template:Tlx/doc |action=edit}} edit]</span>].{{#ifeq:{{SITENAME}}|Meta| |[[M:template:{{PAGENAMEE}}|Masterpage]] | | <small>''This '{{Tlx|Tlx}}' template documentation is [[w:Wikipedia:Template doc page pattern|transcluded]] for all ''Tlx family templates (Tlx, Tlxc, Tlxm, Tlxw)'' [<span class="plainlinks">[{{fullurl:Template:Tlx/doc |action=edit}} edit]</span>].{{#ifeq:{{SITENAME}}|Meta| |[[M:template:{{PAGENAMEE}}|Masterpage]] |
| }}</small></includeonly><noinclude>
| | }}</small></includeonly><noinclude> |
| {{template doc page viewed directly}}
| | template doc page viewed directly |
| {{-}} | | {{-}} |
| {{interwikitmp-grp
| | interwikitmp-grp |
| |V=D | | |V=D |
| |cats= | | |cats= |
| |inhib=yes | | |inhib=yes |
| |wdy=|wqt=|wsr=|wnw= | | |wdy=|wqt=|wsr=|wnw= |
| |{{PAGENAME}}|{{PAGENAME}}}}</noinclude> | | |{{PAGENAME}}|{{PAGENAME}}</noinclude> |
|
| |
|
| <!-- Parent template(s) usage Begins: ---> | | <!-- Parent template(s) usage Begins: ---> |
Line 25: |
Line 25: |
| ---- | | ---- |
|
| |
|
| * If given no additional parameters except ''<code> 'template name' (<nowiki>{{{1}}}</nowiki>), </code>'' it presents the same as the similar {{tl|Tl}} [[W:macro|macro]] template -- a blue link nested in [[W:brackets|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. | | * If given no additional parameters except ''<code> 'template name' (<nowiki>{{{1}}}</nowiki>), </code>'' it presents the same as the similar {{tl|Tl}} [[W:macro|macro]] template -- a blue link nested in [[W:brackets|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. |
|
| |
|
| :* {{Tlx|Tl|Tl}} display compared to {{Tlx|Tlx|Tl}}: (Tl: {{Tl|Tl}} versus Tlx: {{Tlx|Tl}}) | | :* {{Tlx|Tl|Tl}} display compared to {{Tlx|Tlx|Tl}}: (Tl: {{Tl|Tl}} versus Tlx: {{Tlx|Tl}}) |
Line 33: |
Line 33: |
| * {{tlx|Tlx}} has a named parameter ''subst''. Setting this parameter to any string of length 1 or greater will place the string "subst:" before the template name, linked to [[Help:Substitution]]. This is useful to indicate when a template should be substituted. For example {{tlx|Tlx|Welcome|<nowiki>subst=Y</nowiki>}} will display {{Tlx|Welcome|subst=Y}}. | | * {{tlx|Tlx}} has a named parameter ''subst''. Setting this parameter to any string of length 1 or greater will place the string "subst:" before the template name, linked to [[Help:Substitution]]. This is useful to indicate when a template should be substituted. For example {{tlx|Tlx|Welcome|<nowiki>subst=Y</nowiki>}} will display {{Tlx|Welcome|subst=Y}}. |
|
| |
|
| * 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 {{Tlx|Tlxw}} and {{tlx|Tlxm}} are typing-aid templates available at Meta for automatic substitution in discussions about templates on Wikipedia or Meta. | | * 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 Tlx Tlxw and {{tlx|Tlxm}} are typing-aid templates available at Meta for automatic substitution in discussions about templates on Wikipedia or Meta. |
|
| |
|
| ---- | | ---- |
Line 40: |
Line 40: |
| # {{Tl|Tlxc}} -- which links to templates on Wikimedia Commons (The Commons). | | # {{Tl|Tlxc}} -- which links to templates on Wikimedia Commons (The Commons). |
| # {{Tl|Tlxm}} -- which links to templates on Meta | | # {{Tl|Tlxm}} -- which links to templates on Meta |
| # {{Tl|Tlxw}} -- which links to templates on Wikipedia | | # Tl Tlxw -- which links to templates on Wikipedia |
|
| |
|
| ---- | | ---- |
Line 47: |
Line 47: |
|
| |
|
| {{[[Template:{{PAGENAME}}|{{PAGENAME}}]]}} | | {{[[Template:{{PAGENAME}}|{{PAGENAME}}]]}} |
| is a generalization of {{Tlxw|Tl|x}}, {{Tlxw|Tlp|x|y}}, | | is a generalization of Tlxw Tl x, Tlxw Tlp x y, |
| etcetera with arguably better readable | | etcetera with arguably better readable |
| output. This depends on the browser, but too narrow | | output. This depends on the browser, but too narrow |
Line 97: |
Line 97: |
| ||  | | ||  |
| |- | | |- |
| |{{Tlx|SISTER=W:|Tlx|x3|1<tt>|</tt>2<tt>|</tt>3}} | | |{{Tlx|SISTER=W:|Tlx|x3|1<tt>|</tt>2<tt>|</tt>3}} |
| |{{Tlx|SISTER=W:|x3|1|2|3}} | | |{{Tlx|SISTER=W:|x3|1|2|3}} |
| ||  | | ||  |
| |- | | |- |
| |{{Tlx|SISTER=W:|Tlx|x4|1<tt>|</tt>2<tt>|</tt>3|4}} | | |{{Tlx|SISTER=W:|Tlx|x4|1<tt>|</tt>2<tt>|</tt>3|4}} |
| |{{Tlx|SISTER=W:|x4|1|2|3|4}} | | |{{Tlx|SISTER=W:|x4|1|2|3|4}} |
| |up to 5 parameters, then ... | | |up to 5 parameters, then ... |
| |- | | |- |
| |{{Tlx|SISTER=W:|Tlx|x4|1<tt>|</tt>2<tt>|</tt>3&#124;4}} | | |{{Tlx|SISTER=W:|Tlx|x4|1<tt>|</tt>2<tt>|</tt>3&#124;4}} |
| |{{Tlx|SISTER=W:|x4|1|2|3|4}} | | |{{Tlx|SISTER=W:|x4|1|2|3|4}} |
| |align="right"|<tt>&#124;</tt> for more | | |align="right"|<tt>&#124;</tt> for more |
| |- | | |- |
Line 134: |
Line 134: |
| |- | | |- |
| |{{Tlx|SISTER=W:|Tlx|x2|&nbsp;|two}} | | |{{Tlx|SISTER=W:|Tlx|x2|&nbsp;|two}} |
| |{{Tlx|SISTER=W:|x2| |two}} | | |{{Tlx|SISTER=W:|x2| |two}} |
| |align="right"|<tt>&nbsp;</tt> is okay | | |align="right"|<tt>&nbsp;</tt> is okay |
| |- | | |- |
| |{{Tlx|SISTER=W:|Tlx|x2| &#124; two}} | | |{{Tlx|SISTER=W:|Tlx|x2| &#124; two}} |
| |{{Tlx|SISTER=W:|x2| | two}} | | |{{Tlx|SISTER=W:|x2| | two}} |
| |align="right"|<tt>&#124;</tt> is okay | | |align="right"|<tt>&#124;</tt> is okay |
| |- | | |- |