17,759
editsAd placeholder
Template:Weight: Difference between revisions
Jump to navigation
Jump to search
no edit summary
(lb is now auto set to kg*2) |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{SmallIcon|Weight Icon.png|class=bg3wiki-lightmode-drop-shadow}} Weight{{#if:{{{kg|}}}{{{lb|}}}|<nowiki>: </nowiki>{{{kg}}} kg / {{{lb|{{#expr:{{{ | <includeonly>{{SmallIcon|Weight Icon.png|class=bg3wiki-lightmode-drop-shadow}} Weight{{#if: {{{kg|}}} {{{lb|}}} | ||
Usage: {{code|<nowiki>{{Weight|kg=0.9 | | {{#if: {{{kg|}}} | ||
<!-- #8239 is non-breaking thin space. And yes, the kg to lb factor in BG3 is exactly 1/2. --> | |||
|<nowiki>:</nowiki> {{{kg}}} kg / {{#expr:{{{kg|}}}*2}} lb | |||
|<nowiki>:</nowiki> {{#expr:{{{lb}}}/2}} kg / {{{lb}}} lb | |||
}} | |||
}}</includeonly><noinclude> | |||
Usage: {{code|<nowiki>{{Weight|kg=0.9}}</nowiki>}} | |||
Result: {{Weight|kg=0.9|lb=1.8}} | Result: {{Weight|kg=0.9}} | ||
Usage: {{code|<nowiki>{{Weight|lb=1.8}}</nowiki>}} | |||
Result: {{Weight|lb=1.8}} | |||
Usage: {{code|<nowiki>{{Weight}}</nowiki>}} | Usage: {{code|<nowiki>{{Weight}}</nowiki>}} | ||
Line 8: | Line 18: | ||
Result: {{Weight}} | Result: {{Weight}} | ||
[[Category:Weapon Property | [[Category:Weapon Property templates]] | ||
</noinclude> | </noinclude> |