Template:Asbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
rmv redundant logic
meta>MSGJ
moving maintenance categories to /templatepage, pass icon and imagealt as well
Line 48: Line 48:
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!--
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!--


*** check for valid name parameter and transclude /templatepage on template page ***


--></includeonly><!--
-->{{#switch:{{FULLPAGENAME:{{{name|}}}}}
 
  |{{FULLPAGENAME}}={{Asbox/templatepage
*** transclude /templatepage on template page ***
     |image    = {{{image|}}}
 
     |pix      = {{{pix|}}}
-->{{#ifeq:{{FULLPAGENAME:{{{name|}}}}}|{{FULLPAGENAME}}
    |imagealt  = {{{imagealt|}}}
  |{{Asbox/templatepage
    |icon      = {{{icon|}}}
     |image    = {{{image|¬}}}
     |subject  = {{{subject|}}}
     |pix      = {{{pix|¬}}}
     |qualifier = {{{qualifier|}}}
     |subject  = {{{subject|¬}}}
     |category  = {{{category|}}}
     |qualifier = {{{qualifier|¬}}}
     |tempsort  = {{{tempsort|}}}
     |category  = {{{category|¬}}}
     |category1 = {{{category1|}}}
     |tempsort  = {{{tempsort|¬}}}
     |tempsort1 = {{{tempsort1|}}}
     |category1 = {{{category1|¬}}}
     |category2 = {{{category2|}}}
     |tempsort1 = {{{tempsort1|¬}}}
     |tempsort2 = {{{tempsort2|}}}
     |category2 = {{{category2|¬}}}
     |note      = {{{note|}}}
     |tempsort2 = {{{tempsort2|¬}}}
     |name      = {{{name|}}}
     |note      = {{{note|¬}}}
  }}
     |name      = {{{name}}}
  |{{#titleparts:{{FULLPAGENAME}}|1}}=<!--Is a subtemplate, e.g. a sandbox version. Don't display documentation.-->
  |#default={{#ifeq:{{NAMESPACE}}|Template
    |<!--{{ombox
      |type=content
      |text=It appears that the ''name'' parameter of this template is undefined or incorrect. If this is the stub template, please set {{para|name|{{FULLPAGENAME}}}}
    }}-->[[Category:Stub message boxes needing attention|{{#if:{{{name|}}}|E|W}}{{PAGENAME}}]]
   }}
   }}
}}<!--
}}<!--


--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Stub message boxes|{{PAGENAME}}]]<!--
--></includeonly><noinclude><!--
 
*** Maintenance categories ***
 
-->{{#if:{{{image|}}}
|<!-- uses image= , no maintenance category required -->|{{#if:{{{icon|}}}
|[[Category:Stub message boxes using icon parameter]]
|[[Category:Stub message boxes without images]]}}
}}{{#if:{{{imagealt|}}}
|[[Category:Stub message boxes using imagealt parameter]]
}}{{#if:{{{category|}}}|<!-- has category= -->
|[[Category:Stub message boxes without category parameter]]
}}{{#if:{{{name|}}}|<!-- has name=, make sure it matches -->{{#ifeq: {{{name}}} | {{FULLPAGENAME}} |<!-- name matches -->
|[[Category:Stub message boxes with erroneous name parameter]]}}
|[[Category:Stub message boxes without name parameter]]
}}{{#ifexist:{{FULLPAGENAME}}/doc|[[Category:Stub message boxes with documentation subpages]]
}}<!--
 
-->}}}}</includeonly><noinclude><!--


  *** Documentation ***
  *** Documentation ***

Revision as of 15:31, 25 August 2009