Difference between revisions of "Template:NHVariationsTable"

From Nookipedia, the Animal Crossing wiki
(adding overflow for mobile)
(hiding color1 and color2 in the event that neither exists)
Line 14: Line 14:
 
{{!}}}
 
{{!}}}
 
     | {{#forargs: variation | key | value |  
 
     | {{#forargs: variation | key | value |  
{{!}} <span style="font-size:.9em; color:#323232;">'''{{{variation{{#var: key}}|}}}'''</span><br><small>{{Color|{{{var{{#var: key}}-color1|}}}|small=yes}}<br>{{Color|{{{var{{#var: key}}-color2|}}}|small=yes}}</small>}}
+
{{!}} <span style="font-size:.9em; color:#323232;">'''{{{variation{{#var: key}}|}}}'''</span>{{#if:{{{var{{#var: key}}-color1|}}}|<br><small>{{Color|{{{var{{#var: key}}-color1|}}}|small=yes}}</small>}}{{#if:{{{var{{#var: key}}-color2|}}}|<br><small>{{Color|{{{var{{#var: key}}-color2|}}}|small=yes}}</small>}}}}
 
{{!}}-
 
{{!}}-
 
{{#forargs: variation | key | value | &#32;
 
{{#forargs: variation | key | value | &#32;

Revision as of 13:35, November 16, 2021