This web site doesn't display advertising. Please consider making a donation.
Template talk:A
Free texts and images.
Template:A et Template:A-ru
Bonjour
Maintenant que j'ai ajouté l'option desc_es dans le modèle Template:A, quand j'ai mis à jour les auteurs j'ai vu qu'il y a plusieurs avec une ligne extra qui met la description en russe, mais il n'y a pas d'option desc_ru dans cet modèle.
En plus, il y a un deuxième modèle (Template:A-ru) qui est très semblable à Template:A et où on trouve la description en russe. Qu'est-ce que tu en penses de fusionner les deux modèles avec un nouveau nom et avec les langues: en, es, fr, ru (et si on veut, l'allemand aussi)? Je soupçone qu'on a déjà parlé sur cet question dans le forum russe (ici), mais je ne parle pas russe et je sais pas quelle a été la conclusion du débat.
Le nouveau modèle pourrait être quelque chose semblable à Template:A-ru, comme ça:
{{A-nouveau-modèle
|enwplink=Platon
|desc_en=Ancient Greek philosopher.
|en_name=Platon
|eswplink=Platón
|desc_es=Filósofo de la antigua Grecia.
|es_name=Platón
|frwplink=Platon
|desc_fr=Philosophe de la Grèce antique.
|fr_name=Platon
|ruwplink=Платон
|ruwslink=Платон
|desc_ru=древнегреческий философ.
|l=P
|date=(428 or 427 BC — 348 or 347 BC)
}}
Je dis tout ça d'ajouter l'espagnol dans les modèles parce que je pense que si on fait plus visible l'espagnol un peu par tout (par example, dans les descriptions de tous les auteurs) peut-être il y aura des hispanophones qui se décideront à ajouter des nouveaux textes en espagnol. En fait, si on fait plus visible toutes les langues qu'il y a maintenant dans wikilivres dans les descriptions des auteurs on fera de la publicité des textes dans toutes ces langues (même s'il y a déjà les portails annoncés sur la Main Page).
--LaosLos 07:24, 27 February 2008 (EST)
- Oui, ce serait une bonne idée de fusionner les modèles. Il faudrait que les options soient facultatives (rien n'est affiché si l'option n'existe pas). En pendant qu'on y est, il faudrait modifier ce modèle sur l'exemple de en.ws:Template:author avec des champs séparés pour les dates, ce qui permet de classer les auteurs par dates de naissance et de décès. Yann 07:26, 27 February 2008 (EST)
I made an attempt of combining 5 languages together, but I am not good technically and this was not successfull:
{{A-ru
|enwplink=Ivan Petrov
|en_name=Petrov
|desc_en=Russian poet and translator.
|frwplink=Ivan Petrov
|fr_name=Petrov
|desc_fr=Traducteur et poète russe.
|eswplink= Ivan Petrov
|es_name= Petrov
|desc_es= poet
|dewplink= Iwan Petrov
|de_name= Petrov
|desc_de= poet
|ruwplink=Петров, Иван Иванович
|ruwslink=Иван Иванович Петров
|desc_ru=русский поэт и переводчик.
|l=Р
|date=(1900—1950)
}}
<[[:Category:Authors-{{{l}}}|Authors-{{{l}}}]]
Like this:
en
{{{enwplink}}} {{{date}}}, {{{desc_en}}} [[en.wp:{{{enwplink}}}|Biography]] ~ [[en.ws:Author:{{{enwplink}}}|Works on Wikisource]]
fr
{{{frwplink}}} {{{date}}}, {{{desc_fr}}} [[fr.wp:{{{frwplink}}}|Biographie]] ~ [[fr.ws:{{{frwplink}}}|Œuvres sur Wikisource]]
es
{{{eswplink}}} {{{date}}}, {{{desc_es}}} [[es.wp:{{{eswplink}}}|Biographie]] ~ [[es.ws:{{{frwplink}}}| Obras en Wikisource]]
de
{{{dewplink}}} {{{date}}}, {{{desc_de}}} [[de.wp:{{{dewplink}}}|Biographie]] ~ [[de.ws:{{{frwplink}}}| Texte in Wikisource]]
ru
{{{ruwslink}}} {{{date}}}, {{{desc_ru}}} [[ru.wp:{{{ruwplink}}}|Биография]] ~ [[ru.ws:{{{ruwslink}}}|Произведения в Викитеке]]
Dmitrismirnov 08:20, 27 February 2008 (EST)
Salut :)
Il faut installer l'extension ParserFunctions histoire d'avoir les fonctions IF, etc... --LaosLos 12:08, 27 February 2008 (EST)
- C'est fait. Yann 14:12, 27 February 2008 (EST)
Hello all,
Here you can find a test for the new template: User:LaosLos/A, and here (Platon) you can view how it works. You can try to delete the options in order to view how the template shows or hides the information in the different languages. --LaosLos 15:16, 27 February 2008 (EST)
- Great! You did it very fast! Thanks a lot! Yann 15:21, 27 February 2008 (EST)
How to apply the changes?
Hello,
I wonder now how to apply the new template with the minimum disturbances. Any suggestion welcome... Also a field for DEFAULTSORT would be useful. Yann 15:44, 27 February 2008 (EST)
- The easiest that I see is to call the new template AA and then apply it everywhere. Any better idea? Yann 15:54, 27 February 2008 (EST)
- If you have any interest in keeping the original templates, once the new template applied everywhere, the new AA template is a good idea. But if you want eventually to delete the A and A-ru templates, then there are "only" about 200 authors with the A-template and 150 with the A-ru one, we can change the A-template with the new code and I promise to change the template in all of them in 2/3 days. --LaosLos 16:11, 27 February 2008 (EST)
- No, I don't want to keep the old template, but I think it bad that some author's pages will be wrong for a few days. Yann 16:30, 27 February 2008 (EST)
- If you have any interest in keeping the original templates, once the new template applied everywhere, the new AA template is a good idea. But if you want eventually to delete the A and A-ru templates, then there are "only" about 200 authors with the A-template and 150 with the A-ru one, we can change the A-template with the new code and I promise to change the template in all of them in 2/3 days. --LaosLos 16:11, 27 February 2008 (EST)
ok, let's go for the AA-template. After that, we can do some sort of redirect from the AA-template to the A-template with the new code. --LaosLos 16:41, 27 February 2008 (EST)
- Ok, fine. Yann 16:50, 27 February 2008 (EST)
Thanks! Well done! Dmitrismirnov
