This template displays whatever is passed in parameter 1, but syntactically links it to a Wikidata item in parameter 2. If the Wikidata item has a sitelink to a page on this wiki, it will add the page to Category:Invisible Wikidata link with existing page.

Usage

  • |1= – text to display
  • |2= – Wikidata QID identifier

Examples

Input Default output Output with Wikidata links enabled
{{iwl|ABC|Q1}} "ABC" "ABC [wd]"
{{iwl|[[Main Page|ABC]]|Q1}} "ABC" "ABC [wd]"

Display

By default, this template only displays the text passed to it. However, you can add custom CSS to display a link to the Wikidata item passed to the template:

<syntaxhighlight lang="css"> /* Display links to Wikidata in Template:Invisible Wikidata link */ .invisible-wikidata-link { display: inline !important; } </syntaxhighlight>

This can be added to your common.css or skin-specific custom CSS.