Templates management

Davide Valsecchi valsecchi.davide94 at gmail.com
Mon Feb 8 11:28:50 UTC 2016


I like the *inheritance* strategy, because it seems a really neat solution
for localization.
+1

2016-02-07 21:24 GMT+01:00 Gianluca Rigoletti <gianluca.rigoletti at gmail.com>
:

> I really like this idea of inheritance. It probably can fit for what we
> need. This way we can have a simple and clean structure on meta and don't
> have to double the work like Cristian pointed.
> +1 for what Riccardo wrote
>
>
>
>
> 2016-02-07 20:52 GMT+01:00 Riccardo Iaconelli <riccardo at kde.org>:
>
>> Hi Gian,
>>
>> On 7 February 2016 at 20:12, Gianluca Rigoletti <
>> gianluca.rigoletti at gmail.com> wrote:
>>
>>> Proposed by ruphy, is to use templates just for html/css layouts.
>>> Speaking about the template AddCourse, we would have to write in every page
>>> of every department the message "Want to add a new course? ..."
>>
>>
>> thanks for bringing this up.
>> Let me explain a little bit more how the proposal would work: because the
>> strategy will differ a little. Having HTML/CSS templates on Meta, does not
>> prevent new templates from being added on the domains.
>>
>> The idea, in your example, would work as follow:
>>
>> meta:
>> - have a generic "infobox" template, with all the looks and features, but
>> no user-visible strings
>> it/en/...:
>> - have a specialized "AddCourse" template, which inherits from the first
>> one (i.e. uses it), and *only* adds the relevant strings, correctly
>> translated.
>>
>> An example of this can be seen here:
>> http://it.wikitolearn.org/Template:WarningBox
>> and
>> http://it.wikitolearn.org/Template:Bozza
>>
>> This means that you're still using templates and their convenience, but
>> abstracting away all the technical details. When changes are needed, they
>> only need to be performed once, and they get automatically propagated to
>> all the language domains, without breaking translations (and so on...)
>>
>> Variables are also an option (see parserfunctions), but they are
>> apparently quite heavy on the server.
>>
>> Bye,
>> -Riccardo
>> --
>> Pace Peace Paix Paz Frieden Pax Pokój Friður Fred Béke 和平
>> Hasiti Lapé Hetep Malu Mир Wolakota Santiphap Irini Peoch שלום
>> Shanti Vrede Baris Rój Mír Taika Rongo Sulh Mir Py'guapy 평화
>>
>
>
>
> --
> Gianluca
>
> _______________________________________________
> WikiToLearn-Tech mailing list
> WikiToLearn-Tech at kde.org
> https://mail.kde.org/mailman/listinfo/wikitolearn-tech
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/wikitolearn-tech/attachments/20160208/9d6ee7a3/attachment.html>


More information about the WikiToLearn-Tech mailing list