Pogovor o predlogi:Sports-reference

Zadnji komentar: pred 9 leti uporabnika Jon Harald Søby v temi Wikidata alternative

Wikidata alternative

uredi

Hi! There is now a property for Sports Reference ID in Wikidata. I have imported the IDs used in this template from all Wikipedias, so it can now be used on Wikipedias by using a module. I have made a module in the Norwegian (Bokmål) Wikipedia that can be copied here and be used with some modification – if you would like me to help set it up, I'd be more than happy to help (just let me know). The module will use the ID from Wikidata preferentially, but if there is no ID on Wikidata it can take an argument from the local wiki, and will categorise pages that are missing the ID in Wikidata. The reason I set it up that way is that I discovered there are many erroneous IDs used on Wikipedias, and it is much simpler to fix in Wikidata, especially since we have this nifty report of errors. One more thing, the Wikidata property does not support links for countries (and country-specific Olympic articles), but that can easily be circumvented in the template itself. Let me know if you'd like me to help set it up here as well! Jon Harald Søby (pogovor) 22:26, 29. avgust 2014 (CEST)Odgovori

@Sporti, as template creator, do you have any comments? :-) Jon Harald Søby (pogovor) 17:57, 3. september 2014 (CEST)Odgovori
@Jon Harald Søby, I have copied the module from en and updated the template. It is working except for the template in the end indicating the link is in English. There is some commented code in the start of the module (frame:expandTemplate{ title = "LANGUAGETEMPLATENAME", args = { "en" } } saying "This is the code to insert a template to indicate that the link is in English", where should it go? --Sporti (pogovor) 08:43, 4. september 2014 (CEST)Odgovori
Awesome, Sporti! I added it here. It would be ideal to have it as part of the link, but I have not been able to make it work since the local function is not part of the "frame" object. If I ever figure that out I'll add it there instead, but for now this will work. :-) Jon Harald Søby (pogovor) 22:57, 4. september 2014 (CEST)Odgovori
Vrnitev na stran »Sports-reference«.