Template:Pennant Rack: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(Fixing spacing)
(Test fix for LABEL=off)
Line 1: Line 1:
<includeonly>{|align=center cellspacing=0
<includeonly>{|align=center cellspacing=0
!{{#switch:{{{LABEL|}}}|off=|=<small>[[Pennants]]</small>|<small>{{{LABEL|}}}</small>}}{{#if:{{{1|}}}|
!{{#switch:{{{LABEL|}}}|off=|=<small>[[Pennants]]</small>|<small>{{{LABEL|}}}</small>}}{{#if:{{{1|}}}|
{{!}}-
{{#ifeq:{{{LABEL|}}}|off||{{!}}}}-
{{Pennant Rack row {{#if:{{#explode:{{{1|}}}~{{{2|}}}~{{{3|}}}|~|2}}|3|{{#if:{{#explode:{{{1|}}}~{{{2|}}}~{{{3|}}}|~|1}}|2|{{#if:{{#explode:{{{1|}}}~{{{2|}}}~{{{3|}}}|~|0}}|1|0}}}}}}|{{trim|{{{1|}}}}}|{{trim|{{{2|}}}}}|{{trim|{{{3|}}}}}}}}}{{#if:{{{4|}}}|
{{Pennant Rack row {{#if:{{#explode:{{{1|}}}~{{{2|}}}~{{{3|}}}|~|2}}|3|{{#if:{{#explode:{{{1|}}}~{{{2|}}}~{{{3|}}}|~|1}}|2|{{#if:{{#explode:{{{1|}}}~{{{2|}}}~{{{3|}}}|~|0}}|1|0}}}}}}|{{trim|{{{1|}}}}}|{{trim|{{{2|}}}}}|{{trim|{{{3|}}}}}}}}}{{#if:{{{4|}}}|
{{!}}-
{{!}}-

Revision as of 15:25, 13 March 2023

Creates a rack for displaying pennants, much like the coin rack template, with the usage being very similar. Here, you may also set the |LABEL= argument to set custom text as the label for the rack.