Template:Para/testcases
From Kenshi Wiki
| This is the template test cases page for the sandbox of Template:Para. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Syntax highlighting
in these, the pipe and the assigned value (if any) use ; the assignment operator uses – these colors same as <syntaxhighlight>...</syntaxhighlight> as of 2024-08-07
{{para/sandbox|foo|bar}}|foo=bar– 'foo' uses(default; same as<syntaxhighlight>...</syntaxhighlight>as of 2024-08-07)
{{para/sandbox|foo|bar|color=}}|foo=bar– 'foo' uses default
{{para/sandbox|foo|bar|color=none}}|foo=bar– nothing in the output is colored
{{para/sandbox|foo|bar|color=none|plain=yes}}|foo=bar– nothing in the output is colored and no border
{{para/sandbox|foo|bar|color=red}}|foo=bar– 'foo' uses; same color used by{{!mxt}}
{{para/sandbox|foo|bar|color=green}}|foo=bar– 'foo' uses; a slightly brighter green than the color used by{{mxt}}()
{{para/sandbox|foo|bar|color=blue}}|foo=bar– 'foo' uses whatever color is specified in|color=(exceptredandgreen); for , use|color=#f00; for use|color=#0f0
{{para/sandbox|foo|bar|color=#f00}}|foo=bar
{{para/sandbox|foo|bar|color=#0f0}}|foo=bar
Other formatting
| Code | Live | Sandbox | Notes |
|---|---|---|---|
{{para|name}}
|
|name=
|
|name=
|
|
{{para|title|The Oxford English Dictionary}}
|
|title=The Oxford English Dictionary
|
|title=The Oxford English Dictionary
|
|
{{para||section}}
|
|section
|
|section
|
For unnamed parameters; note empty first parameter in the code |
{{para|{{var|parameter}}|{{var|value}}}}
|
|parameter=value
|
|parameter=value
|
|
{{para|name|plain=yes}}
|
|name=
|
|name=
|
|
{{para|name|plain=yes|color=none}}
|
|name=
|
|name=
|
