Template:Wikidata Infobox
Wikimedia template | |||
Upload media | |||
Wikipedia Wikivoyage | |||
Instance of | Wikimedia multi-site page, Wikimedia template | ||
---|---|---|---|
Maintained by | |||
Different from |
| ||
| |||
This template has been protected from editing to prevent vandalism. Please discuss changes on the talk page or request unprotection. |
Uses Lua: |
This template uses TemplateStyles: |
longest river in South America | |||
Upload media | |||
Wikipedia Wikivoyage | |||
Instance of | river | ||
---|---|---|---|
Named after | |||
Location | Peru, Colombia, Brazil | ||
Length |
| ||
Origin of the watercourse |
| ||
Mouth of the watercourse |
| ||
Drainage basin | |||
Basin country | |||
Tributary |
| ||
Different from |
| ||
| |||
Includes a small Wikidata-enabled infobox on category pages. See Commons:Wikidata infobox help for the FAQ.
The template automatically sets the following categories:
- Interwikis from Wikidata
- For people: given name(s) and surname(s), alive/deceased person/man/woman, years of birth and death, awards
Usage
{{Wikidata Infobox |qid= |interwiki= |defaultsort= }}
Common issues
If you see a Wikidata QID (a number, prefixed with "Q") instead of the correct title, then that means that the topic does not have a label in English – to fix this, add an English label on Wikidata. If you see content that's not in your own language, then that probably means that a label isn't available in your language – to fix this, add the appropriate label in your language on Wikidata.
If you spot a problem with the information displayed in the infobox, please first try to fix it on Wikidata. For further info see Commons:Wikidata infobox help, which also has extensive information about the many types of images desired on Wikidata. If that fails, ask on the template talk page.
If the infobox is empty, or it doesn't contain all of the information you think it should, then please expand the Wikidata entry. The infobox should grow accordingly, though the page on Wikimedia Commons might need purging to show very recent updates from Wikidata.
Customisation
If you do not want to see the infobox, then add #wdinfobox { display: none;}
to Special:MyPage/common.css and it will not be displayed.
To display the infobox in a horizontal format, add the following to Special:MyPage/common.css. Note that this will only work in some browsers (Chrome and Safari should work, but Firefox won't):
#wdinfobox { width:100%!important; clear:both!important; display: block; -webkit-column-count: 4; -ms-column-count: 4; -moz-column-count: 4; column-count: 4; }
You can also use Javascript to change the settings by adding the following to Special:MyPage/common.js:
- To auto-hide the whole infobox:
$( "#wdinfobox" ).addClass( "mw-collapsed" );
- To auto-hide the authority control:
$( "#wdinfo_ac" ).addClass( "mw-collapsed" );
- To auto-hide the taxon tree:
$( "#wdinfo_taxon" ).addClass( "mw-collapsed" );
- To never display the infobox:
$( "#wdinfobox" ).addClass( "wdinfobox_hide" );
- To display the infobox horizontally:
$( "#wdinfobox" ).addClass( "wdinfobox_horizontal" );
Maintenance
Uses of this template are categorised into Category:Uses of Wikidata Infobox or Category:Uses of Wikidata Infobox with problems depending on whether the template can find a QID.
Template developers: please ensure that if you are nesting {{Wikidata Infobox}} inside another template that you are wrapping it accordingly, that is <includeonly>{{wikidata infobox}}</includeonly>
, so that it doesn't categorise the template.
For past discussions about this template, see:
- Would small Wikidata-enabled infoboxes be useful on category pages? (January 2018)
- Proposal to bot-deploy Wikidata Infobox (February 2018)
- Bot approval (March/April 2018)
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
qid | QID | Q ID (number) of the topic; overrides lookup in the database for this ID. | {{#invoke:wd|properties|raw|P301}} | optional |
interwiki | Disable automatic interwiki | interwiki=- (hyphen-minus) to disable calling {{Interwiki from Wikidata}} on category pages. | empty | optional |
defaultsort | Disable DEFAULTSORT | defaultsort=no to disable auto-adding a {{DEFAULTSORT}} | y | optional |
Template data | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Includes a small Wikidata-enabled infobox on category pages. See https://commons.wikimedia.org/wiki/Commons:Wikidata_infobox_help for the FAQ.
|
Additional information
The template is intended to be used in the following namespaces: the Category namespace
The template is intended to be used by the following user groups: no user group specified
Placement: At the top of the page
Relies on:
Module:Wd, {{Br separated entries}}; {{Dir}}; {{Fallback}}; {{Label}}; {{Property}}; {{Replace text}}; {{Str left}}; {{Tl}}; {{Wikidata ID}}
Localization
This template makes use of {{Autotranslate}} and the translate extension.
Wikidata properties
Core and sandboxes
The principal template is now a wrapper for the core code. This facilitates internationalisation by making parameter names easier to adapt.
Both templates have sandbox versions: