https://nordiclarp.org/w/index.php?title=Template:Module_rating/doc&feed=atom&action=historyTemplate:Module rating/doc - Revision history2024-03-28T15:58:35ZRevision history for this page on the wikiMediaWiki 1.34.2https://nordiclarp.org/w/index.php?title=Template:Module_rating/doc&diff=9318&oldid=prevJohannes Axner: 1 revision imported2018-12-29T23:30:50Z<p>1 revision imported</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">Revision as of 23:30, 29 December 2018</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Johannes Axnerhttps://nordiclarp.org/w/index.php?title=Template:Module_rating/doc&diff=9317&oldid=preven>NicoScribe: Undid revision 864171991 by Tnkdwp1991 (talk) ?2018-10-17T14:28:19Z<p>Undid revision 864171991 by <a href="/wiki/Special:Contributions/Tnkdwp1991" title="Special:Contributions/Tnkdwp1991">Tnkdwp1991</a> (<a href="/w/index.php?title=User_talk:Tnkdwp1991&action=edit&redlink=1" class="new" title="User talk:Tnkdwp1991 (page does not exist)">talk</a>) ?</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --><br />
<br />
This template is used to rate [[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.<br />
<br />
== Usage ==<br />
<br />
Basic usage:<br />
<br />
{{pre|{{tlx|module rating|''rating''}}}}<br />
<br />
Without categories:<br />
<br />
{{pre|{{tlx|module rating|''rating''|3=nocat=true}}}}<br />
<br />
If {{tlx|Module rating}} is used outside the Module namespace, an error message is displayed instead and will be categorized under [[:Category:Pages with templates in the wrong namespace]].<br />
<br />
== Ratings ==<br />
<br />
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.<br />
<br />
{| class="wikitable"<br />
! Rating !! Aliases !! Result<br />
|-<br />
| <code>pre-alpha</code> || <code>prealpha</code><br/><code>pa</code> || {{module rating|pre-alpha|nocat=true|demospace=Module}}<br />
|-<br />
| <code>alpha</code> || <code>a</code> || {{module rating|alpha|nocat=true|demospace=module}}<br />
|-<br />
| <code>beta</code> || <code>b</code> || {{module rating|beta|nocat=true|demospace=module}}<br />
|-<br />
| <code>release</code> || <code>r</code><br/><code>general</code><br/><code>g</code> || {{module rating|release|nocat=true|demospace=module}}<br />
|-<br />
| <code>protected</code> || <code>protect</code><br/><code>p</code> || {{module rating|protected|nocat=true|demospace=module}}<br />
|-<br />
| <code>semiprotected</code> || <code>semiprotect</code><br/><code>semi</code> || {{module rating|semi|nocat=true|demospace=module}}<br />
|-<br />
| ''Anything else or if missing'' || || {{module rating|prdaskidkated|nocat=true|demospace=module}}<br />
|-<br />
|}<br />
<br />
==Template data==<br />
<br />
{{TemplateDataHeader}}<br />
<templatedata><br />
{<br />
"params": {<br />
"1": {<br />
"label": "Rating",<br />
"description": "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.",<br />
"example": "release",<br />
"type": "string",<br />
"required": true<br />
},<br />
"nocat": {<br />
"label": "Do not categorize",<br />
"description": "Set to true to disable categorization by rating. Normally leave blank.",<br />
"type": "boolean",<br />
"default": "Not set."<br />
},<br />
"demospace": {<br />
"label": "Fake namespace",<br />
"description": "Set to module to force template to display outside that namespace. Demonstration purposes only.",<br />
"example": "module",<br />
"type": "string",<br />
"default": "Not set."<br />
}<br />
},<br />
"description": "This template is used to rate 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.",<br />
"format": "inline"<br />
}<br />
</templatedata><br />
<br />
<br />
<br />
<br />
== Categories ==<br />
<br />
The template will put modules in one of the following categories, according to the rating specified:<br />
* [[:Category:Modules in pre-alpha development]]<br />
* [[:Category:Modules in alpha]]<br />
* [[:Category:Modules in beta]]<br />
* [[:Category:Modules for general use]]<br />
* [[:Category:Modules subject to page protection]]<br />
<br />
These categories are suppressed on pages ending with /doc. To suppress categories on all pages, you can use the code {{para|nocat|true}}.<br />
<br />
== See also ==<br />
<br />
* {{tl|module-rating categories}}<br />
* [[Wikipedia:Lua]]<br />
* [[Wikipedia:Lua requests]]<br />
* {{tl|Lua}}<br />
<br />
<includeonly>{{sandbox other||<br />
<!-- Categories go here, and interwikis go in Wikidata --><br />
[[Category:Template documentation]]<br />
<br />
}}</includeonly></div>en>NicoScribe