Template:Map Hex

From Beacon Space
Revision as of 06:39, 11 December 2022 by imported>Turbo566 (Turbo566 changed the content model of the page Template:Map Hex from "wikitext" to "CSS")
<templatestyles src="HexCSS" />
<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: 2px; width: 80px; height: 40px; text-align: center;">
<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>
<noinclude>
<templatedata>
{
	"params": {
		"backgroundcolor": {
			"type": "content",
			"default": "#aaaaaa"
		},
		"hex": {},
		"system": {},
		"linkcolor": {},
		"backgroundcolor2": {},
		"backgroundcolor3": {}
	},
	"description": "textcolor"
}
</templatedata>
</noinclude>