Template:Medal Display/GM/test: Difference between revisions

Jump to navigation Jump to search
No edit summary
(Replaced content with "{{#ifeq:{{{link|}}}|1|{{Medal Display/GM/links|ribbon=ribbon}}}}")
Tag: Replaced
Line 1: Line 1:
<div style="position: relative; width: {{Medal Display/GM/base/width|width={{{size}}}}}px; display: -moz-inline-stack; display: inline-block; zoom:1; *display: inline; white-space: nowrap;"><!--
{{#ifeq:{{{link|}}}|1|{{Medal Display/GM/links|ribbon=ribbon}}}}
 
-->{{#if:{{{ribbon|}}}|<!--
 
-->{{#ifeq:{{Medal Display/GM/ribbons/check|ribbon={{{ribbon|}}}}}|MD|<!--
 
-->{{#if:{{{awards|}}}|{{#switch:{{{awards}}}
    |1 = {{Medal Display/GM/overlay/layout|device={{{ribbon}}}|size={{{size|m}}}|position=4}}
    |2 = {{Medal Display/GM/overlay/layout|device={{{ribbon}}}|size={{{size|m}}}|position=3}}<!--
    -->{{Medal Display/GM/overlay/layout|device={{{ribbon}}}|size={{{size|m}}}|position=5}}
    |3 = {{Medal Display/GM/overlay/layout|device={{{ribbon}}}|size={{{size|m}}}|position=2}}<!--
    -->{{Medal Display/GM/overlay/layout|device={{{ribbon}}}|size={{{size|m}}}|position=4}}<!--
    -->{{Medal Display/GM/overlay/layout|device={{{ribbon}}}|size={{{size|m}}}|position=6}}
    |4|5|6|7|8|9 = {{Medal Display/GM/overlay/layout|device={{{ribbon}}}|size={{{size|m}}}|position=1}}<!--
    -->{{Medal Display/GM/overlay/layout|device={{{ribbon}}}|size={{{size|m}}}|position=3}}<!--
    -->{{Medal Display/GM/overlay/layout|device={{{ribbon}}}|size={{{size|m}}}|position=5}}<!--
    -->{{Medal Display/GM/overlay/layout|device={{{ribbon}}}|size={{{size|m}}}|position=7}}}}}}<!--
 
-->|{{#ifeq:{{Medal Display/GM/ribbons/check|ribbon={{{ribbon|}}}}}|RS|<!--
 
-->{{#if:{{{awards|}}}|{{#switch:{{{awards}}}
    |2|6 = {{Medal Display/GM/overlay/layout|device={{#ifeq:{{{awards|}}}|2|Rosette|MarStar}}|size={{{size|m}}}|position=4}}
    |3|7|10 = {{Medal Display/GM/overlay/layout|device={{#ifeq:{{{awards|}}}|3|Rosette|MarStar}}|size={{{size|m}}}|position=3}}<!--
    -->{{Medal Display/GM/overlay/layout|device={{#ifeq:{{{awards|}}}|10|MarStar|Rosette}}|size={{{size|m}}}|position=5}}
    |4|8 = {{Medal Display/GM/overlay/layout|device={{#ifeq:{{{awards|}}}|4|Rosette|MarStar}}|size={{{size|m}}}|position=2}}<!--
    -->{{Medal Display/GM/overlay/layout|device=Rosette|size={{{size|m}}}|position=4}}<!--
    -->{{Medal Display/GM/overlay/layout|device=Rosette|size={{{size|m}}}|position=6}}
    |5|9 = {{Medal Display/GM/overlay/layout|device={{#ifeq:{{{awards|}}}|5|Rosette|MarStar}}|size={{{size|m}}}|position=1}}<!--
    -->{{Medal Display/GM/overlay/layout|device=Rosette|size={{{size|m}}}|position=3}}<!--
    -->{{Medal Display/GM/overlay/layout|device=Rosette|size={{{size|m}}}|position=5}}<!--
    -->{{Medal Display/GM/overlay/layout|device=Rosette|size={{{size|m}}}|position=7}}}}}}<!--
 
-->|{{#ifeq:{{Medal Display/GM/ribbons/check|ribbon={{{ribbon|blank}}}}}|DO|<!--
 
-->{{#ifexpr:{{#if:{{{device1|}}}|1|0}} + {{#if:{{{device2|}}}|1|0}} + {{#if:{{{device3|}}}|1|0}} = 3<!--
 
-->|{{Medal Display/GM/overlay/layout|device={{{device1}}}m|size={{{size|m}}}|position=2}}<!--
-->{{Medal Display/GM/overlay/layout|device={{{device2}}}m|size={{{size|m}}}|position=4}}<!--
-->{{Medal Display/GM/overlay/layout|device={{{device3}}}m|size={{{size|m}}}|position=6}}<!--
 
-->|{{#ifexpr:{{#if:{{{device1|}}}|1|0}} + {{#if:{{{device2|}}}|1|0}} = 2<!--
 
-->|{{Medal Display/GM/overlay/layout|device={{{device1}}}m|size={{{size|m}}}|position=3}}<!--
-->{{Medal Display/GM/overlay/layout|device={{{device2}}}m|size={{{size|m}}}|position=5}}<!--
 
-->|{{#ifexpr:{{#if:{{{device1|}}}|1|0}} = 1<!--
 
-->|{{Medal Display/GM/overlay/layout|device={{{device1}}}|size={{{size|m}}}|position=2}}<!--
 
-->}}}}}}<!--
 
-->|{{#ifeq:{{Medal Display/GM/ribbons/check|ribbon={{{ribbon|blank}}}}}|DN|<!--
 
-->{{#ifexpr:{{#if:{{{device1|}}}|1|0}} + {{#if:{{{device2|}}}|1|0}} + {{#if:{{{device3|}}}|1|0}} = 3<!--
 
-->|{{Medal Display/GM/overlay/layout|device={{{device1}}}m|size={{{size|m}}}|position={{#if:{{{awards|}}}|1|2}}}}<!--
-->{{Medal Display/GM/overlay/layout|device={{{device2}}}m|size={{{size|m}}}|position={{#if:{{{awards|}}}|3|4}}}}<!--
-->{{Medal Display/GM/overlay/layout|device={{{device3}}}m|size={{{size|m}}}|position={{#if:{{{awards|}}}|5|6}}}}<!--
 
-->|{{#ifexpr:{{#if:{{{device1|}}}|1|0}} + {{#if:{{{device2|}}}|1|0}} = 2<!--
 
-->|{{Medal Display/GM/overlay/layout|device={{{device1}}}m|size={{{size|m}}}|position=3}}<!--
-->{{Medal Display/GM/overlay/layout|device={{{device2}}}m|size={{{size|m}}}|position=5}}<!--
 
-->|{{#ifexpr:{{#if:{{{device1|}}}|1|0}} = 1<!--
 
-->|{{Medal Display/GM/overlay/layout|device={{{device1}}}|size={{{size|m}}}|position={{#if:{{{awards|}}}|1|2}}}}<!--
 
-->}}}}}}
 
{{#if:{{{device|}}}{{{device1|}}}{{{device2|}}}{{{device3|}}}|<!--
 
-->{{#if:{{{awards|}}}|{{Medal Display/GM/overlay/layout|device=N{{{awards}}}|size={{{size|m}}}|position=7}}}}|<!--
 
-->{{#if:{{{awards|}}}|{{Medal Display/GM/overlay/layout|device=N{{{awards}}}|size={{{size|m}}}|position=4}}}}<!--
 
-->}}<!--
 
-->|{{#ifeq:{{Medal Display/GM/ribbons/check|ribbon={{{ribbon|blank}}}}}|TRIMSM|<!--
 
-->{{#if:{{{awards|}}}|{{#switch:{{{awards}}}
    |2|6 = {{Medal Display/GM/overlay/layout|device={{#ifeq:{{{awards|}}}|2|TSS|TGS}}|size={{{size|m}}}|position=4}}
    |3|7|10 = {{Medal Display/GM/overlay/layout|device={{#ifeq:{{{awards|}}}|3|TSS|TGS}}|size={{{size|m}}}|position=3}}<!--
    -->{{Medal Display/GM/overlay/layout|device={{#ifeq:{{{awards|}}}|10|TGS|TSS}}|size={{{size|m}}}|position=5}}
    |4|8 = {{Medal Display/GM/overlay/layout|device={{#ifeq:{{{awards|}}}|4|TSS|TGS}}|size={{{size|m}}}|position=2}}<!--
    -->{{Medal Display/GM/overlay/layout|device=TSS|size={{{size|m}}}|position=4}}<!--
    -->{{Medal Display/GM/overlay/layout|device=TSS|size={{{size|m}}}|position=6}}
    |5|9 = {{Medal Display/GM/overlay/layout|device={{#ifeq:{{{awards|}}}|5|TSS|TGS}}|size={{{size|m}}}|position=1}}<!--
    -->{{Medal Display/GM/overlay/layout|device=TSS|size={{{size|m}}}|position=3}}<!--
    -->{{Medal Display/GM/overlay/layout|device=TSS|size={{{size|m}}}|position=5}}<!--
    -->{{Medal Display/GM/overlay/layout|device=TSS|size={{{size|m}}}|position=7}}}}}}<!--
 
-->|{{#ifeq:{{Medal Display/GM/ribbons/check|ribbon={{{ribbon|blank}}}}}|TRI|<!--
 
-->{{#ifexpr:{{#if:{{{device1|}}}|1|0}} = 1<!--
 
-->|{{Medal Display/GM/overlay/layout|device={{{device1}}}|size={{{size|m}}}|position=2}}<!--
 
-->{{#if:{{{awards|}}}|{{Medal Display/GM/overlay/layout|device=T{{{awards}}}|size={{{size|m}}}|position=7}}}}}}
 
}}}}}}}}}}}}}}<!--
 
-->[[File:{{Medal Display/GM/ribbons|ribbon={{{ribbon|blank}}}}}|{{#switch:{{{size|}}}|L|l=160|M|m=120|S|s=80|XS|xs=40}}px]]<!--
 
--></div><noinclude>{{documentation}}</noinclude>

Revision as of 00:41, 14 November 2019