Difference between revisions of "Template:NHVariationsTable"

From Nookipedia, the Animal Crossing wiki
(adding overflow for mobile)
(Preparing template for several pages moves and changes to names.)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
       {{!}} <span style="font-size:.9em; color:#323232;">'''{{{pattern{{#var: key}}|}}}'''</span><br><small>{{Color|{{{pat{{#var: key}}-color1|}}}|small=yes}}</small>
 
       {{!}} <span style="font-size:.9em; color:#323232;">'''{{{pattern{{#var: key}}|}}}'''</span><br><small>{{Color|{{{pat{{#var: key}}-color1|}}}|small=yes}}</small>
 
  {{#forargs: variation | key2 | value | &#32;
 
  {{#forargs: variation | key2 | value | &#32;
  {{!}} [[File:{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}} ({{{variation{{#var: key2 }}|}}} - {{{pattern{{#var: key }}|}}}) NH Icon.png|60px]] }}
+
  {{!}} [[File:{{#invoke:TitleCase|main|{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key2 }}|}}}}} - {{#invoke:TitleCase|main|{{{pattern{{#var: key }}|}}}}}) NH Icon.png|60px]] }}
 
   }}<br>
 
   }}<br>
 
{{!}}}
 
{{!}}}
 
     | {{#forargs: variation | key | value | &#32;
 
     | {{#forargs: variation | key | value | &#32;
{{!}} <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;
{{!}} [[File:{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}} ({{{variation{{#var: key }}|}}}) NH Icon.png|60px]]}}<br>
+
{{!}} [[File:{{#invoke:TitleCase|main|{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png|60px]]}}<br>
 
{{!}}}
 
{{!}}}
 
   }}
 
   }}
Line 25: Line 25:
 
   {{!}}-
 
   {{!}}-
 
   {{#forargs: pattern | key | value | &#32;
 
   {{#forargs: pattern | key | value | &#32;
   {{!}} [[File:{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}} ({{{pattern{{#var: key }}|}}}) NH Icon.png|60px]]}}<br>
+
   {{!}} [[File:{{#invoke:TitleCase|main|{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}} ({{#invoke:TitleCase|main|{{{pattern{{#var: key }}|}}}}}) NH Icon.png|60px]]}}<br>
 
   {{!}}}
 
   {{!}}}
 
   }}
 
   }}
 
}}
 
}}
 
</div>
 
</div>

Latest revision as of 23:53, November 26, 2022