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) |
||
(5 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 #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 == | ||
| | <div style="display:grid;grid-template-columns:3rem repeat(4,min-content) auto;gap:0.5rem;overflow:auto;text-overflow:ellipsis;"> | ||
| | <div style="font-weight:bold;width:8rem;">Id</div> | ||
| | <div style="font-weight:bold;width:8rem;">Name</div> | ||
| | <div style="font-weight:bold;width:8rem;">Default value</div> | ||
|={{{1| | <div style="font-weight:bold;width:8rem;">Example</div> | ||
| | <div style="font-weight:bold;width:8rem;text-align:center;">Result</div> | ||
| | <div style="font-weight:bold;width:8rem;">Description</div> | ||
}}< | <div><code>1</code></div> | ||
<div>value</div> | |||
<div><code><nowiki>&ZeroWidthSpace;</nowiki></code></div> | |||
<div><code><nowiki>{{RftgWorld|5}}</nowiki></code></div> | |||
<div>{{RftgWorld|5}}</div> | |||
<div>'''''Optional:''''' specify the value.</div> | |||
<div><code>w</code></div> | |||
<div>windfall</div> | |||
<div><code>0</code></div> | |||
<div><code><nowiki>{{RftgWorld|w=1}}</nowiki></code></div> | |||
<div>{{RftgWorld|w=1}}</div> | |||
<div>'''''Optional:''''' windfall halo.</div> | |||
<div><code>p</code></div> | |||
<div>production</div> | |||
<div><code>0</code></div> | |||
<div><code><nowiki>{{RftgWorld|p=1}}</nowiki></code></div> | |||
<div>{{RftgWorld|p=1}}</div> | |||
<div>'''''Optional:''''' production solid.</div> | |||
<div><code>n-p</code></div> | |||
<div>non-production</div> | |||
<div><code>0</code></div> | |||
<div><code><nowiki>{{RftgWorld|n-p=1}}</nowiki></code></div> | |||
<div>{{RftgWorld|n-p=1}}</div> | |||
<div>'''''Optional:''''' non-production grey solid.</div> | |||
<div><code>n</code></div> | |||
<div>novelty</div> | |||
<div><code>0</code></div> | |||
<div><code><nowiki>{{RftgWorld|w=1|n=1}}</nowiki></code>/ <code><nowiki>{{RftgWorld|p=1|n=1}}</nowiki></code></div> | |||
<div>{{RftgWorld|w=1|n=1}}/{{RftgWorld|p=1|n=1}}</div> | |||
<div>'''''Optional:''''' novelty windfall / production.</div> | |||
<div><code>r</code></div> | |||
<div>rare elements</div> | |||
<div><code>0</code></div> | |||
<div><code><nowiki>{{RftgWorld|w=1|r=1}}</nowiki></code>/ <code><nowiki>{{RftgWorld|p=1|r=1}}</nowiki></code></div> | |||
<div>{{RftgWorld|w=1|r=1}}/{{RftgWorld|p=1|r=1}}</div> | |||
<div>'''''Optional:''''' rare elements windfall / production.</div> | |||
<div><code>g</code></div> | |||
<div>genes</div> | |||
<div><code>0</code></div> | |||
<div><code><nowiki>{{RftgWorld|w=1|g=1}}</nowiki></code>/ <code><nowiki>{{RftgWorld|p=1|g=1}}</nowiki></code></div> | |||
<div>{{RftgWorld|w=1|g=1}}/{{RftgWorld|p=1|g=1}}</div> | |||
<div>'''''Optional:''''' genes windfall / production.</div> | |||
<div><code>a</code></div> | |||
<div>alien</div> | |||
<div><code>0</code></div> | |||
<div><code><nowiki>{{RftgWorld|w=1|a=1}}</nowiki></code>/ <code><nowiki>{{RftgWorld|p=1|a=1}}</nowiki></code></div> | |||
<div>{{RftgWorld|w=1|a=1}}/{{RftgWorld|p=1|a=1}}</div> | |||
<div>'''''Optional:''''' alien windfall / production.</div> | |||
<div><code>m</code></div> | |||
<div>military</div> | |||
<div><code>0.5</code></div> | |||
<div><code><nowiki>{{RftgWorld|5|m=0}}</nowiki></code>/ <code><nowiki>{{RftgWorld|5|m=1}}</nowiki></code></div> | |||
<div>{{RftgWorld|5|m=0}}/{{RftgWorld|5|m=1}}</div> | |||
<div>'''''Optional:''''' civil / military.</div> | |||
</div> | |||
[[Category:RftgIcons]] | [[Category:RftgIcons]] | ||
<noinclude> | </noinclude> |
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.