Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Module rating/doc: Difference between revisions

Template page
add i18n method
Prefix language interwiki links with w:
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{TemplateBox
{{TemplateBox
| useTemplateData = 1
   |1        =1
   |1        =1
   |1label  =rating
   |1label  =rating
   |1d-en    =One of pre-alpha, alpha, beta or release for quality, or one of protected or semiprotected, or an approved (see full docs) abbreviation for one of these.
   |1d-en    =One of pre-alpha, alpha, beta or release for quality, or one of protected or semiprotected, or an approved (see full docs) abbreviation for one of these.
   |1d-td    =One of pre-alpha, alpha, beta or release for quality, or one of protected or semiprotected, or an approved (see full docs) abbreviation for one of these.
   |1sv      = pre-alpha/alpha/beta/release/protected/semiprotected/sandbox
   |1aliases =<!-- List of aliases, separated by / (a slash) -->
   |1aliases =<!-- List of aliases, separated by / (a slash) -->
   |1type    =string
   |1type    =string
Line 16: Line 18:
   |2type    =boolean
   |2type    =boolean
   |2def    =
   |2def    =
  |2av      = true
   |2stat    = optional-
   |2stat    = optional-


Line 28: Line 31:


   |name              = Module rating
   |name              = Module rating
   |desc              = This template is used to rate [[:en:WP:LUA|Lua modules]] by quality. It is placed at the top of the module's /doc subpage. It produces a message informing users about the rating system, and it also places the module into a tracking category. There are five different ratings: '''pre-alpha''', '''alpha''', '''beta''', '''release''', and '''protected'''. There are also short alias codes for each of the ratings.
   |desc              = This template is used to rate [[:w:WP:LUA|Lua modules]] by quality. {{Nobold|It is placed at the top of the module's /doc subpage and the layout fits to {{T|Heavily used module}}. It produces a message informing users about the rating system, and it also places the module into a tracking category. There are seven different ratings: '''pre-alpha''', '''sandbox''', '''alpha''', '''beta''', '''release''', '''semiprotected''' and '''protected'''. There are also short alias codes for each of the ratings.}}
   |namespace          =module  
   |namespace          =module
   |usergroup          =all
   |usergroup          =all
   |placement          = top  
   |placement          = top  
Line 43: Line 46:
   |example-value      =
   |example-value      =
   |mustbesubst        =
   |mustbesubst        =
   |relieson          =
   |relieson          ={{tl|Protection banner}}
   |usage-notes        =
   |usage-notes        =
   |shorthand          =
   |shorthand          =
   |setscats          =
   |setscats          =
   |seealso            ={{tl|Lua}}
   |seealso            ={{tl|Lua}}
{{tl|Copied from Wikipedia}}
   |type              =
   |type              =
   |i18n-desc          =
   |i18n-desc          =
Line 62: Line 66:
|-
|-
| <code>pre-alpha</code> || <code>prealpha</code><br/><code>pa</code> || {{module rating|pre-alpha|nocat=true|demospace=Module}}
| <code>pre-alpha</code> || <code>prealpha</code><br/><code>pa</code> || {{module rating|pre-alpha|nocat=true|demospace=Module}}
|-
| <code>sandbox</code> || <code>s</code> || {{module rating|sandbox|nocat=true|demospace=Module}}
|-
|-
| <code>alpha</code> || <code>a</code> || {{module rating|alpha|nocat=true|demospace=Module}}
| <code>alpha</code> || <code>a</code> || {{module rating|alpha|nocat=true|demospace=Module}}
Line 68: Line 74:
|-
|-
| <code>release</code> || <code>r</code><br/><code>general</code><br/><code>g</code> || {{module rating|release|nocat=true|demospace=Module}}
| <code>release</code> || <code>r</code><br/><code>general</code><br/><code>g</code> || {{module rating|release|nocat=true|demospace=Module}}
|-
| <code>semiprotected</code> || <code>semiprotect</code><br/><code>semi</code> || {{module rating|semi|nocat=true|demospace=Module}}
|-
|-
| <code>protected</code> || <code>protect</code><br/><code>p</code> || {{module rating|protected|nocat=true|demospace=Module}}
| <code>protected</code> || <code>protect</code><br/><code>p</code> || {{module rating|protected|nocat=true|demospace=Module}}
|-
| <code>semiprotected</code> || <code>semiprotect</code><br/><code>semi</code> || {{module rating|semi|nocat=true|demospace=Module}}
|-
|-
| ''Anything else or if missing'' ||  || {{module rating|prdaskidkated|nocat=true|demospace=Module}}
| ''Anything else or if missing'' ||  || {{module rating|prdaskidkated|nocat=true|demospace=Module}}
Line 81: Line 87:
The template will put modules in one of the following categories, according to the rating specified:
The template will put modules in one of the following categories, according to the rating specified:
* [[:Category:Modules in pre-alpha development]]
* [[:Category:Modules in pre-alpha development]]
* [[:Category:Scribunto module sandboxes]]
* [[:Category:Modules in alpha]]
* [[:Category:Modules in alpha]]
* [[:Category:Modules in beta]]
* [[:Category:Modules in beta]]

Latest revision as of 09:18, 12 August 2026

This template is used to rate Lua modules by quality. It is placed at the top of the module's /doc subpage and the layout fits to {{Heavily used module}}. It produces a message informing users about the rating system, and it also places the module into a tracking category. There are seven different ratings: pre-alpha, sandbox, alpha, beta, release, semiprotected and protected. There are also short alias codes for each of the ratings.

Usage

{{Module rating |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1ratingOne of pre-alpha, alpha, beta or release for quality, or one of protected or semiprotected, or an approved (see full docs) abbreviation for one of these.emptyrequired
nocatDo not categorizeSet to true to disable categorization by rating. Normally leave blank.emptyoptional
demospaceFake namespaceSet to module to force template to display outside that namespace. Demonstration purposes only.emptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

This template is used to rate [[:w:WP:LUA|Lua modules]] by quality. <span style="font-weight:normal">It is placed at the top of the module's /doc subpage and the layout fits to [[:Template:Heavily used module|&#123;&#123;Heavily used module&#125;&#125;]]. It produces a message informing users about the rating system, and it also places the module into a tracking category. There are seven different ratings: '''pre-alpha''', '''sandbox''', '''alpha''', '''beta''', '''release''', '''semiprotected''' and '''protected'''. There are also short alias codes for each of the ratings.</span>

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
rating1

One of pre-alpha, alpha, beta or release for quality, or one of protected or semiprotected, or an approved (see full docs) abbreviation for one of these.

Suggested values
pre-alpha alpha beta release protected semiprotected sandbox
Stringrequired
Fake namespacedemospace

Set to module to force template to display outside that namespace. Demonstration purposes only.

Unknownoptional
Do not categorizenocat

Set to true to disable categorization by rating. Normally leave blank.

Auto value
true
Booleanoptional

Additional information

The template is intended to be used in the following namespaces: unknown

The template is intended to be used by the following user groups: all users

Placement: At the top of the page

Relies on:
{{Protection banner}}

See also

Localization

Deutsch  English  日本語  русский  العربية  中文  français  magyar  +/−

This template makes use of {{Autotranslate}} and the translate extension.


Ratings

Rating Aliases Result
pre-alpha prealpha
pa
sandbox s
alpha a
beta b
release r
general
g
semiprotected semiprotect
semi
protected protect
p
Anything else or if missing

Categories

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 |nocat=true.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.