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
(n-p text-stroke)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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>
<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 #CFD0D2;-webkit-text-stroke:1px #{{{n-p|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 0% calc(25% + (75%*{{{r|0}}}) - (25%*({{{n|0}}} + {{{g|0}}} + {{{a|0}}}))),#FFF200 0% calc(50% + (50%*{{{a|0}}}) - (50%*({{{n|0}}} + {{{g|0}}}))),#80CC28 0% calc(75% + (25%*{{{g|0}}}) - (75%*{{{n|0}}})),#80D6F7 0% 100%);"></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 + (16px*(({{{m|0.5}}} - 0.5)*({{{m|0.5}}} - 0.5))));height:calc({{{size|48}}}px - 20px + (16px*(({{{m|0.5}}} - 0.5)*({{{m|0.5}}} - 0.5))));grid-area:1/1;border-radius:50%;background:#CFD0D2;background:#{{{n-p|fff}}};"></span><span id="production" style="opacity:{{{p|0}}};width:calc({{{size|48}}}px - 20px + (16px*(({{{m|0.5}}} - 0.5)*({{{m|0.5}}} - 0.5))));height:calc({{{size|48}}}px - 20px + (16px*(({{{m|0.5}}} - 0.5)*({{{m|0.5}}} - 0.5))));grid-area:1/1;border-radius:50%;background:conic-gradient(#DAA566 0% calc(25% + (75%*{{{r|0}}}) - (25%*({{{n|0}}} + {{{g|0}}} + {{{a|0}}}))),#FFF200 0% calc(50% + (50%*{{{a|0}}}) - (50%*({{{n|0}}} + {{{g|0}}}))),#80CC28 0% calc(75% + (25%*{{{g|0}}}) - (75%*{{{n|0}}})),#80D6F7 0% 100%);"></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 ==

Latest revision as of 22:43, 17 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.