This is a documentation for Board Game Arena: play board games online !

Template:RftgWorld: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<div alt="{{{tooltip}}} world" style="display:inline-grid;place-items:center;width:{{{size|48}}}px;height:{{{size|48}}}px;margin:0 1px;vertical-align:middle;color:#000;font-family:Roboto,Arial,sans-serif;font-weight:1000;font-size:24px;-webkit-text-stroke:1px #fff;"><div id="windfall" style="opacity:{{{w|0}}};width:{{{size|48}}}px;height:{{{size|48}}}px;grid-area:1/1;border-radius:50%;background:conic-gradient(#DAA566 25%,#FFF200 25% 50%,#80CC28 50% 75%,#80D6F7 75%);"></div><div id="novelty windfall" style="opacity:calc({{{w|0}}} * {{{n|0}}});width:{{{size|48}}}px;height:{{{size|48}}}px;grid-area:1/1;border-radius:50%;background:#80D6F7;"></div><div id="rare elements windfall" style="opacity:calc({{{w|0}}} * {{{r|0}}});width:{{{size|48}}}px;height:{{{size|48}}}px;grid-area:1/1;border-radius:50%;background:#DAA566;"></div><div id="genes windfall" style="opacity:calc({{{w|0}}} * {{{g|0}}});width:{{{size|48}}}px;height:{{{size|48}}}px;grid-area:1/1;border-radius:50%;background:#80CC28;"></div><div id="alien technology windfall" style="opacity:calc({{{w|0}}} * {{{a|0}}});width:{{{size|48}}}px;height:{{{size|48}}}px;grid-area:1/1;border-radius:50%;background:#FFF200;"></div><div id="civil" style="width:calc({{{size|48}}}px - 12px);height:calc({{{size|48}}}px - 12px);grid-area:1/1;border-radius:50%;background:#000;"></div><div id="military" style="width:calc({{{size|48}}}px - 12px);height:calc({{{size|48}}}px - 12px);grid-area:1/1;border-radius:50%;background:linear-gradient(0.75turn,#ED1C24 calc({{{m|0.5}}} * 100%),#000 calc({{{m|0.5}}} * 100%));"></div><div id="world" style="width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#fff;"></div><div id="non-production" style="opacity:{{{n-p|0}}};width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#CFD0D2;"></div><div id="production" style="opacity:{{{p|0}}};width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:conic-gradient(#DAA566 25%,#FFF200 25% 50%,#80CC28 50% 75%,#80D6F7 75%);"></div><div id="novelty production" style="opacity:calc({{{p|0}}} * {{{n|0}}});width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#80D6F7;"></div><div id="rare elements production" style="opacity:calc({{{p|0}}} * {{{r|0}}});width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#DAA566;"></div><div id="genes production" style="opacity:calc({{{p|0}}} * {{{g|0}}});width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#80CC28;"></div><div id="alien technology production" style="opacity:calc({{{p|0}}} * {{{a|0}}});width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#FFF200;"></div><div id="civil value" style="grid-area:1/1;">{{{1|&ZeroWidthSpace;}}}</div><div id="military value" style="opacity:{{{m|0}}};grid-area:1/1;color:#fff;-webkit-text-stroke:1px #ED1C24;">{{{1|&ZeroWidthSpace;}}}</div></div><noinclude>
<span alt="{{{tooltip}}} world" style="display:inline-grid;place-items:center;width:{{{size|48}}}px;height:{{{size|48}}}px;margin:0 1px;vertical-align:middle;color:#000;font-family:Roboto,Arial,sans-serif;font-weight:1000;font-size:24px;-webkit-text-stroke:1px #fff;"><span id="windfall" style="opacity:{{{w|0}}};width:{{{size|48}}}px;height:{{{size|48}}}px;grid-area:1/1;border-radius:50%;background:conic-gradient(#DAA566 25%,#FFF200 25% 50%,#80CC28 50% 75%,#80D6F7 75%);"></span><span id="novelty windfall" style="opacity:calc({{{w|0}}} * {{{n|0}}});width:{{{size|48}}}px;height:{{{size|48}}}px;grid-area:1/1;border-radius:50%;background:#80D6F7;"></span><span id="rare elements windfall" style="opacity:calc({{{w|0}}} * {{{r|0}}});width:{{{size|48}}}px;height:{{{size|48}}}px;grid-area:1/1;border-radius:50%;background:#DAA566;"></span><span id="genes windfall" style="opacity:calc({{{w|0}}} * {{{g|0}}});width:{{{size|48}}}px;height:{{{size|48}}}px;grid-area:1/1;border-radius:50%;background:#80CC28;"></span><span id="alien technology windfall" style="opacity:calc({{{w|0}}} * {{{a|0}}});width:{{{size|48}}}px;height:{{{size|48}}}px;grid-area:1/1;border-radius:50%;background:#FFF200;"></span><span id="civil" style="width:calc({{{size|48}}}px - 12px);height:calc({{{size|48}}}px - 12px);grid-area:1/1;border-radius:50%;background:#000;"></span><span id="military" style="width:calc({{{size|48}}}px - 12px);height:calc({{{size|48}}}px - 12px);grid-area:1/1;border-radius:50%;background:linear-gradient(0.75turn,#ED1C24 calc({{{m|0.5}}} * 100%),#000 calc({{{m|0.5}}} * 100%));"></span><span id="world" style="width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#fff;"></span><span id="non-production" style="opacity:{{{n-p|0}}};width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#CFD0D2;"></span><span id="production" style="opacity:{{{p|0}}};width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:conic-gradient(#DAA566 25%,#FFF200 25% 50%,#80CC28 50% 75%,#80D6F7 75%);"></span><span id="novelty production" style="opacity:calc({{{p|0}}} * {{{n|0}}});width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#80D6F7;"></span><span id="rare elements production" style="opacity:calc({{{p|0}}} * {{{r|0}}});width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#DAA566;"></span><span id="genes production" style="opacity:calc({{{p|0}}} * {{{g|0}}});width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#80CC28;"></span><span id="alien technology production" style="opacity:calc({{{p|0}}} * {{{a|0}}});width:calc({{{size|48}}}px - 20px);height:calc({{{size|48}}}px - 20px);grid-area:1/1;border-radius:50%;background:#FFF200;"></span><span id="civil value" style="grid-area:1/1;">{{{1|&ZeroWidthSpace;}}}</span><span id="military value" style="opacity:{{{m|0}}};grid-area:1/1;color:#fff;-webkit-text-stroke:1px #ED1C24;">{{{1|&ZeroWidthSpace;}}}</span></span><noinclude>


== Parameters ==
== Parameters ==

Revision as of 22:22, 16 February 2024

Parameters

Id
Name
Default value
Example
Result
Description
1
value
&ZeroWidthSpace;
{{RftgWorld|5}}
55
Optional: specify the value.
w
windfall
0
{{RftgWorld|w=1}}
Optional: windfall halo.
p
production
0
{{RftgWorld|p=1}}
Optional: production solid.
n-p
non-production
0
{{RftgWorld|n-p=1}}
Optional: non-production grey solid.
n
novelty
0
{{RftgWorld|w=1|n=1}}/ {{RftgWorld|p=1|n=1}}
/
Optional: novelty windfall / production.
r
rare elements
0
{{RftgWorld|w=1|r=1}}/ {{RftgWorld|p=1|r=1}}
/
Optional: rare elements windfall / production.
g
genes
0
{{RftgWorld|w=1|g=1}}/ {{RftgWorld|p=1|g=1}}
/
Optional: genes windfall / production.
a
alien
0
{{RftgWorld|w=1|a=1}}/ {{RftgWorld|p=1|a=1}}
/
Optional: alien windfall / production.
m
military
0.5
{{RftgWorld|5|m=0}}/ {{RftgWorld|5|m=1}}
55/55
Optional: civil / military.