Jump to content

Template:Get QID: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Undid revision 1077738075 by Tomastvivlaren (talk)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{SAFESUBST:<noinclude />#invoke:Plain text|main|1={{SAFESUBST:<noinclude />#if:{{{1|}}}|<!-- If the template is called with a non-empty non-named argument:
{{SAFESUBST:<noinclude />#invoke:Plain text|main|1={{SAFESUBST:<noinclude />#if:{{{1|}}}|<!-- If the template is called with a non-empty non-named argument:
-->{{SAFESUBST:<noinclude />#if:{{SAFESUBST:<noinclude />#invoke:WikidataIB|getEntityFromTitle|{{{1|}}}}}<!-- If the Wikipedia page has a Wikidata item
-->{{SAFESUBST:<noinclude />if{{SAFESUBST:<noinclude />#invoke:WikidataIB|getEntityFromTitle|{{{1|}}}}}<!-- If the Wikipedia page has a Wikidata item
-->|{{SAFESUBST:<noinclude />#invoke:WikidataIB|getEntityFromTitle|{{{1|}}}}}<!-- Get the qid from the title
-->|{{SAFESUBST:<noinclude />#invoke:WikidataIB|getEntityFromTitle|{{SAFESUBST:<noinclude />#invoke:redirect|main|{{{1|}}} }} }} }}<!-- Otherwize: Get the qid of the redirect destination.
-->|{{SAFESUBST:<noinclude />#invoke:WikidataIB|getEntityFromTitle|{{SAFESUBST:<noinclude />#invoke:redirect|main|{{{1|}}} }} }} }}<!-- Otherwize: Get the qid of the redirect destination.
-->|{{SAFESUBST:<noinclude />#invoke:WikidataIB |getQid|qid={{{qid|}}} }}<!-- If empty argument or qid argument: Get the qid of current page, or pass the qid.
-->|{{SAFESUBST:<noinclude />#invoke:WikidataIB |getQid|qid={{{qid|}}}}}<!-- If empty argument or qid argument: Get the qid of current page, or pass the qid.
-->}}
-->}}
}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 23:06, 18 March 2022

Q26090228