Template:Wikidata Gallery/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Create a gallery page using Wikidata.

Use as:

{{subst:Wikidata Gallery|property=PXXX|qid=QXXX}}

where PXXX is the property number and QXXX is the Q-ID for the subject; those two are then used to create the sparql query to fetch all cases where the specified property is equal to the QID.

Note that filter not exists {?item wdt:P31 wd:Q1040689.} is used to filter the results. For this case this exclude the taxon that are synonyms (instance of (P31)synonym (Q1040689)), which are supposed to be no longer used as taxon names. You can add other filters.

It must be substituted - it will not work if this template is just included in the page. After saving the page, click on the 'Manually update list' link at the top-right and User:ListeriaBot will then run the query and populate the gallery. It will then automatically update the gallery every so often, when there are changes to the content.

For examples, see: