Difference between revisions of "Template:wikidata"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
 
Line 1: Line 1:
<includeonly>[https://www.wikidata.org/wiki/Q{{{1}}} {{{2}}} (Q{{{1}}})]</includeonly><noinclude>
+
<includeonly>[https://www.wikidata.org/wiki/Q{{{1}}} {{{2|Q{{{1}}}}}}]</includeonly><noinclude>
  
Links to the specified wikidata ID. Name is not filled automatically, and must be specified.
+
Links to the specified wikidata ID.
  
Ex: {{wikidata|2|Earth}}
+
If a name is not specified, it defaults to the ID.
 +
 
 +
Ex: {{wikidata|2|Earth}} <nowiki>{{wikidata|2|Earth}}</nowiki>
 +
 
 +
Ex: {{wikidata|2}} <nowiki>{{wikidata|2}}</nowiki>
  
 
Works flawlessly. I assure you.
 
Works flawlessly. I assure you.
 
</noinclude>
 
</noinclude>

Latest revision as of 15:53, 9 November 2023


Links to the specified wikidata ID.

If a name is not specified, it defaults to the ID.

Ex: Earth {{wikidata|2|Earth}}

Ex: Q2 {{wikidata|2}}

Works flawlessly. I assure you.