Difference between revisions of "Хев:User gen"

С Сибирска Википеддя
Айдать на коробушку Айдать на сыскальник
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 | [[:Category:User {{{1|und}}}|{{#if: {{{3|}}} | '''{{{3|}}}''' | <span class="error">language name not specified in parameter 3 of [[Template:User_gen]]<span> }}]]
+
   -->{{#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 | [[:Category:User {{{1|und}}}-{{{2|}}}|{{#if: {{{3|}}} | '''{{{3|}}}''' | <span class="error">level qualifier not specified in parameter 3 of [[Template:User_gen]]<span> }}]]
+
       | {{#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 | [[:Category:User {{{1|und}}}|{{#if: {{{4|}}} | '''{{{4|}}}''' | <span class="error">language name not specified in parameter 4 of [[Template:User_gen]]<span> }}]]
+
   -->{{#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 | [[:Category:User {{{1|und}}}-{{{2|}}}|{{#if: {{{4|}}} | '''{{{4|}}}''' | <span class="error">level qualifier not specified in parameter 4 of [[Template:User_gen]]<span> }}]]
+
       | {{#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 | [[:Category:User {{{1|und}}}|{{#if: {{{5|}}} | '''{{{5|}}}''' | <span class="error">language name not specified in parameter 5 of [[Template:User_gen]]<span> }}]]
+
   -->{{#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 | [[:Category:User {{{1|und}}}-{{{2|}}}|{{#if: {{{5|}}} | '''{{{5|}}}''' | <span class="error">level qualifier not specified in parameter 5 of [[Template:User_gen]]<span> }}]]
+
       | {{#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 | [[:Category:User {{{1|und}}}|{{#if: {{{6|}}} | '''{{{6|}}}''' | <span class="error">language name not specified in parameter 6 of [[Template:User_gen]]<span> }}]]
+
   -->{{#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 | [[:Category:User {{{1|und}}}-{{{2|}}}|{{#if: {{{6|}}} | '''{{{6|}}}''' | <span class="error">level qualifier not specified in parameter 6 of [[Template:User_gen]]<span> }}]]
+
       | {{#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 | [[:Category:User {{{1|und}}}|{{#if: {{{7|}}} | '''{{{7|}}}''' | <span class="error">language name not specified in parameter 7 of [[Template:User_gen]]<span> }}]]
+
   -->{{#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 | [[:Category:User {{{1|und}}}-{{{2|}}}|{{#if: {{{7|}}} | '''{{{7|}}}''' | <span class="error">level qualifier not specified in parameter 7 of [[Template:User_gen]]<span> }}]]
+
       | {{#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 52: Line 52:
 
       |0|1|2|3|4|5|N = {{#switch: {{NAMESPACE}}
 
       |0|1|2|3|4|5|N = {{#switch: {{NAMESPACE}}
 
         | User = {{#ifexist: Category:User {{{1|und}}}-{{{2|}}}
 
         | User = {{#ifexist: Category:User {{{1|und}}}-{{{2|}}}
           | [[Category:User {{{1|und}}}-{{{2|}}}|{{PAGENAME}}]]<!-- subcategory for users by language and level -->
+
           | [[Розряд:User {{{1|und}}}-{{{2|}}}|{{PAGENAME}}]]<!-- subcategory for users by language and level -->
 
           | {{#ifeq: {{{2|}}} | 0
 
           | {{#ifeq: {{{2|}}} | 0
 
             | <!-- empty -->
 
             | <!-- empty -->
             | [[Category:User {{{1|und}}}|{{PAGENAME}}]]<!-- list independantly of level, but only if level>0 -->
+
             | [[Розряд: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|}}}
             | [[Category:User {{{1|und}}}-{{{2|}}}|~Template]]<!-- normal category for users by language and level -->
+
             | [[Розряд:User {{{1|und}}}-{{{2|}}}|~Template]]<!-- normal category for users by language and level -->
             | [[Category:User {{{1|und}}}|~Template]]<!-- fallback to parent category by language only, if not detailed by level -->
+
             | [[Розряд:User {{{1|und}}}|~Template]]<!-- fallback to parent category by language only, if not detailed by level -->
 
             }}
 
             }}
 
           }}
 
           }}

Revision as of 21:00, 8 Грязника 2021

und