Template:Module rating: Difference between revisions
Template page
More actions
No edit summary |
+autopatroller |
||
| (19 intermediate revisions by 10 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{demospace|{{NAMESPACE}} }}}|{{ns:Module}}|{{ombox | <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 = [[File: | | sandbox | s = [[File:Sandbox.svg|40x40px|link=]] | ||
| beta | b = [[File:Greek lc beta.svg|40x40px|link=]] | | alpha | a = [[File:Greek lc alpha icon.svg|26x26px|link=|class=skin-invert]] | ||
| beta | b = [[File:Greek lc beta icon.svg|40x40px|link=|class=skin-invert]] | |||
| release | r | general | g = [[File:Green check.svg|40x40px|link=]] | | release | r | general | g = [[File:Green check.svg|40x40px|link=]] | ||
| protected | protect | p = [[File: | | 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|autopatroller=Extended-protection-shackle-account-pro-plus|sysop|#default=Full-protection-shackle-block}}.svg|40x40px|link=|alt=Protected]] | ||
| semiprotected | semiprotect | semi =[[File: | | 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 = {{Module rating/i18n|pre-alpha}} | | pre-alpha | prealpha | pa = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|pre-alpha}} | ||
| alpha | a = {{Module rating/i18n|alpha }} | | sandbox | s = Sandbox: {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|pre-alpha}} | ||
| beta | b = {{Module rating/i18n|beta}} | | alpha | a = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|alpha }} | ||
| release | r | general | g = {{Module rating/i18n|release }} | | beta | b = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|beta}} | ||
| protected | protect | p = {{Module rating/i18n|protected }} | | release | r | general | g = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|release }} | ||
| | | semiprotected | semiprotect | semi = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|semiprotected }} | ||
| protected | protect | p = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|protected }} | |||
| #default = {{error|message={{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|invalid-rating}}}} | |||
}} | |||
| style = background:var(--background-color-interactive-subtle,#f8f9fa);color:var(--color-base,#202122); | |||
}} <!-- End of ombox --> | }} <!-- End of ombox --> | ||
{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | ||
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | {{#switch: {{{1|}}} | | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | {{#switch: {{{1|}}} | ||
| pre-alpha | prealpha | pa = [[Category:Modules in pre-alpha development]] | | pre-alpha | prealpha | pa = [[Category:Modules in pre-alpha development]] | ||
| sandbox | s = [[Category:Scribunto module sandboxes]] | |||
| alpha | a = [[Category:Modules in alpha]] | | alpha | a = [[Category:Modules in alpha]] | ||
| beta | b = [[Category:Modules in beta]] | | beta | b = [[Category:Modules in beta]] | ||
| Line 29: | Line 44: | ||
| protected | protect | p = [[Category:Modules subject to page protection]] | | protected | protect | p = [[Category:Modules subject to page protection]] | ||
}} }} | }} }} | ||
}}|{{error| | }}|{{error|message={{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|error}} }} |demospace={{{demospace|}}}}}</includeonly><noinclude> | ||
{{module rating|release|nocat=true|demospace=Module}} | {{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> | ||