Editing Template:Tlx/doc

From MINR.ORG WIKI

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
<includeonly>{{small |1=Note: This documentation for {{tlx|tlx}} is also [[w:Wikipedia:Template doc page pattern|transcluded]] by its derivatives {{tlx|tlxb}}, {{tlx|tlxc}}, {{tlx|tlxw}} (<span class="plainlinks">[{{fullurl:Template:Tlx/doc |action=edit}} edit]</span>{{#ifeq:{{SITENAME}}|Meta |). |{{dot}}[[M:template:{{PAGENAMEE}}|master page]]).}}<!--(end small:)-->}}</includeonly><!--
+
<includeonly>{{small |1=Note: This documentation for {{tlx|tlx}} is also [[w:Wikipedia:Template doc page pattern|transcluded]] by its derivatives {{tlx|tlxb}}, {{tlx|tlxc}}, {{tlx|tlxw}}, {{tlx|tlxU}} (<span class="plainlinks">[{{fullurl:Template:Tlx/doc |action=edit}} edit]</span>{{#ifeq:{{SITENAME}}|Meta |). |{{dot}}[[M:template:{{PAGENAMEE}}|master page]]).}}<!--(end small:)-->}}</includeonly><!--
  
 
--><noinclude>{{Documentation subpage}}{{clear}}</noinclude>
 
--><noinclude>{{Documentation subpage}}{{clear}}</noinclude>
{{#ifeq:{{BASEPAGENAME}}|Tlx |{{High-risk|1,070,000+}} {{Used in system}} }}
+
{{#ifeq:{{BASEPAGENAME}}|Tlx |{{High-risk|1,070,000+}} }}
 
This template is used to show example template usage without expanding the template itself.
 
This template is used to show example template usage without expanding the template itself.
 
 
== Basic use ==
 
== Basic use ==
 
''(Note: In the following examples, [[Ellipsis|ellipses (groups of three dots)]] indicate where parameters have been omitted.)''
 
''(Note: In the following examples, [[Ellipsis|ellipses (groups of three dots)]] indicate where parameters have been omitted.)''
  
: {{tlx{{\sandbox}}|tlx|Template|''first parameter''|''second parameter''|''third''|...|''tenth''}} produces: {{tlx{{\sandbox}}|Template|''first parameter''|''second parameter''|''third''|...|''tenth''}}
+
: {{tlx{{\sandbox}}|tlx|Template|''first parameter''|''second parameter''|''third''||''tenth''}} produces: {{tlx{{\sandbox}}|Template|''first parameter''|''second parameter''|''third''||''tenth''}}
  
 
Where parameters might contain one or more equals-signs ("="), replace each equals-sign with {{tlf|{{=}}}}:
 
Where parameters might contain one or more equals-signs ("="), replace each equals-sign with {{tlf|{{=}}}}:
Line 22: Line 21:
 
This template allows an example of calling a template, accompanied by one or more parameters<!-- ("pass parameters", i.e. [[Help:Pipe trick|pipe-tricked]] [[m:Parameter#Parameters|parameters]])-->, to be displayed without also causing the template to be called.
 
This template allows an example of calling a template, accompanied by one or more parameters<!-- ("pass parameters", i.e. [[Help:Pipe trick|pipe-tricked]] [[m:Parameter#Parameters|parameters]])-->, to be displayed without also causing the template to be called.
  
Up to ten of the template's parameters (numbered or nowiki-keywords) may be displayed as placeholders, while more than over 10 parameters can be displayed using a coded vertical-bar (as in "{{small|&amp;#124;}}..."). A keyword parameter can be used with equals code &amp;#61; or <nowiki>{{=}}</nowiki> or in nowiki-text: "{{tag|nowiki|content=size=10}}" or all parameters as a string in "{{tag|nowiki|o}}" tags; see ''[[#Examples|Examples]]'' at bottom. For more details, see [[{{TALKPAGENAME}}|this talk]] page.
+
Up to ten of the template's parameters (numbered or nowiki-keywords) may be displayed as placeholders, while more than over 10 parameters can be displayed using a coded vertical-bar (as in "{{small|&amp;#124;}}"). A keyword parameter can be used with equals code &amp;#61; or <nowiki>{{=}}</nowiki> or in nowiki-text: "{{tag|nowiki|content=size=10}}" or all parameters as a string in "{{tag|nowiki|o}}" tags; see ''[[#Examples|Examples]]'' at bottom. For more details, see [[{{TALKPAGENAME}}|this talk]] page.
  
 
; Exceptions
 
; Exceptions
Line 45: Line 44:
 
== Documentation ==
 
== Documentation ==
  
{{tl|Tlx}} is a generalization of {{tl|tl|x}}, {{tl|tlp|x|y}} etc., with output that is arguably more legible. This depends on the browser, but narrow gaps between characters such as "{{thinsp}}'''{'''{{thinsp}}", "{{thinsp}}'''&#124;'''{{thinsp}}", "{{thinsp}}'''}'''{{thinsp}}" and links can be hard to read when not monospaced (and hard to click on; for uses like <code><nowiki>{{!}}</nowiki></code>, see {{tl|tlw}}, which makes the click target bigger).
+
{{tl|Tlx}} is a generalization of {{tl|tl|x}}, {{tl|tlp|x|y}} etc, with output that is arguably more legible. This depends on the browser, but narrow gaps between characters such as "{{thinsp|'''{'''}}", "{{thinsp|'''&#124;'''}}", "{{thinsp|'''}'''}}" and links can be hard to read when not monospaced (and hard to click on; for uses like <code><nowiki>{{!}}</nowiki></code>, see {{tl|tlw}}, which makes the click target bigger).
  
 
===Usage===
 
===Usage===
Line 100: Line 99:
 
*: {{tl|tlb}}, a version of {{tlf|tl}} where the template name is shown in bold.
 
*: {{tl|tlb}}, a version of {{tlf|tl}} where the template name is shown in bold.
 
* {{tl|temt}}, a version of {{tlf|tlx}} that handles templates whose names include "Template:" and pages outside the Template: [[Wikipedia:Namespace|namespace]] that are treated as templates.
 
* {{tl|temt}}, a version of {{tlf|tlx}} that handles templates whose names include "Template:" and pages outside the Template: [[Wikipedia:Namespace|namespace]] that are treated as templates.
* {{tl|para}}, for the presentation of template parameters and values (e.g. {{para|paraname|val}}, {{para|another}}).
+
* {{tl|para}}, for the presentation of template parameters and values (e.g. {{para|paraname|val}}, {{para|another}}, etc).
  
 
== Template-linking templates ==
 
== Template-linking templates ==
Line 111: Line 110:
  
 
}} }}</includeonly>
 
}} }}</includeonly>
{{collapse top|Template data}}
 
<templatedata>
 
{
 
"params": {
 
"1": {
 
"label": "Template name",
 
"description": "Name of the template to link",
 
"example": "Tlx",
 
"type": "wiki-template-name",
 
"required": true
 
},
 
"2": {
 
"label": "1st parameter",
 
"type": "string"
 
},
 
"3": {
 
"label": "2nd parameter",
 
"type": "string"
 
},
 
"4": {
 
"label": "3rd parameter",
 
"type": "string"
 
},
 
"5": {
 
"label": "4th parameter",
 
"type": "string"
 
},
 
"6": {
 
"label": "5th parameter",
 
"type": "string"
 
},
 
"7": {
 
"label": "6th parameter",
 
"type": "string"
 
},
 
"8": {
 
"label": "7th parameter",
 
"type": "string"
 
},
 
"9": {
 
"label": "8th parameter",
 
"type": "string"
 
},
 
"10": {
 
"label": "9th parameter",
 
"type": "string"
 
},
 
"11": {
 
"label": "10th parameter",
 
"type": "string"
 
},
 
"12": {},
 
"subst": {
 
"description": "Set to any value to show \"subst:\" before the template name",
 
"example": "true",
 
"type": "boolean"
 
},
 
"LANG": {
 
"label": "Language",
 
"description": "For a link to Wikipedias in other languages",
 
"example": "de:",
 
"type": "string"
 
},
 
"SISTER": {
 
"description": "For an interwiki link to other sister projects",
 
"example": "M:",
 
"type": "string"
 
}
 
},
 
"description": "Show example template usage without expanding the template itself.",
 
"paramOrder": [
 
"1",
 
"2",
 
"3",
 
"4",
 
"5",
 
"6",
 
"7",
 
"8",
 
"9",
 
"10",
 
"11",
 
"12",
 
"subst",
 
"LANG",
 
"SISTER"
 
],
 
"format": "inline"
 
}
 
</templatedata>
 
{{collapse bottom}}
 

Please note that all contributions to MINR.ORG WIKI may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see MINR.ORG WIKI:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)