(Now using module Delimited tag) Tag: Replaced |
Noisy miner (talk | contribs) (Replaced content with "<includeonly>{{#invoke:delimited tag|output|1={{{1|{{{code|}}}}}}|tag=code}}</includeonly><noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude>") Tags: Replaced Manual revert 2017 source edit |
||
(11 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#invoke:delimited tag|output|tag=code}}</includeonly |
+ | <includeonly>{{#invoke:delimited tag|output|1={{{1|{{{code|}}}}}}|tag=code}}</includeonly><noinclude> |
{{documentation}} |
{{documentation}} |
||
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
||
− | + | </noinclude> |
Latest revision as of 04:55, 30 October 2023
Shortcut
See also: Template:Samp
This template is a simplified usage of <code>...</code>
.
Each anonymous parameter is a string to format. Note that <nowiki>...</nowiki>
is needed around a parameter value if it contains the pipe (|
) or equals (=
) symbols, or they will be treated as a parameter separator or parameter identifier, respectively. Alternatively, you could also use {{!}}
or {{=}}
instead.
Use the |delimiter=
parameter (aliases |delim=
or |d=
) to change the separator between each string. Set this value to the name in words of the delimiter, such as "and", "br", "or-list", "none", etc. When using a list delimiter, use |list-level=
to change the indentation (defaults to **
).
Examples
{{code|text}}
–text
{{code|1|2|3|4|5}}
–1
2
3
4
5
{{code|1|2|3|4|5|delimiter=,}}
–1
,2
,3
,4
,5
{{code|1|2|3|4|5|delimiter=and}}
–1
,2
,3
,4
, and5
{{code|<nowiki>something=one|two|three</nowiki>}}
–something=one|two|three
{{code|something{{=}}one{{!}}two{{!}}three}}
–something=one|two|three
[view | edit | history | purge]The above documentation is transcluded from Template:Code/doc.