Template talk:User language
From Rodovid Engine
[edit] Why N is changed to 5 in category of users ?
Hi! Why the LEVEL N is changed to 1 and 1 is changed to 5 in last switch command ? At CATEGORY page, users are listed under 5 subtitle and not under N... ???? Até+! Morais 05:55, 28 November 2008 (EET)
- N = 1
4 = 2 3 = 3 2 = 4 1 = 5 That way native speakers are sorted first and speakers with level 1 are sorted last. So if you go to the category the first person you see is the person with the best command of the language. --Wikiacc (≈) 04:27, 29 November 2008 (EET)
- Thanks for your reply ! But exists an error, because, NATIVE is listed as 5 at LAST POSITION... I believe that this switch is inverted, because N is changed to 1 and after 1 is changed to 5... or occur this because I inserted spaces and lines in original code ? :-O
BTW, the number listed in CATEGORY is different of the LANGUAGE instructions, where show levels 0 to 4 + N... and the ZERO isn't in listed in category... Morais 05:04, 29 November 2008 (EET)
I apologize if I wasn't clear.
| Language ability | Category position | Reason |
|---|---|---|
| N | 1 | so native speakers appear first in the category |
| 4 | 2 | so near-native speakers appear after native speakers, and before advanced speakers. |
| 3 | 3 | so advanced speakers appear after near-native speakers, and before intermediate speakers. |
| 2 | 4 | so intermediate speakers appear after advanced speakers, and before beginning speakers. |
| 1 | 5 | so beginning speakers appear at the very end. |
| 0 | none | so that people who don't speak a language don't end up in the category for it. |
Suppose that for a hypothetical language there are three people on Rodovid who speak it. One is N, one is 3, and one is 1. Someone else has it marked as 0. When you go to the category, you want to see the people who speak it the best first. The people who speak the language better are more useful. So when you go to the category, the person who is N comes up first, then the person who is 3, then the person who is 1. The person who is 0 doesn't show up at all because that person isn't useful at all. The reason why N becomes 1 in the category and 1 becomes 5 is so that the person who is most useful shows up first, and the person who is least useful shows up last. --Wikiacc (≈) 19:25, 29 November 2008 (EET)
- Wikiacc, sorry, but I am who wasn't clear... :-( Your explanation is ok from the first reply...
In PT localization, after I copy and CHANGE templates, user NATIVE (N) was listed as 5 on category "User pt"... I undo all changes that I make, reverting to original code (removing spaces and other changes) and now users are listed as 1... :-O
Do you can tell me where can I read more about switch command ? :-) Thanks. Morais 22:55, 29 November 2008 (EET)
- That's odd. Perhaps the category needs time to refresh itself, or you could use &action=purge on the userpages. You can read about switch here: http://meta.wikimedia.org/wiki/Help:ParserFunctions#.23switch:

