Difference between revisions of "Template:InfoBoxSystem"

m (Updating)
m (Deadfire moved page Template:InfoBoxSystem2 to Template:InfoBoxSystem: Test successful, commiting the new version of the infobox)
 
(8 intermediate revisions by the same user not shown)
Line 25: Line 25:
 
|label7 = Planet(s)
 
|label7 = Planet(s)
 
|data7 = {{{planets|}}}
 
|data7 = {{{planets|}}}
<!-- Property declarations -->
+
<!-- Property and Category declarations -->
{{#set: Spectral class={{Str left|{{{class}}}|2}}}}
+
{{#if:{{{coord|}}}||<includeonly>[[Category:Systems with Undetermined Coordinates]]</includeonly>}}
{{#set: Recharge time={{Str number/trim|{{{recharge}}}}} hours}}
+
{{#if:{{{class|}}}|{{#set: Spectral class={{Str left|{{{class}}}|2}}}}|<includeonly>[[Category:Systems with undetermined Spectral class]]</includeonly>}}
{{#set: Number of Planets={{Str number/trim|{{{planets}}}}}}}
+
{{#if:{{{recharge|}}}|{{#set: Recharge time={{Str number/trim|{{{recharge}}}}} hours}}|<includeonly>[[Category:Systems with undetermined Recharge time]]</includeonly>}}
 +
{{#if:{{{recharge stations|}}}||<includeonly>[[Category:Systems with undetermined number of Recharge stations]]</includeonly>}}
 +
{{#if:{{{planets|}}}|{{#set: Number of Planets={{Str number/trim|{{{planets}}}}}}}|<includeonly>[[Category:Systems with undetermined number of Planets]]</includeonly>}}
 
}}<noinclude>{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here --></noinclude>
 
}}<noinclude>{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here --></noinclude>
‎<includeonly>{{#ifexist: {{{coord}}} | | [[Category:Systems with Undetermined Coordinates]]}}‎</includeonly>
 

Latest revision as of 18:44, 24 October 2023