This is a documentation for Board Game Arena: play board games online !
Template:RftgWorld: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) No edit summary |
Sammy McSam (talk | contribs) (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 | <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|​}}}</span><span id="military value" style="opacity:{{{m|0}}};grid-area:1/1;color:#fff;-webkit-text-stroke:1px #ED1C24;">{{{1|​}}}</span></span><noinclude> | ||
== Parameters == | == Parameters == |
Latest revision as of 22:43, 17 February 2024
Parameters
Id
Name
Default value
Example
Result
Description
1
value
​
{{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.