Keskustelu mallineesta:Wikidata

message: Jäin vielä pähkimään, miten tätä kannattaisi oikeastaan käyttää. Nykyisissä tietolaatikkomallineissa on kohtalaisen kiemurainen syntaksi lähinnä siksi, että saataisiin parametrin nimi näkyviin mallinesivun esimerkimallineeseen. Wikidata-ominaisuuden survaisu mukaan tekisi muodosta vielä hieman kiemuraisemman:

Keksittekö fiksumpaa ratkaisua? --Silvonen (keskustelu) 1. toukokuuta 2013 kello 11.52 (EEST)
replies: text: Syntaksia voi siistä käyttämällä myös hiljakkoin käyttöön otettua Lua-kieltä. --Harriv (keskustelu) 1. toukokuuta 2013 kello 15.20 (EEST)
thread_title:  Mallineen käyttö tietolaatikoissa 

message: Hi, I create a better version of template Wikidata and saved it here.
The actual version prints a useless span tag that breaks everything if the second parameter is set and the value is the same on Wikidata.
This version of the template fixes this problem: if the second parameter is set it just print the value, without anything that would break other templates, as template:Wikidata is a subtemplate.
With this template, other templates such as Malline:Ministerikortisto, Malline:Edustajamatrikkeli, and so on will work properly (see 
Malline:Ministerikortisto/Wikidata and Malline:Edustajamatrikkeli/Sandbox to see the implementation and to understand why the new version of template Wikidata is extremely useful): those template will work properly if the templates don't have the variable "nro" set and the value is on Wikidata and will work properly if the templates have the variable "nro" set locally, so that it overrides Wikidata value (retrocompatibility with old code).
 I ping you because you maybe want to say your opinion about it.
If nobody is opposing to it I will then change the code of these templates.
Best regards, --★ → Airon 90 10. lokakuuta 2015 kello 13.14 (EEST)
replies: text: It seems that User:Zache added those span tags with a summary: "highlighting if the value is same on Wikidata and on a given parameter". So I don't know is it how important to have. --Stryn (keskustelu) 10. lokakuuta 2015 kello 18.04 (EEST)
replies: text: : I checked where the template Wikidata is used and I don't find the highlighting useful. Instead, it breaks links and other things useful to do with data from Wikidata. I wait for an answer from Zache, who can explain his edit. --★ → Airon 90 10. lokakuuta 2015 kello 18.36 (EEST)
replies: text: :: User:Airon90 I guess that it was just for validating values. Eg. expected result is that the Wikidata and fiwiki values should be identical and if they arent then there is error in either in fiwiki or wikidata. (Though this works only with small subset of values). Anyway if you want to change this then go for it. --Zache (keskustelu) 12. lokakuuta 2015 kello 00.09 (EEST)
replies: text: ::: That work could be done easily with a hidden category. An additional template has been created on en.wiki and it.wiki which checks values and adds the page into a category, which is different for each case, if:

text: :::* values from Wikidata and locally are different (it/en)

text: :::* values from Wikidata and locally are the same (so that the locally can be removed without problem) (en)

text: :::* value is set locally but not on Wikidata (so it must be imported) (it/en)

text: :::* value is set on Wikidata but not locally (it doesn't have sense... I have to check why it exists) (it)

text: ::: I implemented the same category of en.wiki and tested it with Malline:Ministerikortisto/Wikidata and Malline:Edustajamatrikkeli/Sandbox on Pekka Haavisto without saving and saw that it works properly.

text: ::: Please check my Finnish :D --★ → Airon 90 12. lokakuuta 2015 kello 11.14 (EEST)
replies: text: :::: You can  now get data from Wikidata from a defined item with "kohdesta" parameter: if you insert  in every page but Suomi (it will work even there but it doesn't have sense to test this new parameter on the same page of "kohdesta"), you'll get Maamme. During next week, if no one is opposing, I'll officially insert this new version of template Wikidata. --★ → Airon 90 16. lokakuuta 2015 kello 13.42 (EEST)
replies: text: :::::Kohdesta should be Kohteesta. --Stryn (keskustelu) 16. lokakuuta 2015 kello 15.29 (EEST)
replies: text: :::::: Fixed. Thank you! Consonant gradation is too hard for me to be understood :D Please, could you check if the categories are correct? Thank you again! --★ → Airon 90 16. lokakuuta 2015 kello 22.07 (EEST)
I updated the template. Please, could someone translate what I wrote in the /ohje? Thank you! --★ → Airon 90 21. lokakuuta 2015 kello 22.34 (EEST)
thread_title:  New version of template Wikidata