Template:Samp

From TibiaCraft
Revision as of 19:05, 4 October 2025 by Root (talk | contribs) (Created page with "<samp {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} style="padding-left:0.4em; padding-right:0.4em; color:{{#if:{{{color|}}}|{{{color}}}}};{{#if:{{{style|}}}| {{{style}}}|}}" {{#if:{{{lang|}}}|lang="{{{lang}}}" xml:lang="{{{lang}}}"}} {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1}}}</samp><noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

{{{1}}}

Documentation[view] [edit] [history] [purge]
See also: Template:Code

This template is a simplified usage of <samp>...</samp>, which is used to format sample outputs. Usage of samp is deprecated for filenames, so use {{mono}} instead.

Usage

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

  • {{samp|text}}text
  • {{samp|error|color=red}}error

See also

  • {{samps}}, which can format multiple strings but does not support attributes
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Samp/doc.