User talk:Francis Schonken/Wikidata/P of Q
Latest comment: 6 years ago by Francis Schonken in topic WHS
Testing
editSee Module talk:Wd#P of Q; testing:
- {{Wikidata/P of Q|P123|Q4004168}} → Hogarth Press
Seems OK, but doesn't import the link yet. --Francis Schonken (talk) 09:24, 5 November 2017 (UTC)
With subst:
- {{subst:Wikidata/P of Q|P123|Q4004168}} → Hogarth Press
WHS
editStarting an idea mentioned at Template talk:Infobox World Heritage Site#Substitution (option #3):
{{Infobox UNESCO World Heritage Site | WHS = <!-- name as inscribed on the World Heritage List: use with the STAND-ALONE version of this template --> | Official_name = <!-- name as inscribed on the World Heritage List: use ONLY with the embedded version of this template, if it doesn't matches the name of the template it is in: see [[Giza pyramid complex]] for an example--> | image = <!-- optional; default from wikidata: --> {{subst:Wikidata|property|P18}} | image_size = <!-- optional --> | caption = <!-- optional --> | Part_of = <!-- optional: when the article subject is part of a WHS listing, not a full one, e.g. one church in a series of churches --> | Includes = <!-- optional: when a small group of subjects together form this WHS; don't add in infobox when list is too long --> | Location = <!-- optional; default from wikidata: --> {{subst:Wikidata|property|P131}}, {{subst:Wikidata|property|P17}} | Criteria = <!-- Cultural, Natural or Mixed, plus roman numbers; default from wikidata: --> {{subst:Wikidata|property|P2614}} | ID = <!-- default from wikidata: --> {{subst:Wikidata|property|P757}} | Coordinates = <!-- optional; use {{coord}}; default from wikidata: --> {{subst:Wikidata|property|P625}} | Year = <!-- default from wikidata: --> {{subst:Wikidata|qualifier|P1435|P580}} | Extension = <!-- optional --> | Danger = <!-- optional --> | Area = <!-- optional --> | Buffer_zone = <!-- optional --> | Website = <!-- optional --> | locmapin = <!-- optional --> | map_caption = <!-- optional --> | map_width = <!-- optional --> | relief = <!-- "1" for relief map - if available --> 1 | child = <!-- optional; set to "yes" to embed this infobox within another infobox --> | embedded = <!-- optional; use to embed another infobox template within this one, e.g. {{Location map many}} --> }}
still need to find a way to make the template's 2nd parameter default to the Q value of the page on which it is. --Francis Schonken (talk) 09:48, 5 November 2017 (UTC)
Without hidden comments:
{{Infobox UNESCO World Heritage Site | WHS = | Official_name = | image = {{subst:Wikidata|property|P18}} | image_size = | caption = | Part_of = | Includes = | Location = {{subst:Wikidata|property|P131}}, {{subst:Wikidata|property|P17}} | Criteria = <!-- Cultural: Natural: Mixed: --> {{subst:Wikidata|property|P2614}} | ID = {{subst:Wikidata|property|P757}} | Coordinates = {{subst:Wikidata|property|P625}} | Year = {{subst:Wikidata|qualifier|P1435|P580}} | Extension = | Danger = | Area = | Buffer_zone = | Website = | locmapin = | map_caption = | map_width = | relief = 1 | child = | embedded = }}
--Francis Schonken (talk) 12:52, 5 November 2017 (UTC)
Coordinates
edittesting subst: for coordinates template:
- {{subst:WikidataCoord|Q24012602|display=}} → 53°40′36″N 112°49′43″W / 53.67667°N 112.82861°W