Template:Get QID: Difference between revisions
From WikiMD's Wellness Encyclopedia
|
|
| (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: | | {{nt}} |
| -->{{SAFESUBST:<noinclude />if empty|{{SAFESUBST:<noinclude />#invoke:WikidataIB|getEntityFromTitle|{{{1|}}}}}<!-- If the Wikipedia page has a Wikidata item, get its qid
| |
| -->|{{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.
| |
| -->}}<noinclude>
| |
| {{Documentation}}
| |
| </noinclude>
| |
Latest revision as of 00:09, 6 January 2025