MediaWiki:Gadget-QuickPresets/doc
Jump to navigation
Jump to search
This is the documentation for the QuickPresets plugin. This is heavily modified from a plugin available on Wikidata, whose doc you should read as well.
The local version uses the following files:
- MediaWiki:Gadget-QuickPresets.js for code;
- MediaWiki:Gadget-QuickPresets for gadget setup;
- MediaWiki:Gadget-QuickPresets/defaultconf.css for CSS;
- MediaWiki:Gadget-QuickPresets/defaultconf.js for default configuration of the presets.
Improving the presets
Example queries to assert what is being done:
PREFIX pdio: <https://wiki.personaldata.io/entity/>
PREFIX pdiot: <https://wiki.personaldata.io/prop/direct/>
PREFIX pdiop: <https://wiki.personaldata.io/prop/>
PREFIX pdiops: <https://wiki.personaldata.io/prop/statement/>
PREFIX pdiopq: <https://wiki.personaldata.io/prop/qualifier/>
SELECT ?item ?itemLabel ?concern ?concernLabel WHERE {
?item pdiot:P3/pdiot:P4* pdio:Q2408.
?item pdiot:P110 ?concern
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
PREFIX pdio: <https://wiki.personaldata.io/entity/>
PREFIX pdiot: <https://wiki.personaldata.io/prop/direct/>
PREFIX pdiop: <https://wiki.personaldata.io/prop/>
PREFIX pdiops: <https://wiki.personaldata.io/prop/statement/>
PREFIX pdiopq: <https://wiki.personaldata.io/prop/qualifier/>
SELECT ?item ?itemLabel ?concern ?concernLabel WHERE {
?item pdiot:P110 ?concern
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}