Modul:SportsReference/dok
Ovo je dokumentaciona podstranica za Модул:SportsReference
| Ovaj modul je ocenjen kao spreman za generalnu upotrebu. Dosegao je zreo oblik i smatra se da nema nikakvih bagova te da ga se može upotrebiti gde god je to potrebno. Spreman je za pominjanje na pomoćnim stranicama i drugim Vikipedijinim izvorima kao opcija za nove korisnike koji počinju da uče. Da bi se smanjilo opterećenje servera i loš izlaz podataka, treba da se poboljšava testiranjima u pesku, a ne konstantnim punjenjem istorije pokušavajući postići željene promene. |
| Ovaj modul koristi svojstva Vikipodataka: Lua greška in Modul:Uses_Wikidata at line 10: attempt to index field 'wikibase' (a nil value). |
Usage
This module returns a link to Sports-Reference.com. The URL is taken from Wikidata, unless there is no link on Wikidata. If that's the case, the module uses the link from the optional backup parameter; if there is no link on Wikidata and no backup parameter, it will return an error message explaining how to fix the issue.
The module only has one function, link, which returns the external link text ready for use. It should be used in the {{Sports-reference}} template thusly:
{{#invoke:SportsReference|link|optional backup parameter}}
The reason the module prefers links from Wikidata rather than the links given in the backup parameter is that it is much simpler to correct the links in Wikidata, and that will benefit all projects and not just this wiki; also, Wikidata supports various constraints so that the items and values can easily be checked for errors.