Template:Module rating: Difference between revisions
From Chalo Chatu, Zambia online encyclopedia
enwiki>Kaldari (all software has bugs) |
Commons>ExE Boss (Add error message when module rating is invalid or not specified (match mw:Template:Module rating)) |
||
Line 1: | Line 1: | ||
<includeonly>{{Module | <includeonly>{{#ifeq:{{{demospace|{{NAMESPACE}} }}}|{{ns:Module}}|{{ombox | ||
| type = notice | | lang = {{Fallback|Module rating/i18n}} | ||
| type = {{#switch: {{{1|}}} | |||
| pre-alpha | prealpha | pa | |||
| sandbox | s | |||
| alpha | a | |||
| beta | b | |||
| release | r | general | g | |||
| semiprotected | semiprotect | semi | |||
| protected | protect | p = notice | |||
| #default = serious | |||
}} | |||
| image = {{#switch: {{{1|}}} | | image = {{#switch: {{{1|}}} | ||
| pre-alpha | prealpha | pa = [[File:Ambox warning blue construction.svg|40x40px|link=| | | pre-alpha | prealpha | pa = [[File:Ambox warning blue construction.svg|40x40px|link=]] | ||
| alpha | a | | sandbox | s = [[File:Sandbox.svg|40x40px|link=]] | ||
| beta | b | | alpha | a = [[File:Alpha lowercase.svg|26x26px|link=]] | ||
| release | r | general | g = [[File:Green check.svg|40x40px|link= | | beta | b = [[File:Greek lc beta.svg|40x40px|link=]] | ||
| protected | protect | p | | release | r | general | g = [[File:Green check.svg|40x40px|link=]] | ||
| semiprotected | semiprotect | semi =[[File:Semi-protection-shackle.svg|40x40px|link=| | | protected | protect | p = [[File:{{#switch:{{#invoke:Effective protection level|edit|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{FULLBASEPAGENAME}}|{{FULLPAGENAME}}}}}}|autoconfirmed=Semi-protection-shackle|accountcreator|templateeditor=Template-protection-shackle-brackets 2|sysop|#default=Full-protection-shackle-block}}.svg|40x40px|link=|alt=Protected]] | ||
| semiprotected | semiprotect | semi = [[File:Semi-protection-shackle.svg|40x40px|link=]] | |||
| #default = [[File:Ambox warning.svg|40x40px|link=]] | |||
}} | }} | ||
| textstyle = | | textstyle = | ||
| text = {{#switch: {{{1|}}} | | text = {{#switch: {{{1|}}} | ||
| pre-alpha | prealpha | pa = {{autotranslate|base=Module rating/i18n|pre-alpha}} | |||
| sandbox | s = Sandbox: {{autotranslate|base=Module rating/i18n|pre-alpha}} | |||
| alpha | a = {{autotranslate|base=Module rating/i18n|alpha }} | |||
| beta | b = {{autotranslate|base=Module rating/i18n|beta}} | |||
| release | r | general | g = {{autotranslate|base=Module rating/i18n|release }} | |||
| semiprotected | semiprotect | semi = {{autotranslate|base=Module rating/i18n|semiprotected }} | |||
| protected | protect | p = {{autotranslate|base=Module rating/i18n|protected }} | |||
| #default = {{error|message={{autotranslate|base=Module rating/i18n|invalid-rating}}}} | |||
}} | |||
| style = {{#switch: {{{1|}}} | |||
| release | r | general | g | |||
| semiprotected | semiprotect | semi | |||
| protected | protect | p = background:#f9fff3;<!-- ;border:2px solid #8F8 --> | |||
}} | }} | ||
}}|{{ | }} <!-- End of ombox --> | ||
{{module rating|release|nocat=true|demospace= | {{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | ||
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | {{#switch: {{{1|}}} | |||
| pre-alpha | prealpha | pa = [[Category:Modules in pre-alpha development]] | |||
| sandbox | s = [[Category:Scribunto module sandboxes]] | |||
| alpha | a = [[Category:Modules in alpha]] | |||
| beta | b = [[Category:Modules in beta]] | |||
| release | r | general | g = [[Category:Modules for general use]] | |||
| semiprotected | semiprotect | semi | |||
| protected | protect | p = [[Category:Modules subject to page protection]] | |||
}} }} | |||
}}|{{error|message={{autotranslate|base=Module rating/i18n|error}} }} |demospace={{{demospace|}}}}}</includeonly><noinclude> | |||
{{module rating|release|nocat=true|demospace=Module}} | |||
{{documentation}} | {{documentation}} | ||
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata. --> | <!-- Categories go on the /doc subpage, and interwikis go in Wikidata. --> | ||
</noinclude> | </noinclude> |
Revision as of 05:13, 6 August 2021
Lua error in mw.lua at line 316: frame:expandTemplate: a title is required. |
<templatestyles src="Module:Documentation/styles.css"></templatestyles>
Template documentation[create]