Template:Txrow
Code | Result |
---|---|
{{Example}} |
This is an example of a template. For help with templates, see m:Help:Template.
This is a "message" or "notice" template which returns only this message and takes no parameters. |
Template example row. This template is used inside tables to demonstrate other templates. The borders here are not part of the template. It's similar to {{Tlrow}} but doesn't include the extra links. It also handles empty parameters slightly different for the first column ("what to type" part) and the second column (result) can be overridden with |example=
to do perform the template directly in case it doesn't work correctly.
The following compares {{tlrow}} and {{txrow}} with and without using the |example=
parameter. They are demonstrating {{Tlf}} and {{Tle}}, templates where empty parameters are not ignored. Only the last two rows display correctly.
{| class="wikitable"
! Code !! Result
{{tlrow|tlf|example|example_param1||example_param3}}
{{txrow|tlf|example|example_param1||example_param3}}
{{txrow|tle|example|example_param1||example_param3|example={{tle|t=example|example_param1||example_param3}}}}
{{txrow|tlf|example|example_param1||example_param3|example={{tlf|example|example_param1||example_param3}}}}
|}
- Gives:
Code | Result |
---|---|
{{Tlf|Example|example_param1}} | {{example|example_param1||example_param3|||}}
|
{{Tlf|example|example_param1||example_param3}} |
{{example|example_param1||example_param3|||||}} |
{{Tle|example|example_param1||example_param3}} |
{{ Example | example_param1 | example_param3 }} |
{{Tlf|example|example_param1||example_param3}} |
{{example|example_param1||example_param3}} |
Usage
{{Txrow |1= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Template Name | example | required | |
2 | Parameter 1 | empty | optional | |
3 | Parameter 2 | empty | optional | |
4 | Parameter 3 | empty | optional | |
5 | Parameter 4 | empty | optional | |
6 | Parameter 5 | empty | optional | |
7 | Parameter 6 | empty | optional | |
8 | Parameter 7 | empty | optional | |
9 | Parameter 8 | empty | optional | |
10 | Parameter 9 | empty | optional | |
11 | Parameter 10 | empty | optional | |
12 | Parameter 11 | empty | optional | |
13 | Parameter 12 | empty | optional | |
14 | Parameter 13 | empty | optional | |
15 | Parameter 14 | empty | optional | |
style-r | <tr> style | empty | optional | |
style-l | <td> style | empty | optional | |
example | Example | empty | optional | |
col3 | Column 3 | empty | optional | |
eq | empty | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information
|
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: all users