Thank you for visiting SotAwiki, a Shroud of the Avatar Wiki Encyclopedia. If you see any information that is outdated, please take the time to update it, or if you prefer, leave a message for other editors. This community wiki is for the benefit of all Avatars!
Template:TablerowOptional/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
:A template which adds a row inside of a table '''if''' a value is provided. To be used with <nowiki>{{Tabletop}}</nowiki> and <nowiki>{{Tablebottom}}</nowiki>. | :A template which adds a row inside of a table '''if''' a value is provided. To be used with <nowiki>{{Tabletop}}</nowiki> and <nowiki>{{Tablebottom}}</nowiki>. | ||
;Syntax | ;Syntax | ||
:{{T|TablerowOptional|Label|Value}} | :{{T|TablerowOptional|Label|Value|link}} | ||
;Sample code | ;Sample code | ||
:<code><nowiki>{{Tabletop}} | :<code><nowiki>{{Tabletop}} | ||
| Line 13: | Line 13: | ||
| Label = '''Location''' | | Label = '''Location''' | ||
| Value = Dark places}} | | Value = Dark places}} | ||
{{Tablebottom}} | |||
<br style="clear:both;"/> | |||
:<code><nowiki>{{Tabletop}} | |||
{{TablerowOptional | |||
| Label = '''Location''' | |||
| Value = Dark places | |||
| link = none}} | |||
{{Tablebottom}}</nowiki></code> gives... | |||
:{{Tabletop}} | |||
{{TablerowOptional | |||
| Label = '''Location''' | |||
| Value = Dark places | |||
| link=none}} | |||
{{Tablebottom}} | {{Tablebottom}} | ||
<br style="clear:both;"/> | <br style="clear:both;"/> | ||
Revision as of 18:56, 4 March 2014
- Description
- A template which adds a row inside of a table if a value is provided. To be used with {{Tabletop}} and {{Tablebottom}}.
- Syntax
- {{TablerowOptional|<Label>|<Value>|<link>}}
- Sample code
{{Tabletop}} {{TablerowOptional | Label = '''Location''' | Value = Dark places}} {{Tablebottom}}gives...
| Location | Dark places |
{{Tabletop}} {{TablerowOptional | Label = '''Location''' | Value = Dark places | link = none}} {{Tablebottom}}gives...
| Location | Dark places |
{{Tabletop}} {{TablerowOptional | Label = '''Location'''}} {{Tablebottom}}gives...