The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 806: | Line 806: | ||
It is ''not'' possible to convert the currency. So, this result (mixed currencies) is ''not'' possible: $15 per mile (€8.6/km)}} {{nay}} | It is ''not'' possible to convert the currency. So, this result (mixed currencies) is ''not'' possible: $15 per mile (€8.6/km)}} {{nay}} | ||
;Using a Wikidata property | |||
* Adding the Wikidata property code, like code {{para|input|P2073}}, to your template code automatically returns the Wikidata property for that article, and convert it. Both number and unit are read. | |||
Note: to return that property value for an ''other'' article, use {{para|qid}}. | |||
Example for {{Wikidata property link|P2073}} of {{Wikidata entity link|{{get QID|Cessna 208 Caravan}}}}: | |||
* <code><nowiki>{{convert|input=P2073|qid={{get QID|Cessna 208 Caravan}}|ftin|abbr=on}}</nowiki></code> → {{convert|input=P2073|qid={{get QID|Cessna 208 Caravan}}|ftin|abbr=on}} | |||
* <code><nowiki>{{convert|input=P2073|qid=Q1056131|km|abbr=on}}</nowiki></code> → {{convert|input=P2073|qid=Q1056131|km|abbr=on}} | |||
* <code><nowiki>{{convert|input=P2073|qid=Q1056131|km|abbr=on|disp=out}}</nowiki></code> → {{convert|input=P2073|qid=Q1056131|km|abbr=on|disp=out}} | |||
:For example see [[template:Infobox Telescope]]. | |||
Sometimes a property may have more than one value against it in Wikidata. You can use the {{para|qual}} parameter to specify which of the values you want to use. | |||
Example for {{Wikidata property link|P2386}}: | |||
Note: this example uses {{para|qid|Q1513315}} (testing for {{Wikidata entity link|Q1513315}}) | |||
* {{Wikidata entity link|Q613628}}: <code><nowiki>{{convert|input=P2386|qual=Q613628|ft|abbr=on}}</nowiki></code> → {{convert|input=P2386|qid=Q1513315|qual=Q613628|ft|abbr=on}} | |||
* {{Wikidata entity link|Q1395645}}: <code><nowiki>{{convert|input=P2386|qual=Q1395645|ft|abbr=on}}</nowiki></code> → {{convert|input=P2386|qid=Q1513315|qual=Q1395645|ft|abbr=on}} | |||
==Parameter list== | ==Parameter list== |