تغييرات

The UESPWiki – Your source for The Elder Scrolls since 1995
اذهب إلى: تصفح، ابحث

قالب:Tlx/Doc

تم إضافة ٢٬٣٣٧ بايت, ٢١:٣٢، ٣٠ مايو ٢٠١٨
ط
Parameters: Update for changes in template
__NOTOC__
==Summary==
This template is used to display a template name as a mono-spaced link surrounded by braces, along with any required parameters, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.

{{Template copied|Tlx}} Unlike the Wikipedia version, this version can take an unlimited number of parameters.

==Parameters==
{{Parameters
|sepbefore|optional|Separator to display before each vertical pipe character.
|sepafter|optional|Separator to display after each vertical pipe character.
|display|optional|Display name for the template, to preserve the text of older talk page posts.
|1|required|The name of the template to link to.
|''(others)''|optional|Additional parameter names. (Don't forget to escape equals signs with {{tl|{{=}}}}, &amp;#61; or <nowiki><nowiki>=</nowiki></nowiki>, or number any unnamed parameters that require them.)
}}

==Examples==
{| class="wikitable"
!Link Type!!Code!!Result
|-
|'''Link only''' (same as {{tl|tl}})
|<pre>{{tlx|example}}</pre>
|{{tlx|example}}
|-
|'''Link with parameter names'''
|<pre>{{tlx|example|parm1|parm2}}</pre>
|{{tlx|example|parm1|parm2}}
|-
|'''Link with parameter names and values'''
|{{Pre|<nowiki>{{tlx|example | 2=parm1=value1 | 3=parm2=value2}}</nowiki>}}
|{{tlx|example | 2=parm1=value1 | 3=parm2=value2}}
|-
|'''Link with large number of parameters, escaped equals signs, sepbefore and sepafter'''
|{{Pre|<nowiki>{{tlx|example |parm1{{=}}value1 |parm2{{=}}value2 |parm3{{=}}value3 |parm4{{=}}value4 |parm5{{=}}value5 |parm6{{=}}value6 |parm7{{=}}value7 |parm8{{=}}value8 |parm9{{=}}value9 |parm10{{=}}value10 |parm11{{=}}value11 |parm12{{=}}value12 |sepbefore=&amp;#32; |sepafter=&amp;nbsp;}}</nowiki>}}
|{{tlx|example |parm1{{=}}value1 |parm2{{=}}value2 |parm3{{=}}value3 |parm4{{=}}value4 |parm5{{=}}value5 |parm6{{=}}value6 |parm7{{=}}value7 |parm8{{=}}value8 |parm9{{=}}value9 |parm10{{=}}value10 |parm11{{=}}value11 |parm12{{=}}value12 |sepbefore=&#32; |sepafter=&nbsp;}}
|}

==See Also==
*{{tl|tl}} - Template link with proportionally-spaced font
*{{tl|tl2}} - Template link with mono-spaced font
*{{tl|tlp}} - Template link with proportionally-spaced font and parameters
<includeonly>[[Category:Link Templates]]</includeonly><noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>
٤٩٬٣٨٥
٤٩٬٣٨٥ تعديلا

قائمة التصفح