Template:Map Hex: Difference between revisions
Content deleted Content added
No edit summary |
imported>Turbo566 Turbo566 changed the content model of the page Template:Map Hex from "CSS" to "wikitext" |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="HexCSS" /> |
<templatestyles src="HexCSS" /> |
||
<div style="position:relative;"><div><div class="hextop" style="border-color:{{{backgroundcolor}}}"></div><div class="hexmid" style="background-color:{{{backgroundcolor}}};"></div><div class="hexbot" style="border-color:{{{backgroundcolor}}}"></div></div> |
<div style="position:relative;"><div><div class="hextop" style="border-color:{{{backgroundcolor}}}"></div><div class="hexmid" {{#if:{{{backgroundcolor2|}}}|{{#if:{{{backgroundcolor3|}}}|style="background-image: linear-gradient(to right, {{{backgroundcolor}}}, {{{backgroundcolor3}}}, {{{backgroundcolor2}}});"|style="background-image: linear-gradient(to right, {{{backgroundcolor}}}, {{{backgroundcolor2}}});"}}|style="background-color:{{{backgroundcolor}}};"}}></div><div class="hexbot" style="border-color:{{#if:{{{backgroundcolor2|}}}|{{{backgroundcolor2}}}|{{{backgroundcolor}}}}}"></div></div> |
||
<div style="position:absolute; left: 20px; top: |
<div style="position:absolute; left: 20px; top: 2px; width: 80px; height: 40px; text-align: center;"> |
||
<p style="padding: 0px;">{{#if:{{{system|}}} | [[{{{system}}}|{{{hex}}}<br/>{{{system}}}]] | {{{hex}}}}}</p> |
<p style="padding: 0px; margin: 0px; font-weight: bold;">{{#if:{{{system|}}} | [[{{{system}}}|{{#if:{{{linkcolor|}}}|{{#ifexist: {{{system}}}|<span style="color:{{{linkcolor}}};">{{{hex}}}<br/>{{{system}}}</span>|{{{hex}}}<br/>{{{system}}}}}|{{{hex}}}<br/>{{{system}}}}}]] | {{{hex}}}}}</p> |
||
</div> |
</div> |
||
</div> |
</div> |
||
Line 14: | Line 14: | ||
}, |
}, |
||
"hex": {}, |
"hex": {}, |
||
"system": {} |
"system": {}, |
||
"linkcolor": {}, |
|||
"backgroundcolor2": {}, |
|||
"backgroundcolor3": {} |
|||
}, |
}, |
||
"description": "textcolor" |
"description": "textcolor" |
Latest revision as of 12:48, 11 December 2022
{{{hex}}}
<templatedata> { "params": { "backgroundcolor": { "type": "content", "default": "#aaaaaa" }, "hex": {}, "system": {}, "linkcolor": {}, "backgroundcolor2": {}, "backgroundcolor3": {} }, "description": "textcolor" } </templatedata>