Linkkejä muokkaa

Dokumentaatio muokkaa

Parameters and features marked with an asterisk (*) are not fully supported and are not recommended to use them. On the contrary, the parameters or features marked with a cross (†) are obsolete and may be removed shortly.

Overview of all features and parameters
Function Function description Parameter compulsory Parameter description
formatStatements Retrieves data, selects claims, filters, sorts, and formates their values and returns their list id no An identifier of the item (the letter "q" followed by digits) or the properties (the letter "p" followed by the digits) on Wikitates, which data should be obtained for further work with them (implicitly an item linked to that page)
of no The property identifier on Wikitates (the letter "p" followed by digits) from which the entity that the module actually uses is obtained by using the first best value of the property
page* no The name of the page whose item is to be used to retrieve the data
property yes Wikidate property identifier (the letter "p" followed by digits) whose values are to be formatted and displayed
value no pokud je tento parametr zadaný, jeho obsah se zobrazí
over* no If it is "true", the empty value of "value" is not considered as entered
compare* no If it is "true" and the "value" parameter is specified, the module compares its content and data to the Wikitates according to the other parameters specified for data filtering and marks it by the CSS class according to the data consistency
addlink no If it is "true," (e) </ sup> appears directly at the property at the end of the data from the repository
addclass no If "true", data from the repository will be assigned a CSS class </ span>
value-formatter no Submodul module Wikidata / Formatters (its sub page), which is used for formatting values if the default submodule is not satisfactory
value-module† no The name of the module that this module uses to format the values (by default, it does the methods specified by the Wikidata module)
value-function† yes,
pokud
existuje
value-module
"Module-module" functions to be formatted
limit no The maximum number of values that appear in the list
rank no The required status value in the statement;
may be all - all claims will be used; Best - either claims that have a preferred position or only those with a normal status if no preference are used; Valid (default) - both the preferred and the normal assertions are used; Preferred , normal , deprecated - only claims with appropriate status
withqualifier no The property identifier on Wikidates (the letter "p" followed by digits), which must be assigned to the given value in the claim as a definition
withlang no The language code in which the values of the monolingual text are to be
date no Date in YYYY-MM-DD or "#now" (today's date) to which the statement is valid
sort no The way to change the default order of the individual values; The value of the parameter corresponds to comma-separated subpages Wikidata / Sorters
invert no If "true" and "Sort" are specified, the sort will be descending, not the default ascending
pattern no If the string type is the format, this format is for formatting, with "$ 1" replacing the string
autoformat no If "true" and string type are, the module will try to find a replacement for the pattern (Malline:Property on the properties page and apply it
precision no Customization of the time format format (if the actual accuracy is lower, the format adapts to it); 11 - 17. X, 24, 10 - toukokuu2024, 9 - 2024,
showspecial no If "true", values other than the user ( unknown value and no value ) are also displayed
qualifiersOnly† no Displays only qualifiers (binds to showcivalifier)
showqualifier no Comma-separated property identifiers on Wikitates (the letter "p" followed by digits or "time") that appear in brackets after the value is assigned to that value as a definition
showtargetdata* no Similar to "showqualifier", but the data is instead retrieved from the target item
targetdate no Similar to "date," refers to the target item data
showsource no If "true", references are added to the repository data
showmore no If the value is "true," if there are more values than the limit , the text "... & nbsp; more at Wikidatech" is displayed directly at the end of their list On the property
separator no The characters that separate the values in the list except for the penultimate and the last (implicitly the comma)
conjunction no The characters that separate the values in the list except for the penultimate and the last (implicitly the comma)
formatStatementsFromLua The characters that separate the values in the list except for the penultimate and the last (implicitly the comma) entity no The table with the entity with which the module is to work
dumpWikidataEntity Displays the entity in readable form, useful for debugging and introducing new features, not used in templates or articles id no The identifier of the item (the letter "q" followed by digits) or the properties (the letter "p" followed by the digits) on the Wikitates whose entity is displayed (implicitly an item linked to that page)
getSitelink Returns a reference to an article in the project site / First unnamed no Project shortcut (implicitly "cswiki")
pattern no A pattern for formatting a link where "$ 1" is the name of the referenced article (by default, "$ 1")
id no An identifier of the item (the letter "q" followed by digits) or the properties (the letter "p" followed by the digits) on Wikitates, which data should be obtained for further work with them (implicitly an item linked to that page)
of no The property identifier on Wikitates (the letter "p" followed by digits) from which the entity that the module actually uses is obtained by using the first best value of the property
addclass no If "true", data from the repository will be assigned a CSS class </ span>
getLabel Returns the label of the item in that language lang no Language abbreviation (default "cs")
id no An identifier of the item (the letter "q" followed by digits) or the properties (the letter "p" followed by the digits) on Wikitates, which data should be obtained for further work with them (implicitly an item linked to that page)
of no The property identifier on Wikitates (the letter "p" followed by digits) from which the entity that the module actually uses is obtained by using the first best value of the property
addclass no If "true", data from the repository will be assigned a CSS class </ span>
getDescription vrátí popisek položky v daném jazyce lang no zkratka jazyka (implicitně „cs“)
id no An identifier of the item (the letter "q" followed by digits) or the properties (the letter "p" followed by the digits) on Wikitates, which data should be obtained for further work with them (implicitly an item linked to that page)
of no The property identifier on Wikitates (the letter "p" followed by digits) from which the entity that the module actually uses is obtained by using the first best value of the property
addclass no If "true", data from the repository will be assigned a CSS class </ span>
getAliases Returns the aliases of the item in that language lang no Language abbreviation (default "cs")
limit no The maximum number of aliases to display
id no An identifier of the item (the letter "q" followed by digits) or the properties (the letter "p" followed by the digits) on Wikitates, which data should be obtained for further work with them (implicitly an item linked to that page)
of no The property identifier on Wikitates (the letter "p" followed by digits) from which the entity that the module actually uses is obtained by using the first best value of the property
separator no The characters that separate the aliases in the list, except for the penultimate and the last (implicitly the comma)
conjunction no Characters that separate the penultimate and last alias from the list (implicitly the "a" link)
addclass no If "true", data from the repository will be assigned a CSS class </ span>
getBadges Returns the badge tag associated with that link to the article site yes Project shortcut
id no An identifier of the item (the letter "q" followed by digits) or the properties (the letter "p" followed by the digits) on Wikitates, which data should be obtained for further work with them (implicitly an item linked to that page)
of no The property identifier on Wikitates (the letter "p" followed by digits) from which the entity that the module actually uses is obtained by using the first best value of the property
getCount Returns the number of claims based on the criteria All parameters for filtering
getCurrentId Returns the item id to which the page is linked
getId* Returns id items linked to the specified page. If it is not connected and is redirect, it is followed (even recursively). If it fails, it tries other pages if they have been given more. If it does not get the parameters directly, it processes the parameters passed to the calling template.

(funkčnost závisí na phab:T74815)

First, second, ... unnamed no Page name on this wiki (default page)
getRawValue Uses the same criteria as "formatStatements," but returns a machine readable (unformatted) All parameters for filtering
field no If the type of the coordinate value is, this is the part that is displayed; One of "latitude", "longitude", "precision" and "globe"
getRawValueFromLua Like "getRawValue", for use in another module entity no The table with the entity with which the module is to work
getQualifier*
getRawQualifier*
formatEntity Locates an entry entered by its identifier (tries to create a local link and show the label) id no Id of the item to be formatted (otherwise the item id to which the page is linked)

Moduulit muokkaa

Tarvittavat moduulit
cswiki fiwiki ohje kommentti
cs:Module:Wikidata Module:cs:Wikidata ohje
cs:Module:Wikidata/lib Module:cs:Wikidata/lib ohje knihovna funkcí pro všechny další submoduly,
cs:Module:Wikidata/i18n Module:cs:Wikidata/i18n ohje lokalizace
cs:Module:Wikidata/Filterers Module:cs:Wikidata/Filterers ohje filtrování tvrzení/vymezení apod. podle kritérií,
cs:Module:Wikidata/Formatters Module:cs:Wikidata/Formatters ohje formátování údajů,
cs:Module:Wikidata/Sorters Module:cs:Wikidata/Sorters ohje seřazování údajů (podle abecedy, data apod.),
cs:Module:Wikidata/cite Module:cs:Wikidata/cite ohje formátování referencí,
cs:Module:Wikidata/sandbox Module:cs:Wikidata/sandbox ohje testovací modul,
cs:Module:Wikidata/testcases Module:cs:Wikidata/testcases ohje unit testing
cs:Module:Wikidata infobox module:cs:Wikidata infobox ohje Infobox
cs:Module:Wikidata infobox/videohra Module:cs:Wikidata infobox/videohra ohje
cs:Module:Wikidata/compare Module:cs:Wikidata/compare ohje
cs:Module:Functions Module:cs:Functions ohje
cs:Module:Kategorie Module:cs:Kategorie ohje
cs:Module:Wikidata/Tree Module:cs:Wikidata/Tree ohje
cs:Module:Time Module:cs:Time  ohje
cs:Module:Wikidata/Statement  Module:cs:Wikidata/Statement ohje
cs:Module:UnitTests Module:cs:UnitTests ohje
cs:Module:IsList Module:cs:IsList  ohje
cs:Module:ImageFormatter  Module:cs:ImageFormatter ohje
cs:Module:Wikidata/item Module:cs:Wikidata/item ohje
cs:Module:Wikidata/Formatters/wikibase-entityid Module:cs:Wikidata/Formatters/wikibase-entityid ohje
cs:Module:Wikidata/datum Module:cs:Wikidata/datum  ohje
cs:Module:Wikidata/Formatters/time Module:cs:Wikidata/Formatters/time ohje
cs:Module:Wikidata/Formatters/url Module:cs:Wikidata/Formatters/url ohje
cs:Module:Wikidata/rating Module:cs:Wikidata/rating ohje
cs:Module:URL Module:cs:URL ohje
cs:Module:Wikidata/Formatters/string Module:cs:Wikidata/Formatters/string ohje
cs:Module:Wikidata/Formatters/quantity Module:cs:Wikidata/Formatters/quantity ohje
cs:Module:Wikidata/Formatters/globecoordinate Module:cs:Wikidata/Formatters/globecoordinate ohje
cs:Module:Wikidata/Sorters/date Module:cs:Wikidata/Sorters/date ohje
cs:Module:Wikidata/Sorters/rank Module:cs:Wikidata/Sorters/rank ohje
cs:Module:GlobeCoordinate Module:cs:GlobeCoordinate ohje