VOOZH about

URL: https://minecraft.wiki/w/Template:Samp

⇱ Template:Samp – Minecraft Wiki


Template:Samp

From Minecraft Wiki
Jump to navigation Jump to search

{{{1}}}

Documentation[view] [edit] [history] [purge]

This template is a simplified usage of <samp>...</samp>, which is used to format sample outputs.

Usage of <samp>...</samp> is deprecated for filenames, use {{mono}} instead.

The first 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.

Examples

[edit source]
  • {{|text}}text
  • {{|error|color=red}}error

See also

[edit source]
  • {{Samps}} – which can format multiple strings but does not support attributes.
  • {{Code}} – quick shortcut for using <code>...</code>.
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Samp/doc.
Retrieved from "https://minecraft.wiki/w/Template:Samp?oldid=2476731"

Navigation menu