Template:Template rating: Difference between revisions

Ganaram inukshuk (talk | contribs)
bugfix; code was also refactored again
Ganaram inukshuk (talk | contribs)
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{rating|draft}}}-{{lc: {{ARTICLESPACE}}}}
<includeonly>{{#switch: {{{rating|draft}}}-{{lc: {{{namespace|{{ARTICLESPACE}}}}}}}


| draft-template | draft-module = {{Mbox
| draft-template | draft-module = {{Mbox
Line 5: Line 5:
   | icon size = 60px
   | icon size = 60px
   | type = content
   | type = content
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a draft {{lc: {{ARTICLESPACE}}}}.''' | '''{{ucfirst: {{ARTICLESPACE}}}}:{{{1|{{PAGENAME}}}}}''' is a '''draft {{lc: {{ARTICLESPACE}}}}'''. }} It is incomplete and may not necessarily be in active development. In the meantime, editors are advised to not use this {{lc: {{ARTICLESPACE}}}} across the Xenharmonic Wiki, apart from testing.  
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a draft {{lc: {{{namespace|{{ARTICLESPACE}}}}}}}.''' | '''{{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{pagename|{{PAGENAME}}}}}''' is a '''draft {{lc: {{{namespace|{{ARTICLESPACE}}}}}}}'''. }} It is incomplete and may not be in active development. If possible, editors are encouraged to help with its development. In the meantime, editors should avoid using this {{lc: {{{namespace|{{ARTICLESPACE}}}}}}} across the Xenharmonic Wiki, except for testing.
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
{{Category handler | Draft {{lc: {{ARTICLESPACE}}}}s | debug = {{{debug|}}}}}
{{Category handler | Draft {{lc: {{{namespace|{{ARTICLESPACE}}}}}}}s | debug = {{{debug|}}}}}


| ready-template | ready-module = {{Mbox
| ready-template | ready-module = {{Mbox
Line 14: Line 14:
   | icon size = 60px
   | icon size = 60px
   | type = ready
   | type = ready
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a ready {{lc: {{ARTICLESPACE}}}}.''' | '''{{ucfirst: {{ARTICLESPACE}}}}:{{{1|{{PAGENAME}}}}}''' is '''ready for use'''. }} This message indicates that a {{lc: {{ARTICLESPACE}}}} is ready for use, or has recently been repaired. This message may be removed once this {{lc: {{ARTICLESPACE}}}} 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 {{lc: {{{namespace|{{ARTICLESPACE}}}}}}}.''' | '''{{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{pagename|{{PAGENAME}}}}}''' is '''ready for use'''. }} This message indicates that a {{lc: {{{namespace|{{ARTICLESPACE}}}}}}} is ready for use, or has recently been repaired. This message may be removed once this {{lc: {{{namespace|{{ARTICLESPACE}}}}}}} has been used on several pages or once it is verified to work as intended.
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
Line 22: Line 22:
   | icon size = 60px
   | icon size = 60px
   | type = content
   | type = content
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a broken {{lc: {{ARTICLESPACE}}}}.''' | '''{{ucfirst: {{ARTICLESPACE}}}}:{{{1|{{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 {{lc: {{ARTICLESPACE}}}} across the Xenharmonic Wiki, except for testing.
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a broken {{lc: {{{namespace|{{ARTICLESPACE}}}}}}}.''' | '''{{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{pagename|{{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 {{lc: {{{namespace|{{ARTICLESPACE}}}}}}} across the Xenharmonic Wiki, except for testing.
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
{{Category handler | Broken {{lc: {{ARTICLESPACE}}}}s | debug = {{{debug|}}}}}
{{Category handler | Broken {{lc: {{{namespace|{{ARTICLESPACE}}}}}}}s | debug = {{{debug|}}}}}
 
| replaced-template | replaced-module = {{Mbox
  | icon = Icon-Deprecated-with-Replacement.png
  | icon size = 60px
  | type = delete
  | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a deprecated {{lc: {{{namespace|{{ARTICLESPACE}}}}}}}''', which | '''{{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{pagename|{{PAGENAME}}}}}''' is '''deprecated''' and }} has been '''replaced''' by [[{{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{replacement}}}]]. Further use of this {{lc: {{{namespace|{{ARTICLESPACE}}}}}}} is not advised. {{#ifeq: {{yesno|{{{delete|false}}}}} | true | This {{lc: {{{namespace|{{ARTICLESPACE}}}}}}} is a '''candidate for deletion'''. | This {{lc: {{{namespace|{{ARTICLESPACE}}}}}}} is kept for historical purposes and '''should not be deleted'''. }}
 
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
{{Category handler | Deprecated {{lc: {{{namespace|{{ARTICLESPACE}}}}}}}s | debug = {{{debug|}}}}}


| deprecated-template | deprecated-module = {{Mbox
| deprecated-template | deprecated-module = {{Mbox
Line 31: Line 41:
   | icon size = 60px
   | icon size = 60px
   | type = delete
   | type = delete
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a deprecated {{lc: {{ARTICLESPACE}}}}.''' | '''{{ucfirst: {{ARTICLESPACE}}}}:{{{1|{{PAGENAME}}}}}''' is '''deprecated'''. }} Further use of this {{lc: {{ARTICLESPACE}}}} is not advised. {{#ifeq: {{yesno|{{{delete|false}}}}} | true | This {{lc: {{ARTICLESPACE}}}} is a '''candidate for deletion'''. | This {{lc: {{ARTICLESPACE}}}} is kept for historical purposes and '''should not be deleted'''. }}
   | text = {{#ifeq: {{SUBPAGENAME}} | doc | '''This documentation is for a deprecated {{lc: {{{namespace|{{ARTICLESPACE}}}}}}}''', which | '''{{ucfirst: {{{namespace|{{ARTICLESPACE}}}}}}}:{{{pagename|{{PAGENAME}}}}}''' is '''deprecated''' and }} has no replacement. Further use of this {{lc: {{{namespace|{{ARTICLESPACE}}}}}}} is not advised. {{#ifeq: {{yesno|{{{delete|false}}}}} | true | This {{lc: {{{namespace|{{ARTICLESPACE}}}}}}} is a '''candidate for deletion'''. | This {{lc: {{{namespace|{{ARTICLESPACE}}}}}}} is kept for historical purposes and '''should not be deleted'''. }}
{{#if: {{{replacement|}}} | Editors are advised to use its replacement: [[{{ucfirst: {{ARTICLESPACE}}}}:{{{replacement}}}]] | No replacement exists for {{ucfirst: {{ARTICLESPACE}}}}:{{{1|{{PAGENAME}}}}}.}}


{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
{{#if: {{{details|}}} | '''Details:''' {{{details}}}}}
}}
}}
{{Category handler | Deprecated {{lc: {{ARTICLESPACE}}}}s | debug = {{{debug|}}}}}
{{Category handler | Deprecated {{lc: {{{namespace|{{ARTICLESPACE}}}}}}}s | debug = {{{debug|}}}}}




Line 43: Line 52:
   | icon size = 60px
   | icon size = 60px
   | type = aaa
   | type = aaa
   | text = No messagebox exists for this rating/namespace: '''{{{rating}}}-{{lc: {{NAMESPACE}}}}'''.
   | text = This template has an unrecognized rating or is in the incorrect namespace.
 
'''Details:''' Valid ratings are ''draft'', ''ready'', ''broken'', ''replaced'', and ''deprecated''. Valid namespaces are ''Module'' and ''Template''. This template's rating is '''{{{rating}}}''' and is currently in the '''{{{namespace}}}''' namespace.
}}
}}


Line 49: Line 60:
{{documentation}}
{{documentation}}


[[Category:Templates]]
[[Category:Templates]][[Category:Message boxes]]
</noinclude>
</noinclude>