in these, the pipe and the assigned value (if any) use @media screen{html.skin-theme-clientpref-night .mw-parser-output div:not(.notheme)>.tmp-color,html.skin-t…
| This is the template test cases page for the sandbox of Template:Parameter. 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: |
in these, the pipe and the assigned value (if any) use #333; the assignment operator uses #666 – these colors same as <syntaxhighlight>...</syntaxhighlight> as of 2024-08-07
– 'foo' uses #767600 (default; same as <syntaxhighlight>...</syntaxhighlight> as of 2024-08-07)
– nothing in the output is colored
– nothing in the output is colored and no border
– 'foo' uses #8B0000; same color used by {{!mxt}}
– 'foo' uses #008000; a slightly brighter green than the color used by {{mxt}} (#006400)
– 'foo' uses whatever color is specified in |color= (except red and green); for red, use |color=#f00; for green use |color=#0f0
These tests should be removed in the future when we get rid of |red=, |green=, |mxt=, and |!mxt=:
| Code | Live | Sandbox | Notes |
|---|---|---|---|
{{parameter|name}}
|
|name=
|
|name=
|
|
{{parameter|title|The Oxford English Dictionary}}
|
|title=The Oxford English Dictionary
|
|title=The Oxford English Dictionary
|
|
{{parameter||section}}
|
|section
|
|section
|
For unnamed parameters; note empty first parameter in the code |
{{parameter|{{var|parameter}}|{{var|value}}}}
|
|parameter=value
|
|parameter=value
|
|
{{parameter|name|plain=yes}}
|
|name=
|
|name=
|
|
{{parameter|name|plain=yes|color=inherit}}
|
|name=
|
|name=
|
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.