Returns the page id (Q...) of the current page or nothing if the page is not connected to Wikidata


Example: Linking to Wikidata item

Use the following code to just retrieve the Q-ID:
   - {{#invoke:WikidataUtils|pageId}}
Linking to Wikidata with the usual Wiki markup:
   - [[d:{{#invoke:WikidataUtils|pageId}}|Name of Link]]




Første egentlige funktion "pageId" som henter sidens id (Q...) fra Wikidata - Kan fx bruges til at linke i infobokse: [redigér på Wikidata]


Koden er afprøvet på {{Infoboks tv}}

<!-- data98 og data99 er afprøvet og virker. Der sættes en adskiller og derunder et link nederst i infoboksen : [redigér på Wikidata] -->

| data98 = <hr style = border-top: 1px solid #ccf; ">
| data99     = <includeonly><div style="font-size: 80%; text-align: right;">[[[d:{{#invoke:WikidataUtils|pageId}}|redigér på Wikidata]]]</div></includeonly>
| rowclass96 = noprint

Se også redigér