Template:Tlx/doc: Difference between revisions
Template page
More actions
No edit summary |
m code instead of tt tag |
||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
This template creates example usage syntax for a template, and links the name to the template page. The name is derived from "'''T'''emplate '''l'''ist e'''x'''panded". | This template creates example usage syntax for a template, and links the name to the template page. The name is derived from "'''T'''emplate '''l'''ist e'''x'''panded". | ||
Up to 7 pass parameters (numbered) for the specified template are displayed as 'placeholders', and more parameters are shown as "< | Up to 7 pass parameters (numbered) for the specified template are displayed as 'placeholders', and more parameters are shown as "<code>|</code>''...''". An optional <code>SISTER</code> parameter can specify an interwiki prefix to link to another wiki. Examples: | ||
{| border="1" cellpadding="4" class="wikitable" | {| border="1" cellpadding="4" class="wikitable" | ||
| Line 21: | Line 21: | ||
||  | ||  | ||
|- | |- | ||
|{{Tlx|SISTER=W:|Tlx|x3|1< | |{{Tlx|SISTER=W:|Tlx|x3|1<code>|</code>2<code>|</code>3}} | ||
|{{Tlx|SISTER=W:|x3|1|2|3}} | |{{Tlx|SISTER=W:|x3|1|2|3}} | ||
||  | ||  | ||
|- | |- | ||
|{{Tlx|SISTER=W:|Tlx|x4|1< | |{{Tlx|SISTER=W:|Tlx|x4|1<code>|</code>2<code>|</code>3|4}} | ||
|{{Tlx|SISTER=W:|x4|1|2|3|4}} | |{{Tlx|SISTER=W:|x4|1|2|3|4}} | ||
|up to 7 parameters, then ... | |up to 7 parameters, then ... | ||
|- | |- | ||
|{{Tlx|SISTER=W:|Tlx|x4|1< | |{{Tlx|SISTER=W:|Tlx|x4|1<code>|</code>2<code>|</code>3&#124;4}} | ||
|{{Tlx|SISTER=W:|x4|1|2|3|4}} | |{{Tlx|SISTER=W:|x4|1|2|3|4}} | ||
|align="right"|< | |align="right"|<code>&#124;</code> for more | ||
|- | |- | ||
|{{Tlx|SISTER=W:|Tlx|x1|x=u}} | |{{Tlx|SISTER=W:|Tlx|x1|x=u}} | ||
| Line 39: | Line 39: | ||
|{{Tlx|SISTER=W:|Tlx|x1|x&#61;u}} | |{{Tlx|SISTER=W:|Tlx|x1|x&#61;u}} | ||
|{{Tlx|SISTER=W:|x1|x=u}} | |{{Tlx|SISTER=W:|x1|x=u}} | ||
|align="right"|< | |align="right"|<code>&#61;</code> is okay | ||
|- | |- | ||
|{{Tlx|SISTER=W:|Tlx|x1|<nowiki>x=u</nowiki>}} | |{{Tlx|SISTER=W:|Tlx|x1|<nowiki>x=u</nowiki>}} | ||
| Line 51: | Line 51: | ||
|{{Tlx|SISTER=W:|Tlx|x2|&#32;|two}} | |{{Tlx|SISTER=W:|Tlx|x2|&#32;|two}} | ||
|{{Tlx|SISTER=W:|x2| |two}} | |{{Tlx|SISTER=W:|x2| |two}} | ||
|align="right"|< | |align="right"|<code>&#32;</code> is okay | ||
|- | |- | ||
|{{Tlx|SISTER=W:|Tlx|x2|&nbsp;|two}} | |{{Tlx|SISTER=W:|Tlx|x2|&nbsp;|two}} | ||
|{{Tlx|SISTER=W:|x2| |two}} | |{{Tlx|SISTER=W:|x2| |two}} | ||
|align="right"|< | |align="right"|<code>&nbsp;</code> is okay | ||
|- | |- | ||
|{{Tlx|SISTER=W:|Tlx|x2| &#124; two}} | |{{Tlx|SISTER=W:|Tlx|x2| &#124; two}} | ||
|{{Tlx|SISTER=W:|x2| | two}} | |{{Tlx|SISTER=W:|x2| | two}} | ||
|align="right"|< | |align="right"|<code>&#124;</code> is okay | ||
|- | |- | ||
|| {{Tlx|SISTER=W:|Tlx|x2| {{!}} two}} | || {{Tlx|SISTER=W:|Tlx|x2| {{!}} two}} | ||
| Line 129: | Line 129: | ||
"type": "string" | "type": "string" | ||
} } }</templatedata></includeonly> | } } }</templatedata></includeonly> | ||
==={{int:Seealso}}=== | |||
{{Template names}} | |||