Template:Code

From Minecraft Wiki
Jump to: navigation, search
[view | edit | history | purge]Documentation
Shortcut
cd
See also: Template:Samp

This template is a simplified usage of <code>...</code>. It supports up to 10 parameters; all will be wrapped by <code> elements with spaces in between.

An optional {{{delimiter}}} parameter may be set to specify more than just the default space between each element. Set it to none to remove the default space.

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.

Examples

  1. {{code|text}}text
  2. {{code|1|2|3|4|5}}1 2 3 4 5
  3. {{code|1|2|3|4|5|delimiter=,}}12345
  4. {{code|1|2|3|4|5|delimiter=and}}1, 2, 3, 4, and 5
  5. {{code|<nowiki>something=one|two|three</nowiki>}}something=one|two|three
  6. {{code|something{{=}}one{{!}}two{{!}}three}}something=one|two|three
[view | edit | history | purge]The above documentation is transcluded from Template:Code/doc.