模板:Module rating

来自广财百科
L>Shirayuki2020年10月4日 (日) 10:41的版本 (translation tweaks)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

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

 {{#if:module
 | module    
 | {{#ifeq:模板|模板:Ns:Module
   | module
   | other
   }}
 }}

| module = <templatestyles src="Template:Ombox/styles.css" /> {{#invoke:Message box|ombox}} | other | #default = 模板:Error }} | #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Module rating|noshift=1|uselang=⧼lang⧽}}

}} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#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> 模板:Pre

<translate> Without categories:</translate> 模板:Pre

If {{-{}-{{#if: |subst:}}Module rating{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}} is used outside the Module namespace, an error message is shown: {{#switch:<translate></translate> | = {{#switch:

 {{#if:
 |     
 | {{#ifeq:模板|模板:Ns:Module
   | module
   | other
   }}
 }}

| module = <templatestyles src="Template:Ombox/styles.css" /> {{#invoke:Message box|ombox}} | other | #default = 模板:Error }} | #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Module rating|noshift=1|uselang=⧼lang⧽}}

}}

<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.

<translate> Rating</translate> <translate> Aliases</translate> <translate> Result</translate>
pre-alpha prealpha
pa
{{#switch:<translate></translate> =

{{#switch:

 {{#if:Module
module 模板:Ns:Module module other
   }}
 }}
module = <templatestyles src="Template:Ombox/styles.css" />

{{#invoke:Message box|ombox}}

other #default = 模板:Error

}}

#default=
 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Module rating|noshift=1|uselang=⧼lang⧽}}

}}

alpha a {{#switch:<translate></translate> =

{{#switch:

 {{#if:module
module 模板:Ns:Module module other
   }}
 }}
module = <templatestyles src="Template:Ombox/styles.css" />

{{#invoke:Message box|ombox}}

other #default = 模板:Error

}}

#default=
 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Module rating|noshift=1|uselang=⧼lang⧽}}

}}

beta b {{#switch:<translate></translate> =

{{#switch:

 {{#if:module
module 模板:Ns:Module module other
   }}
 }}
module = <templatestyles src="Template:Ombox/styles.css" />

{{#invoke:Message box|ombox}}

other #default = 模板:Error

}}

#default=
 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Module rating|noshift=1|uselang=⧼lang⧽}}

}}

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

{{#switch:

 {{#if:module
module 模板:Ns:Module module other
   }}
 }}
module = <templatestyles src="Template:Ombox/styles.css" />

{{#invoke:Message box|ombox}}

other #default = 模板:Error

}}

#default=
 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Module rating|noshift=1|uselang=⧼lang⧽}}

}}

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

{{#switch:

 {{#if:module
module 模板:Ns:Module module other
   }}
 }}
module = <templatestyles src="Template:Ombox/styles.css" />

{{#invoke:Message box|ombox}}

other #default = 模板:Error

}}

#default=
 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Module rating|noshift=1|uselang=⧼lang⧽}}

}}

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

{{#switch:

 {{#if:module
module 模板:Ns:Module module other
   }}
 }}
module = <templatestyles src="Template:Ombox/styles.css" />

{{#invoke:Message box|ombox}}

other #default = 模板:Error

}}

#default=
 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Module rating|noshift=1|uselang=⧼lang⧽}}

}}

<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 |{{#if:nocat|nocat=}}true.

<translate>

See also

</translate>

  • {{[[{{#switch:
|#default = Module-rating categories 
| = 
   {{#ifeq:  | 
     | Template:module-rating categories            
     | Module-rating categories      
   }}

}}|module-rating categories]]{{#if:||{{{arg}}}}}}}

|#default = Lua 
| = 
   {{#ifeq:  | 
     | Template:Lua            
     | Lua      
   }}

}}|Lua]]{{#if:||{{{arg}}}}}}}| [[Category:Template documentation pages{{#translation:}}]] }}