Difference between revisions of "Template:Badge"

From Project-GC
Jump to: navigation, search
m (Testing another solution for addons in data table)
(Make MaxLoops and AddonsAvailable conditional ({{!}} is required to replace | in conditional statements))
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<includeOnly>
 +
[[Category:BadgeGen]]
 +
</includeOnly>
 
{| class="wikitable" style="float:right;"
 
{| class="wikitable" style="float:right;"
 
|+ {{{BadgeName}}}
 
|+ {{{BadgeName}}}
Line 4: Line 7:
 
|-
 
|-
 
|Name||{{{BadgeName}}}
 
|Name||{{{BadgeName}}}
|-
+
{{#IF:{{{MaxLoops|}}}|
|Max loops||{{{MaxLoops}}}
+
{{!}}-
 +
{{!}}Max loops{{!}}{{!}}{{{MaxLoops}}}}}
 
|-
 
|-
 
! colspan="2"|Requirements
 
! colspan="2"|Requirements
Line 25: Line 29:
 
|Diamond||{{{DiamondRequirement}}}
 
|Diamond||{{{DiamondRequirement}}}
 
|-
 
|-
! colspan="2"|Addons available
+
{{#IF:{{{AddonsAvailable|}}}|
|-
+
! colspan="2"{{!}}Addons available
| colspan="2"|{{{AddonsAvailable}}}
+
{{!}}-
 +
{{!}} colspan="2"{{!}}{{{AddonsAvailable}}}}}
 
|}
 
|}
  
== {{{BadgeName}}} ==
+
<h2> {{{BadgeName}}} </h2>
 +
 
 +
 
 +
<noinclude>
 +
TEMPLATE NOTES
 +
* For variable AddonsAvailable, add a &lt;br&gt; after the four first (D/T, 366, Leapday, FTF), so that the others ends up on a new row.
 +
* Suggested headers, besides Badge-name: Loop, Addons, Related tools, History
 +
</noinclude>

Latest revision as of 13:30, 19 February 2020

{{{BadgeName}}}
General data
Name {{{BadgeName}}}
Requirements
Bronze {{{BronzeRequirement}}}
Silver {{{SilverRequirement}}}
Gold {{{GoldRequirement}}}
Platinum {{{PlatinumRequirement}}}
Ruby {{{RubyRequirement}}}
Sapphire {{{SapphireRequirement}}}
Emerald {{{EmeraldRequirement}}}
Diamond {{{DiamondRequirement}}}

{{{BadgeName}}}


TEMPLATE NOTES

  • For variable AddonsAvailable, add a <br> after the four first (D/T, 366, Leapday, FTF), so that the others ends up on a new row.
  • Suggested headers, besides Badge-name: Loop, Addons, Related tools, History