Vorlage:Module rating

Aus Antiklopedia
Zur Navigation springen Zur Suche springen

<languages /> {{#switch:<translate></translate> | = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 {{#switch:

| = {{#switch:

 {{#if:
 |     
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 Lua-Fehler: expandTemplate: template loop detected

}} }} Lua-Fehler in Modul:TNT, Zeile 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab{{#if:<translate> This template is used to rate Lua modules by quality.</translate> <translate> It is placed at the top of the module's /doc subpage.</translate> <translate> It produces a message informing users about the rating system, and it also places the module into a tracking category.</translate>

<translate>

Usage

Basic usage: </translate> Vorlage:Pre

<translate> Without categories:</translate> Vorlage:Pre

If {{[[{{#if:|{{{SISTER}}}Template|Vorlage}}:Module rating|Module rating]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} is used outside the Module namespace, an error message is shown: {{#switch:<translate></translate> | = {{#switch:

 {{#if:
 |     
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 {{#switch:

| = {{#switch:

 {{#if:
 |     
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 Lua-Fehler: expandTemplate: template loop detected

}} }}

<translate>

Ratings

</translate> The rating should be placed in the first positional parameter. There are five different ratings: pre-alpha, alpha, beta, release, and protected. There are also short alias codes for each of the ratings.

Vorlage:(| class="wikitable" ! <translate> Rating</translate> !! <translate> Aliases</translate> !! <translate> Result</translate> |- | pre-alpha || prealpha
pa || {{#switch:<translate></translate> | = {{#switch:

 {{#if:Module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 {{#switch:

| = {{#switch:

 {{#if:Module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 Lua-Fehler: expandTemplate: template loop detected

}} }} |- | alpha || a || {{#switch:<translate></translate> | = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 {{#switch:

| = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 Lua-Fehler: expandTemplate: template loop detected

}} }} |- | beta || b || {{#switch:<translate></translate> | = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 {{#switch:

| = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 Lua-Fehler: expandTemplate: template loop detected

}} }} |- | release || r
general
g || {{#switch:<translate></translate> | = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 {{#switch:

| = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 Lua-Fehler: expandTemplate: template loop detected

}} }} |- | protected || protect
p || {{#switch:<translate></translate> | = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 {{#switch:

| = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 Lua-Fehler: expandTemplate: template loop detected

}} }} |- | Anything else or if missing || || {{#switch:<translate></translate> | = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 {{#switch:

| = {{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Vorlage|Modul
   | module
   | other
   }}
 }}

| module =

| other | #default = Vorlage:Error }} | #default=

 Lua-Fehler: expandTemplate: template loop detected

}} }} |- |Vorlage:)

<translate>

Categories

</translate> The template will put modules in one of the following categories, according to the rating specified:

These categories are suppressed on pages ending with /doc. To suppress categories on all pages, you can use the code |{{SAFESUBST:#if:nocat|nocat=}}true.

<translate>

See also

</translate>

[[Category:Template documentation pages{{#translation:}}]] }}