Template:Ship tier icon: Difference between revisions
From Corsair Cove Official Wiki
changed divs to spans |
changed span to inline-block to help restore positioning |
||
| Line 1: | Line 1: | ||
<includeonly><span style="position: relative; width: {{#switch: {{{size|sm}}}|xs=16|sm=32|md=64}}px; height: {{#switch: {{{size|sm}}}|xs=16|sm=32|md=64}}px; line-height: 0;"><!-- | <includeonly><span style="position: relative; display: inline-block; width: {{#switch: {{{size|sm}}}|xs=16|sm=32|md=64}}px; height: {{#switch: {{{size|sm}}}|xs=16|sm=32|md=64}}px; line-height: 0;"><!-- | ||
-->[[File: {{#if: {{{path|}}} | Ship tier icon {{{path}}}.png | T_SevenSeas_TierNumber.png }}|x{{#switch: {{{size|sm}}}|xs=16|sm=32|md=64}}px]]<!-- | -->[[File: {{#if: {{{path|}}} | Ship tier icon {{{path}}}.png | T_SevenSeas_TierNumber.png }}|x{{#switch: {{{size|sm}}}|xs=16|sm=32|md=64}}px]]<!-- | ||
--><span style="position: absolute; top: | --><span style="position: absolute; top: 46%; left: 30%; width: 50%; height: 60%; font-size: {{#switch: {{{size|sm}}}|xs=12|sm=20|md=42}}px;">{{{1|1}}}</span><!-- | ||
--></span></includeonly><noinclude> | --></span></includeonly><noinclude> | ||


