 |
Template:Other persons
This is the {{documentation}} template.
For most of the instructions about how and when to use this template, see Wikipedia:Template documentation.
This template displays a green doc box like you are seeing now, and automatically loads the content from a /doc subpage. It can also load the content from other places if instructed to.
This template is intended for documenting templates and other pages which are transcluded onto other pages. It can be used in template space and most other namespaces.
Use of this template allows templates to be protected where necessary, while allowing anyone to edit the documentation, categories, and interwiki links.
Usage
Normally this template is used without any parameters, placed at the bottom of the template or page being documented, within <noinclude>:
<!--Last line of your template code--><noinclude>
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
Then this template automatically loads the content from the /doc subpage of the template it is used on.
This template can also load the content from any other page. Like this:
<!--Last line of your template code--><noinclude>
{{documentation|Template:Other page/doc}}
</noinclude>
Note that when loading the documentation from another page than the local /doc page it becomes tricky to handle the categories and interwiki links.
The content can also be fed directly as text. Like this:
<!--Last line of your template code--><noinclude>
{{documentation
| content = Some documentation text.
}}
</noinclude>
When the content parameter is used the doc box normally doesn't show the [edit] [purge] links in the top right corner. Note that if the /doc page exists a link to it is still shown in the link box below the doc box.
But parameter 1 and the content parameter can also be combined, like this:
<!--Last line of your template code--><noinclude>
{{documentation
| 1 = Template:Any page/doc
| content = {{Template:Any page/doc|parameters}}
}}
</noinclude>
Then the pagename fed as parameter 1 is used for the [edit] [purge] links and for the /doc link in the link box below the doc box. But the content parameter is used for the content shown in the doc box. The above code means that the content is transcluded as "{{Template:Any page/doc|parameters}}". In this example a parameter is also fed to the /doc page being loaded.
Best practice
The code should be added at the bottom of the template code, with no space before "<noinclude>" (which would cause extra space on pages where the template is used).
Categories and interwiki links that apply to the template itself should be added to the bottom of the /doc subpage, inside <includeonly></includeonly> tags. For more complex cases, see Wikipedia:Template documentation#Categories and interwiki links.
If the documentation page contains <includeonly> or <noinclude> tags as part of the visible documentation text, replace the "<" with "<".
The heading
When in Template space this template shows this heading:
- 32px Template documentation
In most other namespaces, such as "Wikipedia:", it shows this heading:
- Documentation
But when on File (image) pages it shows this heading:
- Summary
The heading parameter can be used to set the heading to something else. Like this:
{{documentation| heading = Infobox documentation }}
If the heading parameter is empty but defined, no heading is shown and no [edit] [purge] links are shown. Like this:
{{documentation| heading = }}
The heading-style parameter can be fed optional CSS values. Without quotation marks " " but with the ending semicolons ;. For example:
heading-style = color: red; font-size: 150%;
The link box
Below the big doc box is a small link box that shows some meta-data about the documentation. The link box shows different things depending on what parameters are fed to this template, and in which namespace it is used. In some cases the link box is not shown at all.
To hide the link box, add the parameter "
Usage
This template is for giving examples of template parameter source code (useful in template documentation and talk page discussions of template code). It must have one or two parameters itself. The first is the name of the example parameter to display (this may be empty, but it must be present), and the second (optional) one is a value for the first example parameter, or (if the first {{para}} parameter is empty) an unnamed example parameter.
Examples
- {{para|name}}
- renders as
- Template loop detected: Template:Para
- {{para|title|<var>book title</var>}}
- renders as
- Template loop detected: Template:Para
- {{para| |section}}
- renders as
- Template loop detected: Template:Para
- (for unnamed parameters in the example code; note the empty first parameter in the {{para}} template)
- {{para|<var>parameter</var>|<var>value</var>}}
- renders as
- Template loop detected: Template:Para
When using literal, pre-specified values, simply provide the value (appearance as in example 3). When illustrating hypothetical, variable or user-definable values, use <var>value</var> (appearance as in example 2), and the same should be done for non-literal, example parameters (as in example 4).
See also
- Template:Tlx – for providing examples of entire-template code with included parameters
| v · d · eTemplateLinking Templates |
|---|
| | TL |
- {{tl}} – Template link, no parameters and normal text style.
- {{tlc}} – Not linked, several parameters and text in
<code></code> style.
- {{tld}} – Not linked, several parameters and teletype text style.
- {{tlf}} – Not linked, several parameters and normal text style.
- {{tlx}} – Template link, several parameters and interwiki links, teletype text style.
- {{tn}} – Same as
This is the Template loop detected: Template:Tlf template.
This template works almost exactly like
This is the Template loop detected: Template:Tlc template.
This page also provides the full documentation for the templates {{tld}} and {{tlf}}, which work almost exactly identically.
Purpose and naming
When a template name with braces is to be shown in documentation, the braces have to be escaped in some way so it doesn't become an actual call to the template. Instead of using <nowiki></nowiki> tags you can write it more simply and concisely by using the Template loop detected: Template:Tlc, Template loop detected: Template:Tlc, or Template loop detected: Template:Tlc templates.
These templates work similarly to Template loop detected: Template:Tlc and Template loop detected: Template:Tlc, but don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since they can decrease readability. So on the first occurrence of a template name use {{tl}} or {{tlx}}, and then use Template loop detected: Template:Tlc, Template loop detected: Template:Tlc or Template loop detected: Template:Tlc thereafter.
| Template
| Mnemonic
| Format differentiation
|
| Template loop detected: Template:Tlc
| Template link code
| Uses the <code>...</code> tags meant for showing programming code.
|
| Template loop detected: Template:Tlc
| Template link dialup-host
| Uses the <tt>...</tt> tags sometimes used for showing programming code. Essentially the non-linking equivalent of {{tlx}}.
|
| Template loop detected: Template:Tlc
| Template link format-normal
| Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. Essentially the non-linking equivalent of {{tlp}}.
|
The three names were based on {{tl}} template link', despite the fact that, unlike the actual Template loop detected: Template:Tlc template, these three don't include an actual link. The mnemonics for Template loop detected: Template:Tlc and Template loop detected: Template:Tlc were invented after the fact, since the template creator used the single letters still available rather than the preferred Template loop detected: Template:Tlc (using <tt>) and Template loop detected: Template:Tlc (using "normal", non-coded text style) monikers.
Basic operation
Here is how these templates look. Code is to the left; actual rendering to the right:
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlc
- Template loop detected: Template:Tlc = {{name|parameters}}
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlf
Use with editprotected templates
Most Wikipedia users and even editors will have little or no need for use (or knowledge) of these templates. You will find them of more use if you are a writer or documenter of templates. However, editors may be pointed here when attempting to deal with edit requests on pages which have been protected in some way.
Pages which have been protected can't be edited by every user, but would-be editors can request specific changes on the corresponding Discussion page. An editor requesting a change to a semi-protected page, for example, would add the {{editsemiprotected}} template, followed by their request, to the Talk page. The Template loop detected: Template:Tlc template expands to a texty notice which includes the instruction, "Replace the Template loop detected: Template:Tlc template with Template loop detected: Template:Tlc when the request has been accepted or rejected." An empowered editor acting on the request would then change the template per this instruction.
The desired effect is to replace the Template loop detected: Template:Tlc template (with its big, eye-catching box of information) by the name of the template, merely showing that the template had been there, and acted upon. The use of the Template loop detected: Template:Tlc template means that the template should appear in a normal, proportional font-face, as in "Template loop detected: Template:Tlf".
Documentation
Functional details
- This template takes another template-name and some associated 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 here???
- Features of Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc:
- They show a template name and up to eight parameters.
- They also show empty parameters. (See examples below.)
- They prevent line wraps in their output.
Usage
Template loop detected: Template:Tlc → Template loop detected: Template:Tlc
Template loop detected: Template:Tlc → {{Template|first_parameter|second|third|fourth|fifth|sixth|seventh|eighth}}
Template loop detected: Template:Tlc → Template loop detected: Template:Tlf
Examples
Note: Wikitables make the <code></code> tags transparent, unfortunately, so the "code colouring" is missing in these examples.
| Code | Result | Comment
|
|---|
| Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Shows its own syntax.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| {{tlc|name|a|b|c|d|e|f|g|h|i|j}} | Template loop detected: Template:Tlc | Shows up to eight parameters. The rest are dropped.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Also shows empty parameters.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Even shows empty parameters that come in the end.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | The use of equals signs is a problem, but there is a fix; see next row.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Use numbered parameters to fix the problem with equals signs. Remember to start from 2, since the "name" is number 1.
|
- 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>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. 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 <pre>...</pre>.
If you have equals signs in your template parameters then it probably is simpler and clearer to code it using <nowiki> tags, etc. Here are the codes to emulate Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc respectively. Code is to the left and actual rendering to the right:
<nowiki>{{name|one=a|two=b}}</nowiki> = {{name|one=a|two=b}}
<tt><nowiki>{{name|one=a|two=b}}</nowiki></tt> = {{name|one=a|two=b}}
<code><nowiki>{{name|one=a|two=b}}</nowiki></code> = {{name|one=a|two=b}}
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlc
es:Plantilla:Tlc
fr:Modèle:Tlc
ja:Template:Tlc
no:mal:Tlc
simple:Template:Tlc
uk:Шаблон:Tld
, see full documentation there.
But here is a short example:
{{tlf|template name|parameters}}
Renders like this:
- Template loop detected: Template:Tlf
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlf
no:mal:Tlf
, but shows the braces as part of the link.
This is the Template loop detected: Template:Tlf template.
This template works almost exactly like
This is the Template loop detected: Template:Tlc template.
This page also provides the full documentation for the templates {{tld}} and {{tlf}}, which work almost exactly identically.
Purpose and naming
When a template name with braces is to be shown in documentation, the braces have to be escaped in some way so it doesn't become an actual call to the template. Instead of using <nowiki></nowiki> tags you can write it more simply and concisely by using the Template loop detected: Template:Tlc, Template loop detected: Template:Tlc, or Template loop detected: Template:Tlc templates.
These templates work similarly to Template loop detected: Template:Tlc and Template loop detected: Template:Tlc, but don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since they can decrease readability. So on the first occurrence of a template name use {{tl}} or {{tlx}}, and then use Template loop detected: Template:Tlc, Template loop detected: Template:Tlc or Template loop detected: Template:Tlc thereafter.
| Template
| Mnemonic
| Format differentiation
|
| Template loop detected: Template:Tlc
| Template link code
| Uses the <code>...</code> tags meant for showing programming code.
|
| Template loop detected: Template:Tlc
| Template link dialup-host
| Uses the <tt>...</tt> tags sometimes used for showing programming code. Essentially the non-linking equivalent of {{tlx}}.
|
| Template loop detected: Template:Tlc
| Template link format-normal
| Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. Essentially the non-linking equivalent of {{tlp}}.
|
The three names were based on {{tl}} template link', despite the fact that, unlike the actual Template loop detected: Template:Tlc template, these three don't include an actual link. The mnemonics for Template loop detected: Template:Tlc and Template loop detected: Template:Tlc were invented after the fact, since the template creator used the single letters still available rather than the preferred Template loop detected: Template:Tlc (using <tt>) and Template loop detected: Template:Tlc (using "normal", non-coded text style) monikers.
Basic operation
Here is how these templates look. Code is to the left; actual rendering to the right:
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlc
- Template loop detected: Template:Tlc = {{name|parameters}}
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlf
Use with editprotected templates
Most Wikipedia users and even editors will have little or no need for use (or knowledge) of these templates. You will find them of more use if you are a writer or documenter of templates. However, editors may be pointed here when attempting to deal with edit requests on pages which have been protected in some way.
Pages which have been protected can't be edited by every user, but would-be editors can request specific changes on the corresponding Discussion page. An editor requesting a change to a semi-protected page, for example, would add the {{editsemiprotected}} template, followed by their request, to the Talk page. The Template loop detected: Template:Tlc template expands to a texty notice which includes the instruction, "Replace the Template loop detected: Template:Tlc template with Template loop detected: Template:Tlc when the request has been accepted or rejected." An empowered editor acting on the request would then change the template per this instruction.
The desired effect is to replace the Template loop detected: Template:Tlc template (with its big, eye-catching box of information) by the name of the template, merely showing that the template had been there, and acted upon. The use of the Template loop detected: Template:Tlc template means that the template should appear in a normal, proportional font-face, as in "Template loop detected: Template:Tlf".
Documentation
Functional details
- This template takes another template-name and some associated 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 here???
- Features of Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc:
- They show a template name and up to eight parameters.
- They also show empty parameters. (See examples below.)
- They prevent line wraps in their output.
Usage
Template loop detected: Template:Tlc → Template loop detected: Template:Tlc
Template loop detected: Template:Tlc → {{Template|first_parameter|second|third|fourth|fifth|sixth|seventh|eighth}}
Template loop detected: Template:Tlc → Template loop detected: Template:Tlf
Examples
Note: Wikitables make the <code></code> tags transparent, unfortunately, so the "code colouring" is missing in these examples.
| Code | Result | Comment
|
|---|
| Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Shows its own syntax.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| {{tlc|name|a|b|c|d|e|f|g|h|i|j}} | Template loop detected: Template:Tlc | Shows up to eight parameters. The rest are dropped.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Also shows empty parameters.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Even shows empty parameters that come in the end.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | The use of equals signs is a problem, but there is a fix; see next row.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Use numbered parameters to fix the problem with equals signs. Remember to start from 2, since the "name" is number 1.
|
- 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>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. 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 <pre>...</pre>.
If you have equals signs in your template parameters then it probably is simpler and clearer to code it using <nowiki> tags, etc. Here are the codes to emulate Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc respectively. Code is to the left and actual rendering to the right:
<nowiki>{{name|one=a|two=b}}</nowiki> = {{name|one=a|two=b}}
<tt><nowiki>{{name|one=a|two=b}}</nowiki></tt> = {{name|one=a|two=b}}
<code><nowiki>{{name|one=a|two=b}}</nowiki></code> = {{name|one=a|two=b}}
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlc
es:Plantilla:Tlc
fr:Modèle:Tlc
ja:Template:Tlc
no:mal:Tlc
simple:Template:Tlc
uk:Шаблон:Tld
, see full documentation there.
But here is a short example:
{{tlf|template name|parameters}}
Renders like this:
- Template loop detected: Template:Tlf
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlf
no:mal:Tlf
, but it allows you to give display different text than you are linking to.</div></td></tr><tr style="height:2px;"><td></td></tr><tr><td class="navbox-abovebelow" style=";" colspan="2">See also: {{lts}}, {{tlxb}}, {{para}}</td></tr></table></td></tr></table>cy:Nodyn:Para
et:Mall:Para
eo:Ŝablono:Parametro
es:Plantilla:Parámetro
hsb:Předłoha:Parameter
id:Templat:Para
ja:Template:Para
ro:Format:Para
sl:Predloga:Para
ta:வார்ப்புரு:Para
th:แม่แบบ:Para
".
You can also insert customised text in the link box, by defining the
Usage
This template is for giving examples of template parameter source code (useful in template documentation and talk page discussions of template code). It must have one or two parameters itself. The first is the name of the example parameter to display (this may be empty, but it must be present), and the second (optional) one is a value for the first example parameter, or (if the first {{para}} parameter is empty) an unnamed example parameter.
Examples
- {{para|name}}
- renders as
- Template loop detected: Template:Para
- {{para|title|<var>book title</var>}}
- renders as
- Template loop detected: Template:Para
- {{para| |section}}
- renders as
- Template loop detected: Template:Para
- (for unnamed parameters in the example code; note the empty first parameter in the {{para}} template)
- {{para|<var>parameter</var>|<var>value</var>}}
- renders as
- Template loop detected: Template:Para
When using literal, pre-specified values, simply provide the value (appearance as in example 3). When illustrating hypothetical, variable or user-definable values, use <var>value</var> (appearance as in example 2), and the same should be done for non-literal, example parameters (as in example 4).
See also
- Template:Tlx – for providing examples of entire-template code with included parameters
| v · d · eTemplateLinking Templates |
|---|
| | TL |
- {{tl}} – Template link, no parameters and normal text style.
- {{tlc}} – Not linked, several parameters and text in
<code></code> style.
- {{tld}} – Not linked, several parameters and teletype text style.
- {{tlf}} – Not linked, several parameters and normal text style.
- {{tlx}} – Template link, several parameters and interwiki links, teletype text style.
- {{tn}} – Same as
This is the Template loop detected: Template:Tlf template.
This template works almost exactly like
This is the Template loop detected: Template:Tlc template.
This page also provides the full documentation for the templates {{tld}} and {{tlf}}, which work almost exactly identically.
Purpose and naming
When a template name with braces is to be shown in documentation, the braces have to be escaped in some way so it doesn't become an actual call to the template. Instead of using <nowiki></nowiki> tags you can write it more simply and concisely by using the Template loop detected: Template:Tlc, Template loop detected: Template:Tlc, or Template loop detected: Template:Tlc templates.
These templates work similarly to Template loop detected: Template:Tlc and Template loop detected: Template:Tlc, but don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since they can decrease readability. So on the first occurrence of a template name use {{tl}} or {{tlx}}, and then use Template loop detected: Template:Tlc, Template loop detected: Template:Tlc or Template loop detected: Template:Tlc thereafter.
| Template
| Mnemonic
| Format differentiation
|
| Template loop detected: Template:Tlc
| Template link code
| Uses the <code>...</code> tags meant for showing programming code.
|
| Template loop detected: Template:Tlc
| Template link dialup-host
| Uses the <tt>...</tt> tags sometimes used for showing programming code. Essentially the non-linking equivalent of {{tlx}}.
|
| Template loop detected: Template:Tlc
| Template link format-normal
| Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. Essentially the non-linking equivalent of {{tlp}}.
|
The three names were based on {{tl}} template link', despite the fact that, unlike the actual Template loop detected: Template:Tlc template, these three don't include an actual link. The mnemonics for Template loop detected: Template:Tlc and Template loop detected: Template:Tlc were invented after the fact, since the template creator used the single letters still available rather than the preferred Template loop detected: Template:Tlc (using <tt>) and Template loop detected: Template:Tlc (using "normal", non-coded text style) monikers.
Basic operation
Here is how these templates look. Code is to the left; actual rendering to the right:
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlc
- Template loop detected: Template:Tlc = {{name|parameters}}
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlf
Use with editprotected templates
Most Wikipedia users and even editors will have little or no need for use (or knowledge) of these templates. You will find them of more use if you are a writer or documenter of templates. However, editors may be pointed here when attempting to deal with edit requests on pages which have been protected in some way.
Pages which have been protected can't be edited by every user, but would-be editors can request specific changes on the corresponding Discussion page. An editor requesting a change to a semi-protected page, for example, would add the {{editsemiprotected}} template, followed by their request, to the Talk page. The Template loop detected: Template:Tlc template expands to a texty notice which includes the instruction, "Replace the Template loop detected: Template:Tlc template with Template loop detected: Template:Tlc when the request has been accepted or rejected." An empowered editor acting on the request would then change the template per this instruction.
The desired effect is to replace the Template loop detected: Template:Tlc template (with its big, eye-catching box of information) by the name of the template, merely showing that the template had been there, and acted upon. The use of the Template loop detected: Template:Tlc template means that the template should appear in a normal, proportional font-face, as in "Template loop detected: Template:Tlf".
Documentation
Functional details
- This template takes another template-name and some associated 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 here???
- Features of Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc:
- They show a template name and up to eight parameters.
- They also show empty parameters. (See examples below.)
- They prevent line wraps in their output.
Usage
Template loop detected: Template:Tlc → Template loop detected: Template:Tlc
Template loop detected: Template:Tlc → {{Template|first_parameter|second|third|fourth|fifth|sixth|seventh|eighth}}
Template loop detected: Template:Tlc → Template loop detected: Template:Tlf
Examples
Note: Wikitables make the <code></code> tags transparent, unfortunately, so the "code colouring" is missing in these examples.
| Code | Result | Comment
|
|---|
| Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Shows its own syntax.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| {{tlc|name|a|b|c|d|e|f|g|h|i|j}} | Template loop detected: Template:Tlc | Shows up to eight parameters. The rest are dropped.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Also shows empty parameters.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Even shows empty parameters that come in the end.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | The use of equals signs is a problem, but there is a fix; see next row.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Use numbered parameters to fix the problem with equals signs. Remember to start from 2, since the "name" is number 1.
|
- 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>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. 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 <pre>...</pre>.
If you have equals signs in your template parameters then it probably is simpler and clearer to code it using <nowiki> tags, etc. Here are the codes to emulate Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc respectively. Code is to the left and actual rendering to the right:
<nowiki>{{name|one=a|two=b}}</nowiki> = {{name|one=a|two=b}}
<tt><nowiki>{{name|one=a|two=b}}</nowiki></tt> = {{name|one=a|two=b}}
<code><nowiki>{{name|one=a|two=b}}</nowiki></code> = {{name|one=a|two=b}}
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlc
es:Plantilla:Tlc
fr:Modèle:Tlc
ja:Template:Tlc
no:mal:Tlc
simple:Template:Tlc
uk:Шаблон:Tld
, see full documentation there.
But here is a short example:
{{tlf|template name|parameters}}
Renders like this:
- Template loop detected: Template:Tlf
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlf
no:mal:Tlf
, but shows the braces as part of the link.
This is the Template loop detected: Template:Tlf template.
This template works almost exactly like
This is the Template loop detected: Template:Tlc template.
This page also provides the full documentation for the templates {{tld}} and {{tlf}}, which work almost exactly identically.
Purpose and naming
When a template name with braces is to be shown in documentation, the braces have to be escaped in some way so it doesn't become an actual call to the template. Instead of using <nowiki></nowiki> tags you can write it more simply and concisely by using the Template loop detected: Template:Tlc, Template loop detected: Template:Tlc, or Template loop detected: Template:Tlc templates.
These templates work similarly to Template loop detected: Template:Tlc and Template loop detected: Template:Tlc, but don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since they can decrease readability. So on the first occurrence of a template name use {{tl}} or {{tlx}}, and then use Template loop detected: Template:Tlc, Template loop detected: Template:Tlc or Template loop detected: Template:Tlc thereafter.
| Template
| Mnemonic
| Format differentiation
|
| Template loop detected: Template:Tlc
| Template link code
| Uses the <code>...</code> tags meant for showing programming code.
|
| Template loop detected: Template:Tlc
| Template link dialup-host
| Uses the <tt>...</tt> tags sometimes used for showing programming code. Essentially the non-linking equivalent of {{tlx}}.
|
| Template loop detected: Template:Tlc
| Template link format-normal
| Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. Essentially the non-linking equivalent of {{tlp}}.
|
The three names were based on {{tl}} template link', despite the fact that, unlike the actual Template loop detected: Template:Tlc template, these three don't include an actual link. The mnemonics for Template loop detected: Template:Tlc and Template loop detected: Template:Tlc were invented after the fact, since the template creator used the single letters still available rather than the preferred Template loop detected: Template:Tlc (using <tt>) and Template loop detected: Template:Tlc (using "normal", non-coded text style) monikers.
Basic operation
Here is how these templates look. Code is to the left; actual rendering to the right:
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlc
- Template loop detected: Template:Tlc = {{name|parameters}}
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlf
Use with editprotected templates
Most Wikipedia users and even editors will have little or no need for use (or knowledge) of these templates. You will find them of more use if you are a writer or documenter of templates. However, editors may be pointed here when attempting to deal with edit requests on pages which have been protected in some way.
Pages which have been protected can't be edited by every user, but would-be editors can request specific changes on the corresponding Discussion page. An editor requesting a change to a semi-protected page, for example, would add the {{editsemiprotected}} template, followed by their request, to the Talk page. The Template loop detected: Template:Tlc template expands to a texty notice which includes the instruction, "Replace the Template loop detected: Template:Tlc template with Template loop detected: Template:Tlc when the request has been accepted or rejected." An empowered editor acting on the request would then change the template per this instruction.
The desired effect is to replace the Template loop detected: Template:Tlc template (with its big, eye-catching box of information) by the name of the template, merely showing that the template had been there, and acted upon. The use of the Template loop detected: Template:Tlc template means that the template should appear in a normal, proportional font-face, as in "Template loop detected: Template:Tlf".
Documentation
Functional details
- This template takes another template-name and some associated 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 here???
- Features of Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc:
- They show a template name and up to eight parameters.
- They also show empty parameters. (See examples below.)
- They prevent line wraps in their output.
Usage
Template loop detected: Template:Tlc → Template loop detected: Template:Tlc
Template loop detected: Template:Tlc → {{Template|first_parameter|second|third|fourth|fifth|sixth|seventh|eighth}}
Template loop detected: Template:Tlc → Template loop detected: Template:Tlf
Examples
Note: Wikitables make the <code></code> tags transparent, unfortunately, so the "code colouring" is missing in these examples.
| Code | Result | Comment
|
|---|
| Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Shows its own syntax.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| {{tlc|name|a|b|c|d|e|f|g|h|i|j}} | Template loop detected: Template:Tlc | Shows up to eight parameters. The rest are dropped.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Also shows empty parameters.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Even shows empty parameters that come in the end.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | The use of equals signs is a problem, but there is a fix; see next row.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Use numbered parameters to fix the problem with equals signs. Remember to start from 2, since the "name" is number 1.
|
- 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>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. 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 <pre>...</pre>.
If you have equals signs in your template parameters then it probably is simpler and clearer to code it using <nowiki> tags, etc. Here are the codes to emulate Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc respectively. Code is to the left and actual rendering to the right:
<nowiki>{{name|one=a|two=b}}</nowiki> = {{name|one=a|two=b}}
<tt><nowiki>{{name|one=a|two=b}}</nowiki></tt> = {{name|one=a|two=b}}
<code><nowiki>{{name|one=a|two=b}}</nowiki></code> = {{name|one=a|two=b}}
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlc
es:Plantilla:Tlc
fr:Modèle:Tlc
ja:Template:Tlc
no:mal:Tlc
simple:Template:Tlc
uk:Шаблон:Tld
, see full documentation there.
But here is a short example:
{{tlf|template name|parameters}}
Renders like this:
- Template loop detected: Template:Tlf
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlf
no:mal:Tlf
, but it allows you to give display different text than you are linking to.</div></td></tr><tr style="height:2px;"><td></td></tr><tr><td class="navbox-abovebelow" style=";" colspan="2">See also: {{lts}}, {{tlxb}}, {{para}}</td></tr></table></td></tr></table>cy:Nodyn:Para
et:Mall:Para
eo:Ŝablono:Parametro
es:Plantilla:Parámetro
hsb:Předłoha:Parameter
id:Templat:Para
ja:Template:Para
ro:Format:Para
sl:Predloga:Para
ta:வார்ப்புரு:Para
th:แม่แบบ:Para
parameter. For example:
|link box=This documentation is automatically generated by [[Template:Country showdata]]
Automatic functions
If the documentation page doesn't exist, the [create] link includes a preload page so that clicking it will pre-fill the edit form with the basic documentation page format. Preload text is also used for the /sandbox and /testcases (create) links.
When this template is on a protected template page it now automatically adds {{pp-template}} which shows the grey or red padlock in the top right corner. So no need to manually add
This is the Template loop detected: Template:Tlf template.
This template works almost exactly like
This is the Template loop detected: Template:Tlc template.
This page also provides the full documentation for the templates {{tld}} and {{tlf}}, which work almost exactly identically.
Purpose and naming
When a template name with braces is to be shown in documentation, the braces have to be escaped in some way so it doesn't become an actual call to the template. Instead of using <nowiki></nowiki> tags you can write it more simply and concisely by using the Template loop detected: Template:Tlc, Template loop detected: Template:Tlc, or Template loop detected: Template:Tlc templates.
These templates work similarly to Template loop detected: Template:Tlc and Template loop detected: Template:Tlc, but don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since they can decrease readability. So on the first occurrence of a template name use {{tl}} or {{tlx}}, and then use Template loop detected: Template:Tlc, Template loop detected: Template:Tlc or Template loop detected: Template:Tlc thereafter.
| Template
| Mnemonic
| Format differentiation
|
| Template loop detected: Template:Tlc
| Template link code
| Uses the <code>...</code> tags meant for showing programming code.
|
| Template loop detected: Template:Tlc
| Template link dialup-host
| Uses the <tt>...</tt> tags sometimes used for showing programming code. Essentially the non-linking equivalent of {{tlx}}.
|
| Template loop detected: Template:Tlc
| Template link format-normal
| Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. Essentially the non-linking equivalent of {{tlp}}.
|
The three names were based on {{tl}} template link', despite the fact that, unlike the actual Template loop detected: Template:Tlc template, these three don't include an actual link. The mnemonics for Template loop detected: Template:Tlc and Template loop detected: Template:Tlc were invented after the fact, since the template creator used the single letters still available rather than the preferred Template loop detected: Template:Tlc (using <tt>) and Template loop detected: Template:Tlc (using "normal", non-coded text style) monikers.
Basic operation
Here is how these templates look. Code is to the left; actual rendering to the right:
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlc
- Template loop detected: Template:Tlc = {{name|parameters}}
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlf
Use with editprotected templates
Most Wikipedia users and even editors will have little or no need for use (or knowledge) of these templates. You will find them of more use if you are a writer or documenter of templates. However, editors may be pointed here when attempting to deal with edit requests on pages which have been protected in some way.
Pages which have been protected can't be edited by every user, but would-be editors can request specific changes on the corresponding Discussion page. An editor requesting a change to a semi-protected page, for example, would add the {{editsemiprotected}} template, followed by their request, to the Talk page. The Template loop detected: Template:Tlc template expands to a texty notice which includes the instruction, "Replace the Template loop detected: Template:Tlc template with Template loop detected: Template:Tlc when the request has been accepted or rejected." An empowered editor acting on the request would then change the template per this instruction.
The desired effect is to replace the Template loop detected: Template:Tlc template (with its big, eye-catching box of information) by the name of the template, merely showing that the template had been there, and acted upon. The use of the Template loop detected: Template:Tlc template means that the template should appear in a normal, proportional font-face, as in "Template loop detected: Template:Tlf".
Documentation
Functional details
- This template takes another template-name and some associated 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 here???
- Features of Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc:
- They show a template name and up to eight parameters.
- They also show empty parameters. (See examples below.)
- They prevent line wraps in their output.
Usage
Template loop detected: Template:Tlc → Template loop detected: Template:Tlc
Template loop detected: Template:Tlc → {{Template|first_parameter|second|third|fourth|fifth|sixth|seventh|eighth}}
Template loop detected: Template:Tlc → Template loop detected: Template:Tlf
Examples
Note: Wikitables make the <code></code> tags transparent, unfortunately, so the "code colouring" is missing in these examples.
| Code | Result | Comment
|
|---|
| Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Shows its own syntax.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| {{tlc|name|a|b|c|d|e|f|g|h|i|j}} | Template loop detected: Template:Tlc | Shows up to eight parameters. The rest are dropped.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Also shows empty parameters.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Even shows empty parameters that come in the end.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | The use of equals signs is a problem, but there is a fix; see next row.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Use numbered parameters to fix the problem with equals signs. Remember to start from 2, since the "name" is number 1.
|
- 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>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. 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 <pre>...</pre>.
If you have equals signs in your template parameters then it probably is simpler and clearer to code it using <nowiki> tags, etc. Here are the codes to emulate Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc respectively. Code is to the left and actual rendering to the right:
<nowiki>{{name|one=a|two=b}}</nowiki> = {{name|one=a|two=b}}
<tt><nowiki>{{name|one=a|two=b}}</nowiki></tt> = {{name|one=a|two=b}}
<code><nowiki>{{name|one=a|two=b}}</nowiki></code> = {{name|one=a|two=b}}
See also
| v · d · eTemplateLinking Templates |
|---|
| | TL |
- {{tl}} – Template link, no parameters and normal text style.
- {{tlc}} – Not linked, several parameters and text in
<code></code> style.
- {{tld}} – Not linked, several parameters and teletype text style.
- {{tlf}} – Not linked, several parameters and normal text style.
- {{tlx}} – Template link, several parameters and interwiki links, teletype text style.
- {{tn}} – Same as
This is the Template loop detected: Template:Tlf template.
This template works almost exactly like
This is the Template loop detected: Template:Tlc template.
This page also provides the full documentation for the templates {{tld}} and {{tlf}}, which work almost exactly identically.
Purpose and naming
When a template name with braces is to be shown in documentation, the braces have to be escaped in some way so it doesn't become an actual call to the template. Instead of using <nowiki></nowiki> tags you can write it more simply and concisely by using the Template loop detected: Template:Tlc, Template loop detected: Template:Tlc, or Template loop detected: Template:Tlc templates.
These templates work similarly to Template loop detected: Template:Tlc and Template loop detected: Template:Tlc, but don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since they can decrease readability. So on the first occurrence of a template name use {{tl}} or {{tlx}}, and then use Template loop detected: Template:Tlc, Template loop detected: Template:Tlc or Template loop detected: Template:Tlc thereafter.
| Template
| Mnemonic
| Format differentiation
|
| Template loop detected: Template:Tlc
| Template link code
| Uses the <code>...</code> tags meant for showing programming code.
|
| Template loop detected: Template:Tlc
| Template link dialup-host
| Uses the <tt>...</tt> tags sometimes used for showing programming code. Essentially the non-linking equivalent of {{tlx}}.
|
| Template loop detected: Template:Tlc
| Template link format-normal
| Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. Essentially the non-linking equivalent of {{tlp}}.
|
The three names were based on {{tl}} template link', despite the fact that, unlike the actual Template loop detected: Template:Tlc template, these three don't include an actual link. The mnemonics for Template loop detected: Template:Tlc and Template loop detected: Template:Tlc were invented after the fact, since the template creator used the single letters still available rather than the preferred Template loop detected: Template:Tlc (using <tt>) and Template loop detected: Template:Tlc (using "normal", non-coded text style) monikers.
Basic operation
Here is how these templates look. Code is to the left; actual rendering to the right:
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlc
- Template loop detected: Template:Tlc = {{name|parameters}}
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlf
Use with editprotected templates
Most Wikipedia users and even editors will have little or no need for use (or knowledge) of these templates. You will find them of more use if you are a writer or documenter of templates. However, editors may be pointed here when attempting to deal with edit requests on pages which have been protected in some way.
Pages which have been protected can't be edited by every user, but would-be editors can request specific changes on the corresponding Discussion page. An editor requesting a change to a semi-protected page, for example, would add the {{editsemiprotected}} template, followed by their request, to the Talk page. The Template loop detected: Template:Tlc template expands to a texty notice which includes the instruction, "Replace the Template loop detected: Template:Tlc template with Template loop detected: Template:Tlc when the request has been accepted or rejected." An empowered editor acting on the request would then change the template per this instruction.
The desired effect is to replace the Template loop detected: Template:Tlc template (with its big, eye-catching box of information) by the name of the template, merely showing that the template had been there, and acted upon. The use of the Template loop detected: Template:Tlc template means that the template should appear in a normal, proportional font-face, as in "Template loop detected: Template:Tlf".
Documentation
Functional details
- This template takes another template-name and some associated 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 here???
- Features of Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc:
- They show a template name and up to eight parameters.
- They also show empty parameters. (See examples below.)
- They prevent line wraps in their output.
Usage
Template loop detected: Template:Tlc → Template loop detected: Template:Tlc
Template loop detected: Template:Tlc → {{Template|first_parameter|second|third|fourth|fifth|sixth|seventh|eighth}}
Template loop detected: Template:Tlc → Template loop detected: Template:Tlf
Examples
Note: Wikitables make the <code></code> tags transparent, unfortunately, so the "code colouring" is missing in these examples.
| Code | Result | Comment
|
|---|
| Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Shows its own syntax.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| {{tlc|name|a|b|c|d|e|f|g|h|i|j}} | Template loop detected: Template:Tlc | Shows up to eight parameters. The rest are dropped.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Also shows empty parameters.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Even shows empty parameters that come in the end.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | The use of equals signs is a problem, but there is a fix; see next row.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Use numbered parameters to fix the problem with equals signs. Remember to start from 2, since the "name" is number 1.
|
- 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>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. 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 <pre>...</pre>.
If you have equals signs in your template parameters then it probably is simpler and clearer to code it using <nowiki> tags, etc. Here are the codes to emulate Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc respectively. Code is to the left and actual rendering to the right:
<nowiki>{{name|one=a|two=b}}</nowiki> = {{name|one=a|two=b}}
<tt><nowiki>{{name|one=a|two=b}}</nowiki></tt> = {{name|one=a|two=b}}
<code><nowiki>{{name|one=a|two=b}}</nowiki></code> = {{name|one=a|two=b}}
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlc
es:Plantilla:Tlc
fr:Modèle:Tlc
ja:Template:Tlc
no:mal:Tlc
simple:Template:Tlc
uk:Шаблон:Tld
, see full documentation there.
But here is a short example:
{{tlf|template name|parameters}}
Renders like this:
- Template loop detected: Template:Tlf
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlf
no:mal:Tlf
, but shows the braces as part of the link.
This is the Template loop detected: Template:Tlf template.
This template works almost exactly like
This is the Template loop detected: Template:Tlc template.
This page also provides the full documentation for the templates {{tld}} and {{tlf}}, which work almost exactly identically.
Purpose and naming
When a template name with braces is to be shown in documentation, the braces have to be escaped in some way so it doesn't become an actual call to the template. Instead of using <nowiki></nowiki> tags you can write it more simply and concisely by using the Template loop detected: Template:Tlc, Template loop detected: Template:Tlc, or Template loop detected: Template:Tlc templates.
These templates work similarly to Template loop detected: Template:Tlc and Template loop detected: Template:Tlc, but don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since they can decrease readability. So on the first occurrence of a template name use {{tl}} or {{tlx}}, and then use Template loop detected: Template:Tlc, Template loop detected: Template:Tlc or Template loop detected: Template:Tlc thereafter.
| Template
| Mnemonic
| Format differentiation
|
| Template loop detected: Template:Tlc
| Template link code
| Uses the <code>...</code> tags meant for showing programming code.
|
| Template loop detected: Template:Tlc
| Template link dialup-host
| Uses the <tt>...</tt> tags sometimes used for showing programming code. Essentially the non-linking equivalent of {{tlx}}.
|
| Template loop detected: Template:Tlc
| Template link format-normal
| Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. Essentially the non-linking equivalent of {{tlp}}.
|
The three names were based on {{tl}} template link', despite the fact that, unlike the actual Template loop detected: Template:Tlc template, these three don't include an actual link. The mnemonics for Template loop detected: Template:Tlc and Template loop detected: Template:Tlc were invented after the fact, since the template creator used the single letters still available rather than the preferred Template loop detected: Template:Tlc (using <tt>) and Template loop detected: Template:Tlc (using "normal", non-coded text style) monikers.
Basic operation
Here is how these templates look. Code is to the left; actual rendering to the right:
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlc
- Template loop detected: Template:Tlc = {{name|parameters}}
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlf
Use with editprotected templates
Most Wikipedia users and even editors will have little or no need for use (or knowledge) of these templates. You will find them of more use if you are a writer or documenter of templates. However, editors may be pointed here when attempting to deal with edit requests on pages which have been protected in some way.
Pages which have been protected can't be edited by every user, but would-be editors can request specific changes on the corresponding Discussion page. An editor requesting a change to a semi-protected page, for example, would add the {{editsemiprotected}} template, followed by their request, to the Talk page. The Template loop detected: Template:Tlc template expands to a texty notice which includes the instruction, "Replace the Template loop detected: Template:Tlc template with Template loop detected: Template:Tlc when the request has been accepted or rejected." An empowered editor acting on the request would then change the template per this instruction.
The desired effect is to replace the Template loop detected: Template:Tlc template (with its big, eye-catching box of information) by the name of the template, merely showing that the template had been there, and acted upon. The use of the Template loop detected: Template:Tlc template means that the template should appear in a normal, proportional font-face, as in "Template loop detected: Template:Tlf".
Documentation
Functional details
- This template takes another template-name and some associated 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 here???
- Features of Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc:
- They show a template name and up to eight parameters.
- They also show empty parameters. (See examples below.)
- They prevent line wraps in their output.
Usage
Template loop detected: Template:Tlc → Template loop detected: Template:Tlc
Template loop detected: Template:Tlc → {{Template|first_parameter|second|third|fourth|fifth|sixth|seventh|eighth}}
Template loop detected: Template:Tlc → Template loop detected: Template:Tlf
Examples
Note: Wikitables make the <code></code> tags transparent, unfortunately, so the "code colouring" is missing in these examples.
| Code | Result | Comment
|
|---|
| Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Shows its own syntax.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| {{tlc|name|a|b|c|d|e|f|g|h|i|j}} | Template loop detected: Template:Tlc | Shows up to eight parameters. The rest are dropped.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Also shows empty parameters.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Even shows empty parameters that come in the end.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | The use of equals signs is a problem, but there is a fix; see next row.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Use numbered parameters to fix the problem with equals signs. Remember to start from 2, since the "name" is number 1.
|
- 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>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. 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 <pre>...</pre>.
If you have equals signs in your template parameters then it probably is simpler and clearer to code it using <nowiki> tags, etc. Here are the codes to emulate Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc respectively. Code is to the left and actual rendering to the right:
<nowiki>{{name|one=a|two=b}}</nowiki> = {{name|one=a|two=b}}
<tt><nowiki>{{name|one=a|two=b}}</nowiki></tt> = {{name|one=a|two=b}}
<code><nowiki>{{name|one=a|two=b}}</nowiki></code> = {{name|one=a|two=b}}
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlc
es:Plantilla:Tlc
fr:Modèle:Tlc
ja:Template:Tlc
no:mal:Tlc
simple:Template:Tlc
uk:Шаблон:Tld
, see full documentation there.
But here is a short example:
{{tlf|template name|parameters}}
Renders like this:
- Template loop detected: Template:Tlf
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlf
no:mal:Tlf
, but it allows you to give display different text than you are linking to.</div></td></tr><tr style="height:2px;"><td></td></tr><tr><td class="navbox-abovebelow" style=";" colspan="2">See also: {{lts}}, {{tlxb}}, {{para}}</td></tr></table></td></tr></table>cy:Nodyn:Tlc
es:Plantilla:Tlc
fr:Modèle:Tlc
ja:Template:Tlc
no:mal:Tlc
simple:Template:Tlc
uk:Шаблон:Tld
, see full documentation there.
But here is a short example:
{{tlf|template name|parameters}}
Renders like this:
- Template loop detected: Template:Tlf
See also
| v · d · eTemplateLinking Templates |
|---|
| | TL |
- {{tl}} – Template link, no parameters and normal text style.
- {{tlc}} – Not linked, several parameters and text in
<code></code> style.
- {{tld}} – Not linked, several parameters and teletype text style.
- {{tlf}} – Not linked, several parameters and normal text style.
- {{tlx}} – Template link, several parameters and interwiki links, teletype text style.
- {{tn}} – Same as
This is the Template loop detected: Template:Tlf template.
This template works almost exactly like
This is the Template loop detected: Template:Tlc template.
This page also provides the full documentation for the templates {{tld}} and {{tlf}}, which work almost exactly identically.
Purpose and naming
When a template name with braces is to be shown in documentation, the braces have to be escaped in some way so it doesn't become an actual call to the template. Instead of using <nowiki></nowiki> tags you can write it more simply and concisely by using the Template loop detected: Template:Tlc, Template loop detected: Template:Tlc, or Template loop detected: Template:Tlc templates.
These templates work similarly to Template loop detected: Template:Tlc and Template loop detected: Template:Tlc, but don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since they can decrease readability. So on the first occurrence of a template name use {{tl}} or {{tlx}}, and then use Template loop detected: Template:Tlc, Template loop detected: Template:Tlc or Template loop detected: Template:Tlc thereafter.
| Template
| Mnemonic
| Format differentiation
|
| Template loop detected: Template:Tlc
| Template link code
| Uses the <code>...</code> tags meant for showing programming code.
|
| Template loop detected: Template:Tlc
| Template link dialup-host
| Uses the <tt>...</tt> tags sometimes used for showing programming code. Essentially the non-linking equivalent of {{tlx}}.
|
| Template loop detected: Template:Tlc
| Template link format-normal
| Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. Essentially the non-linking equivalent of {{tlp}}.
|
The three names were based on {{tl}} template link', despite the fact that, unlike the actual Template loop detected: Template:Tlc template, these three don't include an actual link. The mnemonics for Template loop detected: Template:Tlc and Template loop detected: Template:Tlc were invented after the fact, since the template creator used the single letters still available rather than the preferred Template loop detected: Template:Tlc (using <tt>) and Template loop detected: Template:Tlc (using "normal", non-coded text style) monikers.
Basic operation
Here is how these templates look. Code is to the left; actual rendering to the right:
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlc
- Template loop detected: Template:Tlc = {{name|parameters}}
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlf
Use with editprotected templates
Most Wikipedia users and even editors will have little or no need for use (or knowledge) of these templates. You will find them of more use if you are a writer or documenter of templates. However, editors may be pointed here when attempting to deal with edit requests on pages which have been protected in some way.
Pages which have been protected can't be edited by every user, but would-be editors can request specific changes on the corresponding Discussion page. An editor requesting a change to a semi-protected page, for example, would add the {{editsemiprotected}} template, followed by their request, to the Talk page. The Template loop detected: Template:Tlc template expands to a texty notice which includes the instruction, "Replace the Template loop detected: Template:Tlc template with Template loop detected: Template:Tlc when the request has been accepted or rejected." An empowered editor acting on the request would then change the template per this instruction.
The desired effect is to replace the Template loop detected: Template:Tlc template (with its big, eye-catching box of information) by the name of the template, merely showing that the template had been there, and acted upon. The use of the Template loop detected: Template:Tlc template means that the template should appear in a normal, proportional font-face, as in "Template loop detected: Template:Tlf".
Documentation
Functional details
- This template takes another template-name and some associated 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 here???
- Features of Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc:
- They show a template name and up to eight parameters.
- They also show empty parameters. (See examples below.)
- They prevent line wraps in their output.
Usage
Template loop detected: Template:Tlc → Template loop detected: Template:Tlc
Template loop detected: Template:Tlc → {{Template|first_parameter|second|third|fourth|fifth|sixth|seventh|eighth}}
Template loop detected: Template:Tlc → Template loop detected: Template:Tlf
Examples
Note: Wikitables make the <code></code> tags transparent, unfortunately, so the "code colouring" is missing in these examples.
| Code | Result | Comment
|
|---|
| Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Shows its own syntax.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| {{tlc|name|a|b|c|d|e|f|g|h|i|j}} | Template loop detected: Template:Tlc | Shows up to eight parameters. The rest are dropped.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Also shows empty parameters.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Even shows empty parameters that come in the end.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | The use of equals signs is a problem, but there is a fix; see next row.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Use numbered parameters to fix the problem with equals signs. Remember to start from 2, since the "name" is number 1.
|
- 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>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. 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 <pre>...</pre>.
If you have equals signs in your template parameters then it probably is simpler and clearer to code it using <nowiki> tags, etc. Here are the codes to emulate Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc respectively. Code is to the left and actual rendering to the right:
<nowiki>{{name|one=a|two=b}}</nowiki> = {{name|one=a|two=b}}
<tt><nowiki>{{name|one=a|two=b}}</nowiki></tt> = {{name|one=a|two=b}}
<code><nowiki>{{name|one=a|two=b}}</nowiki></code> = {{name|one=a|two=b}}
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlc
es:Plantilla:Tlc
fr:Modèle:Tlc
ja:Template:Tlc
no:mal:Tlc
simple:Template:Tlc
uk:Шаблон:Tld
, see full documentation there.
But here is a short example:
{{tlf|template name|parameters}}
Renders like this:
- Template loop detected: Template:Tlf
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlf
no:mal:Tlf
, but shows the braces as part of the link.
This is the Template loop detected: Template:Tlf template.
This template works almost exactly like
This is the Template loop detected: Template:Tlc template.
This page also provides the full documentation for the templates {{tld}} and {{tlf}}, which work almost exactly identically.
Purpose and naming
When a template name with braces is to be shown in documentation, the braces have to be escaped in some way so it doesn't become an actual call to the template. Instead of using <nowiki></nowiki> tags you can write it more simply and concisely by using the Template loop detected: Template:Tlc, Template loop detected: Template:Tlc, or Template loop detected: Template:Tlc templates.
These templates work similarly to Template loop detected: Template:Tlc and Template loop detected: Template:Tlc, but don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since they can decrease readability. So on the first occurrence of a template name use {{tl}} or {{tlx}}, and then use Template loop detected: Template:Tlc, Template loop detected: Template:Tlc or Template loop detected: Template:Tlc thereafter.
| Template
| Mnemonic
| Format differentiation
|
| Template loop detected: Template:Tlc
| Template link code
| Uses the <code>...</code> tags meant for showing programming code.
|
| Template loop detected: Template:Tlc
| Template link dialup-host
| Uses the <tt>...</tt> tags sometimes used for showing programming code. Essentially the non-linking equivalent of {{tlx}}.
|
| Template loop detected: Template:Tlc
| Template link format-normal
| Uses proportional-spaced font as is normal for regular text rather than a monospace font as typically used with programming code. Essentially the non-linking equivalent of {{tlp}}.
|
The three names were based on {{tl}} template link', despite the fact that, unlike the actual Template loop detected: Template:Tlc template, these three don't include an actual link. The mnemonics for Template loop detected: Template:Tlc and Template loop detected: Template:Tlc were invented after the fact, since the template creator used the single letters still available rather than the preferred Template loop detected: Template:Tlc (using <tt>) and Template loop detected: Template:Tlc (using "normal", non-coded text style) monikers.
Basic operation
Here is how these templates look. Code is to the left; actual rendering to the right:
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlc
- Template loop detected: Template:Tlc = {{name|parameters}}
- Template loop detected: Template:Tlc = Template loop detected: Template:Tlf
Use with editprotected templates
Most Wikipedia users and even editors will have little or no need for use (or knowledge) of these templates. You will find them of more use if you are a writer or documenter of templates. However, editors may be pointed here when attempting to deal with edit requests on pages which have been protected in some way.
Pages which have been protected can't be edited by every user, but would-be editors can request specific changes on the corresponding Discussion page. An editor requesting a change to a semi-protected page, for example, would add the {{editsemiprotected}} template, followed by their request, to the Talk page. The Template loop detected: Template:Tlc template expands to a texty notice which includes the instruction, "Replace the Template loop detected: Template:Tlc template with Template loop detected: Template:Tlc when the request has been accepted or rejected." An empowered editor acting on the request would then change the template per this instruction.
The desired effect is to replace the Template loop detected: Template:Tlc template (with its big, eye-catching box of information) by the name of the template, merely showing that the template had been there, and acted upon. The use of the Template loop detected: Template:Tlc template means that the template should appear in a normal, proportional font-face, as in "Template loop detected: Template:Tlf".
Documentation
Functional details
- This template takes another template-name and some associated 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 here???
- Features of Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc:
- They show a template name and up to eight parameters.
- They also show empty parameters. (See examples below.)
- They prevent line wraps in their output.
Usage
Template loop detected: Template:Tlc → Template loop detected: Template:Tlc
Template loop detected: Template:Tlc → {{Template|first_parameter|second|third|fourth|fifth|sixth|seventh|eighth}}
Template loop detected: Template:Tlc → Template loop detected: Template:Tlf
Examples
Note: Wikitables make the <code></code> tags transparent, unfortunately, so the "code colouring" is missing in these examples.
| Code | Result | Comment
|
|---|
| Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Shows its own syntax.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc |
| {{tlc|name|a|b|c|d|e|f|g|h|i|j}} | Template loop detected: Template:Tlc | Shows up to eight parameters. The rest are dropped.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Also shows empty parameters.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Even shows empty parameters that come in the end.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | The use of equals signs is a problem, but there is a fix; see next row.
| | Template loop detected: Template:Tlc | Template loop detected: Template:Tlc | Use numbered parameters to fix the problem with equals signs. Remember to start from 2, since the "name" is number 1.
|
- 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>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. 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 <pre>...</pre>.
If you have equals signs in your template parameters then it probably is simpler and clearer to code it using <nowiki> tags, etc. Here are the codes to emulate Template loop detected: Template:Tlc, Template loop detected: Template:Tlc and Template loop detected: Template:Tlc respectively. Code is to the left and actual rendering to the right:
<nowiki>{{name|one=a|two=b}}</nowiki> = {{name|one=a|two=b}}
<tt><nowiki>{{name|one=a|two=b}}</nowiki></tt> = {{name|one=a|two=b}}
<code><nowiki>{{name|one=a|two=b}}</nowiki></code> = {{name|one=a|two=b}}
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlc
es:Plantilla:Tlc
fr:Modèle:Tlc
ja:Template:Tlc
no:mal:Tlc
simple:Template:Tlc
uk:Шаблон:Tld
, see full documentation there.
But here is a short example:
{{tlf|template name|parameters}}
Renders like this:
- Template loop detected: Template:Tlf
See also
Template loop detected: Template:Tl-navcy:Nodyn:Tlf
no:mal:Tlf
, but it allows you to give display different text than you are linking to.</div></td></tr><tr style="height:2px;"><td></td></tr><tr><td class="navbox-abovebelow" style=";" colspan="2">See also: {{lts}}, {{tlxb}}, {{para}}</td></tr></table></td></tr></table>cy:Nodyn:Tlf
no:mal:Tlf
to templates that use {{documentation}}.
When this template is on a /sandbox subpage it automatically adds the {{template sandbox notice}}.
Subject space vs talk space
Terminology: Subject space is the opposite of talk space. For instance "Template:" is the subject space of "Template talk:".
This template is usually placed in subject space, within <noinclude> tags. But in some cases this template needs to be on the talkpage:
- In MediaWiki space, since <noinclude> often doesn't work in system messages and since MediaWiki space needs to be kept clean for performance reasons.
When placed on talkpages this template usually is placed near the top of the page and without <noinclude> tags.
The /doc, /sandbox and /testcases pages should normally be in subject space, except in the namespaces that don't have the MediaWiki subpage feature enabled: Main, File, MediaWiki and Category. (But currently we only show the /sandbox and /testcases links from User, User talk, Template and Template talk space.) There are also a whole bunch of other technical reasons why the /doc page must be stored under the talkpage for those namespaces.
This template automatically points its create links for the /doc, /sandbox and /testcases to the right namespace.
Technical details
This template calls {{documentation/start box2}} and {{documentation/end box2}} which in turn call {{documentation/start box}} and {{documentation/end box}}. /start box (and /end box) hold most of the code, while this template and /start box2 (and /end box2) do parameter preprocessing.
The preload page for the /doc [create] link is Template:Documentation/preload, but in File space it is Template:Documentation/preload-filespace. The preload pages for the /sandbox and /testcases (create) links are Template:Documentation/preload-sandbox and Template:Documentation/preload-testcases.
For more technical details see the talk page.
See also
ar:قالب:توثيق
ba:Ҡалып:Doc
bar:Vorlage:Dokumentation
bg:Шаблон:Документация
bs:Šablon:Dokumentacija
ca:Plantilla:Ús de la plantilla
cs:Šablona:Dokumentace
cy:Nodyn:Doc
da:Skabelon:Dokumentation
de:Vorlage:Dokumentation
dsb:Pśedłoga:Dokumentacija
et:Mall:Usage of template
es:Plantilla:Documentación
el:Πρότυπο:Τεκμηρίωση προτύπου
eo:Ŝablono:Dok
eu:Txantiloi:Txantiloi dokumentazioa
fa:الگو:توضیحات
fr:Modèle:Documentation
gl:Modelo:Uso de marcador
he:תבנית:תיעוד
hsb:Předłoha:Dokumentacija
la:Formula:Documentation
hu:Sablon:Sablondokumentáció
hy:Կաղապար:Փաստաթղթեր
ia:Patrono:Docpatrono
id:Templat:Dokumentasi
it:Template:Man
ja:Template:Documentation
ko:틀:틀 설명문서
ku:Şablon:Belgekirin
ml:ഫലകം:വിവരണം
ms:Templat:Dokumentasi
no:mal:Dokumentasjon
nl:Sjabloon:Sjabdoc
pl:Szablon:Dokumentacja
pt:Predefinição:Documentação
ro:Format:Documentaţie
ru:Шаблон:Doc
simple:Template:Documentation
sk:Šablóna:Dokumentácia
sl:Predloga:Dokumentacija
sr:Шаблон:Документација
sq:Stampa:Dokumentacion
stq:Foarloage:Dokumentation
sv:Mall:Dokumentation
tl:Template:Documantation
tr:Şablon:Belgeleme
tt:Үрнәк:Doc
tpi:Template:Template doc
uk:Шаблон:Документація
ur:سانچہ:Documentation
war:Template:Documentation
yo:Àdàkọ:Aṣàlàyé
zh:Template:Documentation
te:మూస:Documentation
|
|
|
|
|
|
|
|
|
|
| |
| |
|