模板:Samp

来自SCP: Sharp Wiki
[查看 | 编辑 | 历史 | 刷新]Documentation

This template is a simplified use of <samp>...</samp>. It supports as many parameters as you want; everything will be wrapped by a -{}-<samp> element.

An optional {{{delimiter}}} parameter can be set to specify the default space between each element.

Note that if the parameter contains a pipe symbol (-{}-|) or an equal sign (-{}-=), you need to surround the parameter value with -{}-&lt ;nowiki>...</nowiki>, otherwise they are treated as parameter separators or parameter identifiers, respectively. Alternatively, you can instead use -{}-{{!}}, -{}-&#124;, {{=}}, and -{}-&#61; instead.

Examples[编辑 | 编辑源代码]

  1. {{samp|text}}-{}-text
  2. {{samp|1|2|3|4|5}}-{}-1 2 3 4 5
  3. {{samp|1|2|3|4|5|delimiter=、}}-{}-12345
  4. {{samp|1|2|3|4|5|d=pretty}}-{}-1pretty2pretty3pretty4pretty5
  5. {{samp|<nowiki>something=one|two|three<nowiki>}}-{}-something=one|two|three
  6. {{samp|something{{=}}one{{!}}two&#124;three}}-{}-something=one|two|three
[查看 | 编辑 | 历史 | 刷新]The above documentation is transcluded from 模板:Samp/doc.
Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。