Difference between revisions of "Хев:User gen"
Айдать на коробушку
Айдать на сыскальник
(Нова сторонка: <div class="babel_lang_{{{2|}}}" style="float:left;margin:1px;border:1px solid #{{#switch: {{{2|}}} | 0 = FFB3B3 | 1 = C0C8FF | 2 = 77E0E8 | 3 = 99B3FF | 4 = CC0 | 5|...) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
| #default = AAA | | #default = AAA | ||
}};border:none;padding:1px;width:45px;height:45px;font-weight:bold;text-align:center"| {{#if: {{{lang|}}} | }};border:none;padding:1px;width:45px;height:45px;font-weight:bold;text-align:center"| {{#if: {{{lang|}}} | ||
− | | [[ | + | | [[{{{lang|}}}|{{{1|und}}}]] |
| {{{1|und}}} | | {{{1|und}}} | ||
}}{{#switch: {{{2|}}} | }}{{#switch: {{{2|}}} | ||
Line 22: | Line 22: | ||
into wikilinks (to categories by language or level). | into wikilinks (to categories by language or level). | ||
Some text parts (in parameters 3..7) may be empty or could contain leading/trailing spaces that must be preserved (so surround them with <nowiki/>) | Some text parts (in parameters 3..7) may be empty or could contain leading/trailing spaces that must be preserved (so surround them with <nowiki/>) | ||
− | -->{{#ifeq: {{{language|}}} | 3 | [[: | + | -->{{#ifeq: {{{language|}}} | 3 | [[:Розряд:User {{{1|und}}}|{{#if: {{{3|}}} | '''{{{3|}}}''' | <span class="error">language name not specified in parameter 3 of [[Template:User_gen]]<span> }}]] |
− | | {{#ifeq: {{{level|}}} | 3 | [[: | + | | {{#ifeq: {{{level|}}} | 3 | [[:Розряд:User {{{1|und}}}-{{{2|}}}|{{#if: {{{3|}}} | '''{{{3|}}}''' | <span class="error">level qualifier not specified in parameter 3 of [[Template:User_gen]]<span> }}]] |
| <nowiki/>{{{3|}}}<nowiki/> | | <nowiki/>{{{3|}}}<nowiki/> | ||
}}}}<!-- | }}}}<!-- | ||
− | -->{{#ifeq: {{{language|}}} | 4 | [[: | + | -->{{#ifeq: {{{language|}}} | 4 | [[:Розряд:User {{{1|und}}}|{{#if: {{{4|}}} | '''{{{4|}}}''' | <span class="error">language name not specified in parameter 4 of [[Template:User_gen]]<span> }}]] |
− | | {{#ifeq: {{{level|}}} | 4 | [[: | + | | {{#ifeq: {{{level|}}} | 4 | [[:Розряд:User {{{1|und}}}-{{{2|}}}|{{#if: {{{4|}}} | '''{{{4|}}}''' | <span class="error">level qualifier not specified in parameter 4 of [[Template:User_gen]]<span> }}]] |
| <nowiki/>{{{4|}}}<nowiki/> | | <nowiki/>{{{4|}}}<nowiki/> | ||
}}}}<!-- | }}}}<!-- | ||
− | -->{{#ifeq: {{{language|}}} | 5 | [[: | + | -->{{#ifeq: {{{language|}}} | 5 | [[:Розряд:User {{{1|und}}}|{{#if: {{{5|}}} | '''{{{5|}}}''' | <span class="error">language name not specified in parameter 5 of [[Template:User_gen]]<span> }}]] |
− | | {{#ifeq: {{{level|}}} | 5 | [[: | + | | {{#ifeq: {{{level|}}} | 5 | [[:Розряд:User {{{1|und}}}-{{{2|}}}|{{#if: {{{5|}}} | '''{{{5|}}}''' | <span class="error">level qualifier not specified in parameter 5 of [[Template:User_gen]]<span> }}]] |
| <nowiki/>{{{5|}}}<nowiki/> | | <nowiki/>{{{5|}}}<nowiki/> | ||
}}}}<!-- | }}}}<!-- | ||
− | -->{{#ifeq: {{{language|}}} | 6 | [[: | + | -->{{#ifeq: {{{language|}}} | 6 | [[:Розряд:User {{{1|und}}}|{{#if: {{{6|}}} | '''{{{6|}}}''' | <span class="error">language name not specified in parameter 6 of [[Template:User_gen]]<span> }}]] |
− | | {{#ifeq: {{{level|}}} | 6 | [[: | + | | {{#ifeq: {{{level|}}} | 6 | [[:Розряд:User {{{1|und}}}-{{{2|}}}|{{#if: {{{6|}}} | '''{{{6|}}}''' | <span class="error">level qualifier not specified in parameter 6 of [[Template:User_gen]]<span> }}]] |
| <nowiki/>{{{6|}}}<nowiki/> | | <nowiki/>{{{6|}}}<nowiki/> | ||
}}}}<!-- | }}}}<!-- | ||
− | -->{{#ifeq: {{{language|}}} | 7 | [[: | + | -->{{#ifeq: {{{language|}}} | 7 | [[:Розряд:User {{{1|und}}}|{{#if: {{{7|}}} | '''{{{7|}}}''' | <span class="error">language name not specified in parameter 7 of [[Template:User_gen]]<span> }}]] |
− | | {{#ifeq: {{{level|}}} | 7 | [[: | + | | {{#ifeq: {{{level|}}} | 7 | [[:Розряд:User {{{1|und}}}-{{{2|}}}|{{#if: {{{7|}}} | '''{{{7|}}}''' | <span class="error">level qualifier not specified in parameter 7 of [[Template:User_gen]]<span> }}]] |
| <nowiki/>{{{7|}}}<nowiki/> | | <nowiki/>{{{7|}}}<nowiki/> | ||
}}}}<!-- | }}}}<!-- | ||
Line 51: | Line 51: | ||
-->{{#switch: {{{2|}}} | -->{{#switch: {{{2|}}} | ||
|0|1|2|3|4|5|N = {{#switch: {{NAMESPACE}} | |0|1|2|3|4|5|N = {{#switch: {{NAMESPACE}} | ||
− | | | + | | Дольник = {{#ifexist: Category:User {{{1|und}}}-{{{2|}}} |
− | | [[ | + | | [[Розряд:User {{{1|und}}}-{{{2|}}}|{{PAGENAME}}]]<!-- subcategory for users by language and level --> |
| {{#ifeq: {{{2|}}} | 0 | | {{#ifeq: {{{2|}}} | 0 | ||
| <!-- empty --> | | <!-- empty --> | ||
− | | [[ | + | | [[Розряд:User {{{1|und}}}|{{PAGENAME}}]]<!-- list independantly of level, but only if level>0 --> |
}} | }} | ||
}} | }} | ||
| Template = {{#ifeq: {{PAGENAME}} | User {{{1|und}}}{{#ifeq:{{{2|}}}|N||-{{{2|}}}}} | | Template = {{#ifeq: {{PAGENAME}} | User {{{1|und}}}{{#ifeq:{{{2|}}}|N||-{{{2|}}}}} | ||
| {{#ifexist: Category:User {{{1|und}}}-{{{2|}}} | | {{#ifexist: Category:User {{{1|und}}}-{{{2|}}} | ||
− | | [[ | + | | [[Розряд:User {{{1|und}}}-{{{2|}}}|~Template]]<!-- normal category for users by language and level --> |
− | | [[ | + | | [[Розряд:User {{{1|und}}}|~Template]]<!-- fallback to parent category by language only, if not detailed by level --> |
}} | }} | ||
}} | }} |
Latest revision as of 21:43, 8 Грязника 2021
und |