Template:Magic for job/item: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Kaimoon0 m flex layout for nicer wrapping on extremely narrow viewports (i.e. small phones) |
imported>Kaimoon0 m song icon class |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
--><dt style="flex: 0 0 2ch; margin: 0; border-right: 1px solid #aaa; padding: 0.3em 0.4em; text-align: right; line-height: inherit; font-family: inherit; font-weight: inherit;">{{{level}}}</dt><!-- |
--><dt style="flex: 0 0 2ch; margin: 0; border-right: 1px solid #aaa; padding: 0.3em 0.4em; text-align: right; line-height: inherit; font-family: inherit; font-weight: inherit;">{{{level}}}</dt><!-- |
||
--><dd style="flex: 1 1 18ch; position: relative; margin: 0; padding: 0.3em 0.4em;"><!-- |
--><dd style="flex: 1 1 18ch; position: relative; margin: 0; padding: 0.3em 0.4em;"><!-- |
||
-->{{#switch:{{{type|}}}<!-- |
|||
-->| White Magic = <span class="icon-type-1" style="position: absolute; left: 0.4em; pointer-events: none;">[[File:White-magic-{{#switch:{{{element|}}}|Fire (Element)=fire-menu.webp|Ice=ice-menu.webp|Wind=wind-menu.webp|Earth=earth-menu.webp|Lightning=lightning-menu.webp|Water (Element)=water-menu.webp|#default=menu.webp}}|x18px|text-top|link=|alt=]]</span><!-- |
|||
-->| Black Magic =<span class="icon-type-1" style="position: absolute; left: 0.4em; pointer-events: none;">[[File:Black-magic-{{#switch:{{{element|}}}|Fire (Element)=fire-menu.webp|Ice=ice-menu.webp|Wind=wind-menu.webp|Earth=earth-menu.webp|Lightning=lightning-menu.png|Water (Element)=water-menu.webp|Dark=dark-menu.webp|#default=menu.webp}}|x18px|text-top|link=|alt=]]</span><!-- |
|||
-->}}<!-- |
|||
-->{{#if:{{{icon|}}}|<!-- |
-->{{#if:{{{icon|}}}|<!-- |
||
--><span class="icon-type-2" style="position: absolute; left: 0.4em; pointer-events: none;">[[{{{icon}}}|x18px|text-top|link=|alt=]]</span><!-- |
--><span class="icon-type-{{#switch:{{{type|}}}|Song=1|#default=2}}" style="position: absolute; left: 0.4em; pointer-events: none;">[[{{{icon}}}|x18px|text-top|link=|alt=]]</span><!-- |
||
-->}}<!-- |
-->}}<!-- |
||
-->[[{{{page}}}|<span style="display: inline-block; padding-left: 20px;">{{{name}}}</span>]]<!-- |
-->[[{{{page}}}|<span style="display: inline-block; padding-left: 20px;">{{{name}}}</span>]]<!-- |
||