Am 03.02.2014 22:48, schrieb Bene*:
> Am 03.02.2014 22:32, schrieb Michał Łazowik:
>> Or even just create some Lua module that would insert current templates used
>> on Wikipedias based on data from Wikidata. Then no configuration on clients
>> would be needed and transition would be seamless. Bene* suggested earlier 
>> that
>> then communities could decide not to use Wikidata for badges, but actually 
>> they
>> requested that feature. Also imposing decisions on them is not that nice.
>>
>> I don't know though what performance impact that might have.
>>
>> Regards,
>> Michał
> Hey, I agree with everything said. Also having a "rank" of badges seems to be 
> a
> good idea. However, I am not sure if Lua can handle the other badges because
> then a lua template would have to be inserted on *every* Wikipedia page. For 
> the
> future, we must think about another mechanism so that badges like "citation
> needed" are added automatically, too. Maybe some lua scripts will be available
> on all pages by default?

This sounds way too complicated for a baseline implementation. As I said
earlier, I would suggest this: on the client, for each language link, add a css
class for each badge that applies to that link. Period. I see no need to do more
for now.

"Automatic" badges could be done via a bot, based on templates (or perhaps
page_props). Thinking about how badges and page_props relate is actually
interesting, but I don't think it's relevant for the initial implementation.

Lua could be used to push things to page_props (I don't think that is possible
right now, but I think that can and should be added). But as I said,
implementing "automatic badges" is completely separate from the task of making
badges visible on the client.

-- 
Daniel Kinzler
Senior Software Developer

Wikimedia Deutschland
Gesellschaft zur Förderung Freien Wissens e.V.

_______________________________________________
Wikidata-tech mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech

Reply via email to