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: Difference between revisions

From SotA Wiki
Jump to navigation Jump to search
Fenyx4 (talk | contribs)
Created page with "{{#if: {{{Value|}}}|<nowiki> </nowiki> {{Tablerow|Label={{{Label}}}|Value={{{Value|}}} }} | }}<noinclude><br style="clear:both;"/> {{documentation}} Category:Utility Templa..."
 
Fenyx4 (talk | contribs)
No edit summary
Line 1: Line 1:
{{#if: {{{Value|}}}|<nowiki>
{{#if: {{{Value|}}}|<nowiki>
  </nowiki>
  </nowiki>
{{Tablerow|Label={{{Label}}}|Value={{{Value|}}} }}
{{Tablerow|Label={{{Label}}}|Value={{#ifeq: {{{link|}}}|none|{{{Value|}}}|[[{{{Value|}}}]]}} }}
|
|
}}<noinclude><br style="clear:both;"/>
}}<noinclude><br style="clear:both;"/>
{{documentation}}
{{documentation}}
[[Category:Utility Templates]]</noinclude>
[[Category:Utility Templates]]</noinclude>

Revision as of 18:51, 4 March 2014


Template documentation (for the above template, sometimes hidden or invisible)
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...
TablerowOptional
Location Dark places


{{Tabletop}} {{TablerowOptional | Label = '''Location''' | Value = Dark places | link = none}} {{Tablebottom}} gives...
TablerowOptional
Location Dark places


{{Tabletop}} {{TablerowOptional | Label = '''Location'''}} {{Tablebottom}} gives...
TablerowOptional


See also
Template:Tabletop
Template:Tablerow
Template:Tableimage
Template:TablerowAsk
Template:TablerowShow
Template:TablerowAskOptional
Template:TablerowShowOptional
Template:Tablebottom
Visit Template:TablerowOptional/doc to edit this text! (How does this work?)