Predefinição:Tlp
A UESPWiki – Sua fonte de The Elder Scrolls desde 1995
Summary
This template is used to display a template name as a 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.
This template was originally copied from Wikipedia. Unlike the Wikipedia version, this version can take an unlimited number of parameters.
Parameters
Tlp | ||
---|---|---|
Parâmetero | Escopo | Descrição |
sepbefore |
optional | Separator to display before each vertical pipe character. |
sepafter |
optional | Separator to display after each vertical pipe character. |
1 |
required | The name of the template to link to. |
(others) |
optional | Additional parameter names. (Don't forget to escape equals signs with {{=}}, = or <nowiki>=</nowiki>, or number any unnamed parameters that require them.) |
Examples
Link Type | Code | Result |
---|---|---|
Link only (same as {{tl}}) |
{{tlp|example}} |
{{example}} |
Link with parameter names |
{{tlp|example|parm1|parm2}} |
{{example|parm1|parm2}} |
Link with parameter names and values | <pre style="width:; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word; ">{{tlp|example | 2=parm1=value1 | 3=parm2=value2}} | {{example |parm1=value1|parm2=value2}} |
Link with large number of parameters, escaped equals signs, sepbefore and sepafter | <pre style="width:; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word; ">{{tlp|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=  |sepafter= }} | {{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}} |