Template:Example Table
Appearance
| This template uses Lua: |
This template does the same thing as {{Example Stack}} with |style=wikitable. For example:
{{Example Table|t=Yesno|spaced=1
|1=yes\yes=Accepted\no=Rejected\def=Unknown
|2=no\yes=Accepted\no=Rejected\def=Unknown
|3=maybe\yes=Accepted\no=Rejected\def=Unknown
}}
- ↓
| Code | Result |
|---|---|
{{Yesno |yes |yes=Accepted |no=Rejected |def=Unknown }} |
Accepted |
{{Yesno |no |yes=Accepted |no=Rejected |def=Unknown }} |
Rejected |
{{Yesno |maybe |yes=Accepted |no=Rejected |def=Unknown }} |
Unknown |
See {{Example Stack}} for details of the available parameters and how to specify each set of example parameters.
Additional settings
[edit]Set |wide= to a true value (yes) to make the table span the full available width.
Set |inthemiddle= to a true value (yes) to generate only table rows, rather than a complete table.
Syntax highlighting is enabled by default. Use |syntaxhighlight=no to disable it.
See also
[edit]- {{Testcase table}}
TemplateData
[edit]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Example Table in articles based on its TemplateData.
TemplateData for Example Table
| This template needs TemplateData. Please add a TemplateData section, including {{TemplateData header}}, if you are able. |