GVI – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add size option (TODO one day: version text size)) |
Lou Montana (talk | contribs) m (Add resizeable text) |
||
Line 6: | Line 6: | ||
| {{#ifexpr: {{{2}}} > 2.02 or ({{{2}}} > 1 and {{#replace:{{{2}}}|.}} mod 2)|<nowiki/> gvi-dev}} | | {{#ifexpr: {{{2}}} > 2.02 or ({{{2}}} > 1 and {{#replace:{{{2}}}|.}} mod 2)|<nowiki/> gvi-dev}} | ||
}} | }} | ||
}}{{#if:{{#pos:{{lc:{{{1}}}{{{2|}}}}}|dev}}|<nowiki/> gvi-dev}}{{#if:{{#pos:{{lc:{{{1}}}{{{2|}}}}}|diag}}|<nowiki/> gvi-diag}}"{{#if:{{{size|}}}|<nowiki/> style="height:{{#expr: {{{size}}}*32}}px; width:{{#expr: {{{size}}}*32}}px"}}><span class="icon">{{Icon|{{Name|{{{1}}}|id}}|{{#if:{{{size|}}}|{{#expr:{{{size}}}*32-2}}|30}}}}</span><span class="version">[[:Category:Introduced with {{Name|{{{1}}}}} version {{lc:{{{2|}}}}}|{{#if:{{{2|}}}|{{uc:{{{2}}}}}|?}}]]</span></span> | }}{{#if:{{#pos:{{lc:{{{1}}}{{{2|}}}}}|dev}}|<nowiki/> gvi-dev}}{{#if:{{#pos:{{lc:{{{1}}}{{{2|}}}}}|diag}}|<nowiki/> gvi-diag}}"{{#if:{{{size|}}}|<nowiki/> style="font-size: {{#expr:({{{size}}}/2+0.5)*12}}px; height: {{#expr:{{{size}}}*32}}px; width: {{#expr:{{{size}}}*32}}px"}}><span class="icon">{{Icon|{{Name|{{{1}}}|id}}|{{#if:{{{size|}}}|{{#expr:{{{size}}}*32-2}}|30}}}}</span><span class="version">[[:Category:Introduced with {{Name|{{{1}}}}} version {{lc:{{{2|}}}}}|{{#if:{{{2|}}}|{{uc:{{{2}}}}}|?}}]]</span></span> | ||
| -no game provided- | | -no game provided- | ||
}}</includeonly><noinclude>Template '''''GVI''''' standing for '''''G'''ame '''V'''ersion '''I'''con'' - should appear inline {{{{FULLPAGENAME}}|arma3|1.00}} when in a paragraph. | }}</includeonly><noinclude>Template '''''GVI''''' standing for '''''G'''ame '''V'''ersion '''I'''con'' - should appear inline {{{{FULLPAGENAME}}|arma3|1.00}} when in a paragraph. |
Revision as of 20:27, 27 February 2021
Template GVI standing for Game Version Icon - should appear inline 1.00 when in a paragraph.
Usage
{{GVI|game|version|size=}}
- game: identical to Name Identifiers
- version: (Optional, default 1.00) game version such as "1.75", two digits after the period
- size: (Optional, default 1) ratio size, ratio × 32px
Code | Result |
---|---|
{{GVI}} | -no game provided- |
{{GVI|ofp}} | ? |
{{GVI|ofp|1.30}} | 1.30 |
{{GVI|ofp|1.30|size=1}} | 1.30 |
{{GVI|ofp|1.30|size=.75}} | 1.30 |
{{GVI|ofp|1.30|size=2}} | 1.30 |
{{GVI|ofpr|1.80}} | 1.80 |
{{GVI|ofpe|1.00}} | 1.00 |
{{GVI|arma1|?}} | ? |
{{GVI|arma1|1}} | 1 |
{{GVI|arma1|1.1}} | 1.1 |
{{GVI|arma2|1.05}} | 1.05 |
{{GVI|arma2oa|1.60}} | 1.60 |
{{GVI|arma3|0.05}} | 0.05 |
{{GVI|arma3|0.50}} | 0.50 |
{{GVI|arma3|0.58}} | 0.58 |
{{GVI|arma3|0.70}} | 0.70 |
{{GVI|arma3|0.76}} | 0.76 |
{{GVI|arma3|1.14}} | 1.14 |
{{GVI|arma3|1.99}} | 1.99 |
{{GVI|arma3|2.00}} | 2.00 |
{{GVI|arma3|2.49}} | 2.49 |
{{GVI|arma3|2.50}} | 2.50 |
{{GVI|arma3dev|1.00}} | -wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.00|1.00]] |
{{GVI|arma3|dev}} | DEV |
{{GVI|arma3dev}} | -wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version |?]] |
{{GVI|arma3diag|1.00}} | -wrong parameter ("arma3diag") defined!-[[:Category:Introduced with arma3diag version 1.00|1.00]] |
{{GVI|arma3|diag}} | DIAG |
{{GVI|carriercommand|1.00}} | 1.00 |
{{GVI|dayz|1.00}} | 1.00 |
{{GVI|tkoh|1.00}} | 1.00 |
{{GVI|tkom|1.00}} | 1.00 |