Difference between revisions of "Template:Asbox/sandbox"

From blackwiki
Jump to navigation Jump to search
blackwiki>MSGJ
(spacing)
blackwiki>MSGJ
(add demo parameter)
Line 22: Line 22:
  
 
*** check for valid name parameter and transclude /templatepage on template page ***
 
*** check for valid name parameter and transclude /templatepage on template page ***
-->{{#switch:{{FULLPAGENAME:{{{name|}}}}}
+
-->{{#if:{{{demo|}}}
  |{{FULLPAGENAME}}={{Asbox/templatepage
+
  |<!--Demonstration version-->
    |image    = {{{image|}}}
+
  |{{#switch:{{FULLPAGENAME:{{{name|}}}}}
    |pix      = {{{pix|}}}
+
    |{{FULLPAGENAME}}=<!--Template page-->{{Asbox/templatepage
    |imagealt  = {{{imagealt|}}}
+
      |image    = {{{image|}}}
    |icon      = {{{icon|}}}
+
      |pix      = {{{pix|}}}
    |subject  = {{{subject|}}}
+
      |imagealt  = {{{imagealt|}}}
    |article  = {{{article|}}}
+
      |icon      = {{{icon|}}}
    |qualifier = {{{qualifier|}}}
+
      |subject  = {{{subject|}}}
    |category  = {{{category|}}}
+
      |article  = {{{article|}}}
    |tempsort  = {{{tempsort|}}}
+
      |qualifier = {{{qualifier|}}}
    |category1 = {{{category1|}}}
+
      |category  = {{{category|}}}
    |tempsort1 = {{{tempsort1|}}}
+
      |tempsort  = {{{tempsort|}}}
    |category2 = {{{category2|}}}
+
      |category1 = {{{category1|}}}
    |tempsort2 = {{{tempsort2|}}}
+
      |tempsort1 = {{{tempsort1|}}}
    |note      = {{{note|}}}
+
      |category2 = {{{category2|}}}
    |name      = {{{name|}}}
+
      |tempsort2 = {{{tempsort2|}}}
 +
      |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}}]]
 +
    }}
 
   }}
 
   }}
  |{{#titleparts:{{FULLPAGENAME}}|1}}=<!--Is a subtemplate, e.g. a sandbox version. Don't display documentation.-->
+
}}<noinclude><!--
  |#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><noinclude><!--
 
  
 
  *** Documentation ***
 
  *** Documentation ***

Revision as of 11:54, 3 September 2009