Template:Weight: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
HiddenDragon (talk | contribs) (Added documentation/template demo templates) |
||
Line 5: | Line 5: | ||
|<nowiki>:</nowiki> {{#expr:{{{lb}}}/2}} kg / {{{lb}}} lb | |<nowiki>:</nowiki> {{#expr:{{{lb}}}/2}} kg / {{{lb}}} lb | ||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude>{{Documentation|content= | ||
Displays a weight with an icon depending on the input weight. | |||
== Examples == | |||
{{Template demo | |||
| style = table | |||
| <nowiki>{{Weight|kg=0.9}}</nowiki> | |||
| <nowiki>{{Weight|lb=1.8}}</nowiki> | |||
| <nowiki>{{Weight}}</nowiki> | |||
}} | |||
}} | |||
[[Category:Templates]] | |||
[[Category: | |||
</noinclude> | </noinclude> |
Latest revision as of 23:23, 19 January 2025
Template documentation
Displays a weight with an icon depending on the input weight.
Examples
Markup | Renders as |
---|---|
{{Weight|kg=0.9}} | ![]() |
{{Weight|lb=1.8}} | ![]() |
{{Weight}} | ![]() |