Plantilla:Muestra
Insert non-formatted text here
- Véase también: Plantilla:Code
- Atajo
- samp
This template is a simplified usage of <samp>...</samp>
. It supports up to 10 parameters; all will be wrapped by <samp>
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
{{samp|text}}
– text{{samp|1|2|3|4|5}}
– 1 2 3 4 5{{samp|1|2|3|4|5|delimiter=,}}
– 1, 2, 3, 4, 5{{samp|1|2|3|4|5|delimiter=and}}
– 1, 2, 3, 4, and 5{{samp|<nowiki>something=one|two|three</nowiki>}}
– something=one|two|three{{samp|something{{=}}one{{!}}two{{!}}three}}
– something=one|two|three
[ver | editar | historia | depurar]La documentación arriba es transcluída desde Plantilla:Muestra/doc.