Template:Codes
![]() | This template uses Lua: |
This template is a simplified usage of <syntaxhighlight lang="text" class="" style="" inline="1">...
</syntaxhighlight>.
Each anonymous parameter is a string to format. Note that <syntaxhighlight lang="text" class="" style="" inline="1"><nowiki>...</nowiki>;</syntaxhighlight> is needed around a parameter value if it contains the pipe (<syntaxhighlight lang="text" class="" style="" inline="1">|</syntaxhighlight>) or equals (<syntaxhighlight lang="text" class="" style="" inline="1">=</syntaxhighlight>) symbols, or they will be treated as a parameter separator or parameter identifier, respectively. Alternatively, you could also use <syntaxhighlight lang="text" class="" style="" inline="1"><nowiki>|</nowiki></syntaxhighlight> 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".
Examples
- {{codes|text}} –
text
- {{codes|1|2|3|4|5}} –
1
,2
,3
,4
and5
- {{codes|1|2|3|4|5|delimiter=,}} –
1
,2
,3
,4
,5
- {{codes|1|2|3|4|5|delimiter=and}} –
1
,2
,3
,4
and5
- {{codes|<nowiki>something=one|two|three</nowiki>}} –
something=one|two|three
- {{codes|something{{=}}one{{!}}two{{!}}three}} –
something=one|two|three
![]() | This template has not been added to any categories. Please help out by adding categories to it so that it can be listed with similar templates. |