User talk:Francis Schonken/Wikidata/P of Q

Latest comment: 6 years ago by Francis Schonken in topic WHS

Testing

edit

See Module talk:Wd#P of Q; testing:

Seems OK, but doesn't import the link yet. --Francis Schonken (talk) 09:24, 5 November 2017 (UTC)Reply

With subst:

--Francis Schonken (talk) 13:37, 5 November 2017 (UTC)Reply

WHS

edit

Starting 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)Reply

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)Reply

Coordinates

edit

testing subst: for coordinates template:

--Francis Schonken (talk) 12:14, 6 November 2017 (UTC)Reply