Template:Txrow

From "PTTLink Wiki"
Revision as of 02:30, 28 May 2021 by Mediawiki>ExE Boss (Use {{Documentation}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Code Result

{{Example}}

40px This is an example of a template. For help with templates, see Help:Template.


Template documentationpurge ]

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

Template:Tlrow

{{Tlf|example|example_param1||example_param3}}

{{example|example_param1||example_param3}}

{{Tle|example|example_param1||example_param3}}

{{ Exampleexample_param1example_param3 }}

{{Tlf|example|example_param1||example_param3}}

{{example|example_param1||example_param3}}

Template:Txrow/doc