Difference between revisions of "Template:Infobox person/height"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Zyxw
(Fix edit which resulted in incorrect handling of input containing centimetre, centimeter, metre, or meter. Tested first with /sandbox and /testcases.)
en>Frietjes
(use lua version for efficiency and readability, passes all tests in the testscases so seems fine)
Line 1: Line 1:
{{infobox person/height/locate|<!--
+
{{#invoke:person height|main}}<noinclude>
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{#invoke:String|replace|<!--
 
-->{{{1|}}}<!--
 
-->|metre|m}}<!--
 
-->|([^a])meter|%1m|plain=false}}<!-- prevents "parameter" from being changed to "param"
 
-->|centi|c}}<!--
 
-->|feet|ft}}<!--
 
-->|foot|ft}}<!--
 
-->|inches|in}}<!--
 
-->|inch|in}}<!--
 
-->|ms|m}}<!--
 
-->|ins|in}}<!--
 
-->|pattern=[[in|in]]|replace=[[inch|in]]}}<!--
 
-->|pattern=[[Centim|cm]]|replace=[[Centimetre|cm]]}}<!--
 
-->|pattern=[[m]]s|replace=[[Metre|m]]}}<!--
 
-->|pattern=[[cm]]s|replace=[[Centimetre|cm]]}}<!--
 
-->}}<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 16:11, 26 September 2019

Template documentation[create]