Template:Iconlink: Difference between revisions
Template page
More actions
Moved code for extra text into subtemplate. Tag: 2017 source edit |
Added support for background color. Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#tag:span | <onlyinclude><includeonly>{{#tag:span|{{#tag:span | ||
|[[File:{{{filename}}}|frameless|{{#if:{{{border|}}}|border{{!}}|}}link={{{target}}}|32x32px]]|style=display:inline-block; height:3{{#if:{{{border|}}}|4|2}}px; width:32px; text-align:center; | |[[File:{{{filename}}}|frameless|{{#if:{{{border|}}}|border{{!}}|}}link={{{target}}}|32x32px]]|style=display:inline-block; height:3{{#if:{{{border|}}}|4|2}}px; width:32px; text-align:center; | ||
}} [[{{{target}}}|{{{label|{{{target}}}}}}]]{{#if: {{{extra|}}}| ({{{extra}}})|}}</includeonly></onlyinclude> | }} [[{{{target}}}|{{{label|{{{target}}}}}}]]{{#if: {{{extra|}}}| ({{{extra}}})|}}|style={{#if:{{{color|}}}|display:inline-block; min-width:200px; padding:1px 10px 1px 5px; margin:1px; background-color:{{#switch: {{{color}}} | ||
| #default = {{{color}}} | |||
| Eribu = #2e1816 | |||
| Absu = #38174d | |||
| Zi = #1d226b | |||
| Kur = #42281a | |||
| Indi = #165450 | |||
| Ukkin-Na = #155035 | |||
| Edin = #273c40 | |||
| E-Kur-Mah = #503d2a | |||
| Mar-Uru = #3c3e49 | |||
}}; border-radius:5px;|}}}}</includeonly></onlyinclude> | |||
Do not use this template directly. It is only meant to be used by other templates. Use [[Template:li]] or [[Template:note]] instead. | Do not use this template directly. It is only meant to be used by other templates. Use [[Template:li]] or [[Template:note]] instead. | ||
Revision as of 08:16, 6 October 2022
Do not use this template directly. It is only meant to be used by other templates. Use Template:li or Template:note instead.