Template:Invisible Wikidata link
Appearance
(Redirected from Template:Iwl)
This template uses TemplateStyles: |
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
[edit]|1=
– text to display|2=
– Wikidata QID identifier
Examples
[edit]Input | Default output | Output with Wikidata links enabled |
---|---|---|
{{iwl|ABC|Q1}}
|
"ABC" | "ABC [wd]" |
{{iwl|[[Main Page|ABC]]|Q1}}
|
"ABC" | "ABC [wd]" |
Display
[edit]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:
/* Display links to Wikidata in [[Template:Invisible Wikidata link]] */
.invisible-wikidata-link { display: inline !important; }
This can be added to your common.css or skin-specific custom CSS.