Content deleted Content added
→Coordinates: implemented the 'display' parameter |
|||
Line 47:
Just to note that it would be nice to be able to set the coordinates to display both inline and in the title (passing "|display=inline,title" to {{tl|coord}}); this module just seems to allow inline coordinates. Thanks. [[User:Mike Peel|Mike Peel]] ([[User talk:Mike Peel|talk]]) 17:37, 18 December 2016 (UTC)
: I've implemented the 'display' parameter now. This is how it would work in {{q|Q592248}}:
:* <code><nowiki>{{#invoke:WikidataIB |getCoords |qid=Q592248 |name=coord |fetchwikidata=ALL}}</nowiki></code> → {{#invoke:WikidataIB |getCoords |qid=Q592248 |name=coord |fetchwikidata=ALL}}
: You should see 31°57′30″N 111°35′48″W in the title position of this page as well.
: You can't really see multiple examples because the of title coordinates.
: If you want to test the "title" or "inline" values, change the above to
:* <code><nowiki>{{#invoke:WikidataIB |getCoords |qid=Q592248 |display=title |name=coord |fetchwikidata=ALL}}</nowiki></code>
:* <code><nowiki>{{#invoke:WikidataIB |getCoords |qid=Q592248 |display=inline |name=coord |fetchwikidata=ALL}}</nowiki></code>
== Can't get this working ==
|