Модул:SportsReference/док
Ово је документациона подстраница за Модул:SportsReference
Овај модул је оцењен као спреман за генералну употребу. Досегао је зрео облик и сматра се да нема никаквих багова те да га се може употребити где год је то потребно. Спреман је за помињање на помоћним страницама и другим Википедијиним изворима као опција за нове кориснике који почињу да уче. Да би се смањило оптерећење сервера и лош излаз података, треба да се побољшава тестирањима у песку, а не константним пуњењем историје покушавајући постићи жељене промене. |
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.