Template:Magic for job/item: Difference between revisions
From HorizonXI Wiki
m (border fix?) |
m (song icon class) |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div style="border: solid #aaa; border-width: 0 1px 1px; background: #eff4f5;"><!-- | <includeonly><div style="display: flex; border: solid #aaa; border-width: 0 1px 1px; background: #eff4f5;"><!-- | ||
--><dt style=" | --><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=" | --><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|}}}|<!-- | |||
--><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>]]<!-- | |||
-->{{#if:{{{changes|}}}|<!-- | |||
--> {{changes|{{{changes}}}}}<!-- | |||
-->}}<!-- | |||
--></dd><!-- | |||
--></div></includeonly><noinclude>[[Category:Data templates]]</noinclude> | --></div></includeonly><noinclude>[[Category:Data templates]]</noinclude> | ||
