Template talk
Difference between revisions of "Userbox-records"
m (→Another userbox records: one drawback) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 10: | Line 10: | ||
<br clear="all"> | <br clear="all"> | ||
The template's code will evolve further in the future to provide more insight and to facilitate connecting contributors. Titodutta rightfully added code to automatically group users into categories per language, ex : [[:Category:Speakers in ben]], [[:Category:Speakers in fra]]. It will be useful when we create portals. Ideally, we should also be able to set an option which hides the visual but keeps categorizing the userpage, but this is for another day. The [[Template:Userbox-records/doc|/doc sub-page]] provides the rightful syntax and a list of existing templates to use or expand. [[User:Yug|Yug]] ([[User talk:Yug|talk]]) 14:21, 8 February 2021 (UTC) | The template's code will evolve further in the future to provide more insight and to facilitate connecting contributors. Titodutta rightfully added code to automatically group users into categories per language, ex : [[:Category:Speakers in ben]], [[:Category:Speakers in fra]]. It will be useful when we create portals. Ideally, we should also be able to set an option which hides the visual but keeps categorizing the userpage, but this is for another day. The [[Template:Userbox-records/doc|/doc sub-page]] provides the rightful syntax and a list of existing templates to use or expand. [[User:Yug|Yug]] ([[User talk:Yug|talk]]) 14:21, 8 February 2021 (UTC) | ||
− | : | + | |
+ | == Another userbox records == | ||
+ | {{User:Pamputt/User records|Q21}} | ||
+ | {{User:Pamputt/User records|Q221062}} | ||
+ | Hi {{u|Yug}} and {{u|WikiLucas00}}. Instead of having one template per language, I worked on a template property (see [[User:Pamputt/User records]]) and some examples besides. Compared to the existing template, this template: | ||
+ | * supports automatically language name in the user language (français, French, francés, tiếng Pháp, etc.). To do that, it gets labels from the language item on Lingua Linbre | ||
+ | * needs only one parameter, the language item. From it it gets the language name and also the ISO 639-3 code. | ||
+ | * I do not know what to do with the box colors. I think it is possible to generate different colors automatically but I guess some colors may be not so nice. So it is still possible to specify the color using a parameter | ||
+ | * will be fully translatable so that it is displayed in the language of the contributors | ||
+ | The only drawback I see is I do not know how to include this user box inside babel (if we want to keep one single template) | ||
+ | Do you think we should go further with this version. Keep in mind this is a prototype and a proof of concept. [[User:Pamputt|Pamputt]] ([[User talk:Pamputt|talk]]) 20:01, 24 August 2021 (UTC) | ||
+ | :{{Support}}: {{ping|Pamputt}} Great idea, it will be much easier to use a unique template with a Qid parameter, both in translation and maintenance. For the color, we could go with a more neutral color than red for default. It would be ideal to have an automatic coloration based on the language family, but I think that an optional color parameter will be enough for now. — '''[[User:WikiLucas00|WikiLucas]]''' [[User talk:WikiLucas00|(🖋️)]] 07:48, 25 August 2021 (UTC) | ||
+ | :EDIT: I added a {{tl|Clr}} at the end of the box, and an optional parameter to allow the box to float on the right. — '''[[User:WikiLucas00|WikiLucas]]''' [[User talk:WikiLucas00|(🖋️)]] 08:05, 25 August 2021 (UTC) |
Latest revision as of 08:28, 25 August 2021
Userbox records (v2)
@WikiLucas00 & Pamputt hello,
I changed the template names to make it compatible with babel module. It now work as follow :
{{#babel:yue-N|en-4|be-2|de-1|no-1|records-yue}} {{user records-yue|username=Luilui6666}}
Babel user information | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Users by language |
yue
|
This user contributes to Lingua Libre in Cantonese.
|
The template's code will evolve further in the future to provide more insight and to facilitate connecting contributors. Titodutta rightfully added code to automatically group users into categories per language, ex : Category:Speakers in ben, Category:Speakers in fra. It will be useful when we create portals. Ideally, we should also be able to set an option which hides the visual but keeps categorizing the userpage, but this is for another day. The /doc sub-page provides the rightful syntax and a list of existing templates to use or expand. Yug (talk) 14:21, 8 February 2021 (UTC)
Another userbox records
fra
|
This user contributes to Lingua Libre in French.
|
yue
|
This user contributes to Lingua Libre in Cantonese.
|
Hi Yug and WikiLucas00. Instead of having one template per language, I worked on a template property (see User:Pamputt/User records) and some examples besides. Compared to the existing template, this template:
- supports automatically language name in the user language (français, French, francés, tiếng Pháp, etc.). To do that, it gets labels from the language item on Lingua Linbre
- needs only one parameter, the language item. From it it gets the language name and also the ISO 639-3 code.
- I do not know what to do with the box colors. I think it is possible to generate different colors automatically but I guess some colors may be not so nice. So it is still possible to specify the color using a parameter
- will be fully translatable so that it is displayed in the language of the contributors
The only drawback I see is I do not know how to include this user box inside babel (if we want to keep one single template) Do you think we should go further with this version. Keep in mind this is a prototype and a proof of concept. Pamputt (talk) 20:01, 24 August 2021 (UTC)
Support: @Pamputt Great idea, it will be much easier to use a unique template with a Qid parameter, both in translation and maintenance. For the color, we could go with a more neutral color than red for default. It would be ideal to have an automatic coloration based on the language family, but I think that an optional color parameter will be enough for now. — WikiLucas (🖋️) 07:48, 25 August 2021 (UTC)
- EDIT: I added a {{Clr}} at the end of the box, and an optional parameter to allow the box to float on the right. — WikiLucas (🖋️) 08:05, 25 August 2021 (UTC)