Template:Template rating: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
refactor
Line 1: Line 1:
<includeonly>{{#switch: {{{rating|draft}}}
<includeonly>{{#switch: {{{rating|draft}}}-{{lc: {{ARTICLESPACE}}}}


| draft = {{Mbox
| draft-template = {{Mbox
   | icon = Icon-Draft.png
   | icon = Icon-Draft.png
   | icon size = 60px
   | icon size = 60px
   | type = content
   | type = content
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a draft module/template.''' See its main page for more details. | '''{{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{template_name|{{PAGENAME}}}}}''' is a '''draft {{#ifeq: {{{namespace|{{ARTICLESPACE}}}}} | Module | module | template}}'''. It is incomplete and may not necessarily be in active development. In the meantime, editors are advised to not use this {{#ifeq: {{{namespace|{{ARTICLESPACE}}}}} | Module | module | template}} across the wiki, except for testing.
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a draft template.''' | '''Template:{{{template_name|{{PAGENAME}}}}}''' is a '''draft template'''. }} It is incomplete and may not necessarily be in active development. In the meantime, editors are advised to not use this template across the Xenharmonic Wiki, apart from testing.  
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
}}
{{Category handler | Draft templates | debug = {{{debug|}}}}}
{{Category handler
| Draft {{#ifeq: {{{namespace|{{ARTICLESPACE}}}}} | Module | module | template}}s
| debug = {{{debug|}}}
}}


| ready = {{Mbox
| ready-template = {{Mbox
   | icon = Icon-Ready.png
   | icon = Icon-Ready.png
   | icon size = 60px
   | icon size = 60px
   | type = ready
   | type = ready
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a draft module/template.''' See its main page for more details. | '''{{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{template_name|{{PAGENAME}}}}}''' is a {{#ifeq: {{{namespace|{{ARTICLESPACE}}}}} | Module | module | template}} that is '''ready to be used''' on the wiki. This message indicates that a {{#ifeq: {{{namespace|{{ARTICLESPACE}}}}} | Module | module | template}} is ready for use, or has recently been repaired. This message may be removed once the {{#ifeq: {{{namespace|{{ARTICLESPACE}}}}} | Module | module | template}} has been used on several pages or once it is verified to work as intended.
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a ready template.''' | '''Template:{{{template_name|{{PAGENAME}}}}}''' is '''ready for use'''. }} This message indicates that a template is ready for use, or has recently been repaired. This message may be removed once this template has been used on several pages or once it is verified to work as intended.
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
}}


| broken = {{Mbox
| broken-template = {{Mbox
   | icon = Icon-Cleanup.png
   | icon = Icon-Cleanup.png
   | icon size = 60px
   | icon size = 60px
   | type = content
   | type = content
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a draft module/template.''' See its main page for more details. | '''{{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{template_name|{{PAGENAME}}}}}''' is currently '''broken'''. If possible, editors are encouraged to improve it or nominate it for deletion or deprecation if it cannot be fixed. In the meantime, editors are advised to not use this {{#ifeq: {{{namespace|{{ARTICLESPACE}}}}} | Module | module | template}} across the wiki, except for testing.
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a broken template.''' | '''Template:{{{template_name|{{PAGENAME}}}}}''' is currently '''broken'''. }} If possible, editors are encouraged to improve it or nominate it for deletion or deprecation if it cannot be fixed. In the meantime, editors should avoid using this template across the Xenharmonic Wiki, except for testing.
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
}}
{{Category handler | Broken templates | debug = {{{debug|}}}}}
{{Category handler
| Broken {{#ifeq: {{{namespace|{{ARTICLESPACE}}}}} | Module | module | template}}s
| debug = {{{debug|}}}
}}


| deprecated = {{Mbox
| deprecated-template = {{Mbox
   | icon = Icon-Deprecated.png
   | icon = Icon-Deprecated.png
   | icon size = 60px
   | icon size = 60px
   | type = delete
   | type = delete
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a draft module/template.''' See its main page for more details. | '''{{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{template_name|{{PAGENAME}}}}}''' is '''deprecated'''. Further use of this {{#ifeq: {{{namespace|{{ARTICLESPACE}}}}} | Module | module | template}} is not advised. {{#ifeq: {{yesno|{{{archived|false}}}}} | true | This page is kept for historical reasons and '''should not be deleted'''. | This page is considered a candidate for '''deletion'''.}}
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a deprecated template.''' | '''Template:{{{template_name|{{PAGENAME}}}}}''' is '''deprecated'''. }} Further use of this template is not advised. {{#ifeq: {{yesno|{{{delete|false}}}}} | true | This template is a '''candidate for deletion'''. | This template is kept for historical purposes and '''should not be deleted'''. }}
{{#if: {{{replacement|}}} | Editors are advised to use its replacement: [[{{{namespace|{{ARTICLESPACE}}}}}:{{{replacement}}}]] | No replacement exists for {{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{template_name|{{PAGENAME}}}}}.
{{#if: {{{replacement|}}} | Editors are advised to use its replacement: [[Template:{{{replacement}}}]] | No replacement exists for Template:{{{template_name|{{PAGENAME}}}}}.}}
 
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
{{Category handler | Deprecated templates | debug = {{{debug|}}}}}


| draft-module = {{Mbox
  | icon = Icon-Draft.png
  | icon size = 60px
  | type = content
  | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a draft module.''' | '''Module:{{{template_name|{{PAGENAME}}}}}''' is a '''draft module'''. }} It is incomplete and may not necessarily be in active development. In the meantime, editors are advised to not use this module across the Xenharmonic Wiki, apart from testing.
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
{{Category handler
{{Category handler | Draft modules | debug = {{{debug|}}}}}
| Deprecated {{#ifeq: {{{namespace|{{ARTICLESPACE}}}}} | Module | module | template}}s
 
| debug = {{{debug|}}}
| ready-module = {{Mbox
  | icon = Icon-Ready.png
  | icon size = 60px
  | type = ready
  | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a ready module.''' | '''Module:{{{template_name|{{PAGENAME}}}}}''' is '''ready for use'''. }} This message indicates that a module is ready for use, or has recently been repaired. This message may be removed once this module has been used on several pages or once it is verified to work as intended.
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
| broken-module = {{Mbox
  | icon = Icon-Cleanup.png
  | icon size = 60px
  | type = content
  | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a broken module.''' | '''Module:{{{template_name|{{PAGENAME}}}}}''' is currently '''broken'''. }} If possible, editors are encouraged to improve it or nominate it for deletion or deprecation if it cannot be fixed. In the meantime, editors should avoid using this module across the Xenharmonic Wiki, except for testing.
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
{{Category handler | Broken modules | debug = {{{debug|}}}}}
| deprecated-module = {{Mbox
  | icon = Icon-Deprecated.png
  | icon size = 60px
  | type = delete
  | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a deprecated module.''' | '''Module:{{{template_name|{{PAGENAME}}}}}''' is '''deprecated'''. }} Further use of this module is not advised. {{#ifeq: {{yesno|{{{delete|false}}}}} | true | This module is a '''candidate for deletion'''. | This module is kept for historical purposes and '''should not be deleted'''. }}
{{#if: {{{replacement|}}} | Editors are advised to use its replacement: [[Module:{{{replacement}}}]] | No replacement exists for Module:{{{template_name|{{PAGENAME}}}}}.}}
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
{{Category handler | Deprecated modules | debug = {{{debug|}}}}}


| #default = {{Mbox
| #default = {{Mbox
Line 56: Line 79:
   | icon size = 60px
   | icon size = 60px
   | type = aaa
   | type = aaa
   | text = No messagebox exists for this template rating: '''{{{rating}}}'''.
   | text = No messagebox exists for this rating/namespace: '''{{{rating}}}-{{lc: {{NAMESPACE}}}}'''.
}}
}}