User talk:Grin/babel
Intro
editThis is my attempt to create a unified babel template.
- The referenced name babel2 is fictional, as the template is called "user:grin/babel" now. For now substitute babel2 to user:grin/babel everywhere.
There is only one template, this one, to use. That is all. The usage is in form {{babel2|en|3}} or {{babel2|hu}}, for advanced (level3) english (en) or native (no level) hungarian (hu), respectively.
To see it live check my userpage, and its source.
Disclaimer
editI did not want to push this into main template namespace before the community gives some feedback. I only filled the texts for language levels I use, to demonstrate the possibilities. If the scheme is accepted it should be moved over to Template: namespace, then the texts should be filled with a robot from existing templates (it's rather trivial).
Internals
editLegend:
- <LANG>: language code like "hu" for hungarian, "en" for english etc.
- <LVL>: level for the givn language, eg. 1 for basic knowledge, 3 for advanced, empty value for native level
The following templates are used:
- babel2/<LANG>1: translation of "This user is able to contribute with" (or any text in the first position)
- babel2/<LANG>2: translation of "level of" (or any text in the second position)
- babel2/<LANG>3: translation of "english" (the actual name of the language in native form)
- babel2/<LANG>-lvl<LVL>: translation of the level; LVL1=beginner, LVL2=medium, LVL3=advanced
- babel2/<LANG>-lvl: translation of native level knowledge
- babel2/col1-lvl<LVL>: color1 (border) code for the respective level (like #e0f0f0 or red)
- babel2/col2-lvl<LVL>: color2 (background) code for the respective level
Examples
editEnglish-3
- User:Grin/babel/en1
- User:Grin/babel/en2
- User:Grin/babel/en3
- User:Grin/babel/en-lvl3
- User:Grin/babel/col1-lvl3
- User:Grin/babel/col2-lvl3
German-1
Comments
editComments?
use en:ISO 639-3 to be future ready Tobias Conradi 16:53, 7 August 2006 (UTC)
- Concur with that. —Nightstallion (?) 07:49, 10 August 2006 (UTC)
I will, thanks. Seems that my idea is either too stupid or people couldn't care less. I do not want singlehandedly change wikipedia's babel templates against the community. ;) I need some more positive feedback. :-) --grin ✎ 22:11, 18 August 2006 (UTC)