Changes
Jump to navigation
Jump to search
Template:Infobox person/weight/locate (view source)
Revision as of 02:03, 13 August 2017
, 7 years agoAdd options to output stlb which can be invoked from an infobox template. Does not affect any current usage. Tested first with /sandbox and /testcases.
{{Infobox person/weight/switch
|{{{1|}}}
|{{#invoke:String|replace|{{{1|}}}| | }}
|k={{#invoke:String|find|{{#invoke:String|replace|{{{1|}}}| | }}|kg}}
|s={{#invoke:String|find|{{#invoke:String|replace|{{{1|}}}| | }}|st}}
|l={{#invoke:String|find|{{#invoke:String|replace|{{{1|}}}| | }}|lb}}
|kg-stlb={{#if:{{{kg-stlb|}}}|{{{kg-stlb}}}}}
|lb-stlb={{#if:{{{lb-stlb|}}}|{{{lb-stlb}}}}}
}}<noinclude>
{{Documentation}}
</noinclude>
|{{{1|}}}
|{{#invoke:String|replace|{{{1|}}}| | }}
|k={{#invoke:String|find|{{#invoke:String|replace|{{{1|}}}| | }}|kg}}
|s={{#invoke:String|find|{{#invoke:String|replace|{{{1|}}}| | }}|st}}
|l={{#invoke:String|find|{{#invoke:String|replace|{{{1|}}}| | }}|lb}}
|kg-stlb={{#if:{{{kg-stlb|}}}|{{{kg-stlb}}}}}
|lb-stlb={{#if:{{{lb-stlb|}}}|{{{lb-stlb}}}}}
}}<noinclude>
{{Documentation}}
</noinclude>