Jump to content

සැකිල්ල:Wikidata Infobox/උපදෙස්

Wikibooks වෙතින්
(සැකිල්ල:Wikidata Infobox/doc වෙතින් යළි-යොමු කරන ලදි)
Note: This template is used on a lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Please discuss proposed changes on the talk page first.
  • Editing a template causes all pages that use the template to be re-rendered. If the template is used often, this can put a lot of load on the servers since it fills up the job queue.
  • Keep in mind that templates that are used on file description pages also show up on other wikis.


aragonés | asturianu | Boarisch | беларуская (тарашкевіца) | čeština | Deutsch | Deutsch (Sie-Form) | English | español | eesti | suomi | français | galego | magyar | հայերեն | italiano | 한국어 | македонски | مازِرونی | norsk nynorsk | polski | português | română | русский | svenska | Tiếng Việt | 中文(简体) | 中文(繁體) | +/−

WikidataCon Award 2019

<translate> No description yet available.</translate>

<translate> The template automatically sets the following categories:</translate>

  • Interwikis from Wikidata
  • For people: given name(s) and surname(s), alive/deceased person/man/woman, years of birth and death, awards

<translate> Usage</translate>

{{Wikidata Infobox |qid= |defaultsort= |interwiki= |autocat= |trackingcats= }}

<translate> </translate>

ඉංග්‍රීසි:  In most cases it can be used simply as {{Wikidata Infobox}}. The category page needs to be linked to through a sitelink on Wikidata (under 'other sites', add the correct sitelink to 'commons'). The Wikidata entry can either be directly about the category's topic, or include the සැකිල්ල:Property.

This template must never be transcluded via another template, it has to always be directly used in categories and galleries - doing otherwise will lead to duplicate uses of this template. It can be used on template documentation pages (use the 'qid' parameter to link it correctly), or by noinclude'ing it in the template so it just shows on the template page rather than transclusions. (find transclusions to remove)

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 no item 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:

For further help, see Commons:Wikidata infobox help

Template parameters

ParameterDescriptionDefaultStatus
qidQIDValue of [[d:Property:P301|category's main topic (P301)]] if available, otherwise the ID of the connected Wikidata itemoptional
defaultsortDisable DEFAULTSORTyoptional
interwikiinterwikiyesoptional
autocatautomatic categorisationyesoptional
trackingcatstracking categoriesyesoptional
spf
suppressfields
suppressfieldsemptyoptional
fwd
fetchwikidata
fetchwikidataALLoptional

<translate> Additional information</translate>

<translate> The template is intended to be used in the following namespaces:</translate> <translate> the Category namespace</translate>

<translate> The template is intended to be used by the following user groups:</translate> <translate> no user group specified</translate>

<translate> Placement:</translate> <translate> At the top of the page</translate>

<translate> Relies on:</translate>
Module:WikidataIB; Module:Wikidata4Bio; Module:Taxontree; Module:Coordinates; {{Unbulleted list}}; {{SuperFallback}}; {{Dir}}

<translate> Localization</translate>

English

<translate> This template makes use of <tvar name="autotranslate">{{Autotranslate}}</tvar> and [[<tvar name="linktarget">:mw:Special:MyLanguage/Help:Extension:Translate</tvar>|the translate extension]].</translate>


Wikidata properties

සැකිල්ල:See

Copying this template to other wikis

  1. Import dependencies Module:WikidataIB and Template:Unbulleted list
  2. Import w:Template:Wikidata Infobox/i18n/getMsg and w:Module:Wikidata Infobox/i18n from Wikipedia
  3. Import d:Template:Wikidata Infobox/core and d:Template:Wikidata Infobox/styles.css from Wikidata
  4. Import Module:Wikidata Infobox from Commons
  5. Import Template:Wikidata Infobox and configure it to your liking

Ask සැකිල්ල:U or සැකිල්ල:U if you need help.

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:

Issues

There are known issues, for which we invite suggested fixes:


"https://si.wikibooks.org/w/index.php?title=සැකිල්ල:Wikidata_Infobox/උපදෙස්&oldid=22767" වෙතින් සම්ප්‍රවේශනය කෙරිණි