Template:Asbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
m (forgot one, pass {{{article}}})
meta>MSGJ
(template categorisation moved to /templatepage, add parameter for demo versions, whitespace and comment tweaks)
Line 6: Line 6:
  }}</td>
  }}</td>
}}
}}
<td>''This {{{subject|}}} {{{article|article}}} {{{qualifier|}}} is a [[Wikipedia:stub|stub]].  You can help Wikipedia by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].''{{#if:{{{note|}}}|<br /><span style="font-style: normal; font-size: smaller;">{{{note|}}} }}</td></tr></table><includeonly><!--
<td>''This {{{subject|}}} {{{article|article}}} {{{qualifier|}}} is a [[Wikipedia:stub|stub]].  You can help Wikipedia by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].''{{#if:{{{note|}}}|<br /><span style="font-style: normal; font-size: smaller;">{{{note|}}} }}</td></tr></table>{{#ifeq:{{NAMESPACE}}|{{ns:0}}<!--Article space-->|<!--


  *** Stub article category sorted by DEFAULTSORT or PAGENAME. ***
  *** Stub category ***
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--


-->{{#ifeq:{{NAMESPACE}}||[[Category:{{{category}}}]]}}<!--
  *** Optional second stub category ***
 
-->{{#if:{{{category1|}}}|[[Category:{{{category1}}}]]}}<!--
  *** Template category - sorted by " tempsort". ***
 
-->{{#ifeq:{{NAMESPACE}}|Template|{{#ifeq:{{{tempsort|}}}|no||[[Category:{{{category}}}| {{{tempsort|{{PAGENAME}}}}}]]}}|}}<!--
 
*** Is there a second stub category? ***
 
-->{{#if:{{{category1|}}}|<!--
 
  *** Stub article second category sorted by DEFAULTSORT or PAGENAME. ***
 
  -->{{#ifeq:{{NAMESPACE}}||[[Category:{{{category1}}}]]}}<!--
 
  *** Template second category - sorted by " tempsort1". ***
 
  -->{{#ifeq:{{NAMESPACE}}|Template|[[Category:{{{category1}}}| {{{tempsort1|{{PAGENAME}}}}}]]|}}<!--
 
-->}}<!--
 
*** Is there a third stub category? ***
 
-->{{#if:{{{category2|}}}|<!--
 
  *** Stub article third category sorted by DEFAULTSORT or PAGENAME. ***
 
  -->{{#ifeq:{{NAMESPACE}}||[[Category:{{{category2}}}]]}}<!--
 
  *** Template third category - sorted by " tempsort2". ***
 
  -->{{#ifeq:{{NAMESPACE}}|Template|[[Category:{{{category2}}}| {{{tempsort2|{{PAGENAME}}}}}]]|}}<!--


*** Optional third stub category ***
-->{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}<!--
-->}}<!--
-->}}<!--
*** exclude in print category ***
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!--


*** check for valid name parameter and transclude /templatepage on template page ***
*** check for valid name parameter and transclude /templatepage on template page ***
 
-->{{#if:{{{demo|}}}
-->{{#switch:{{FULLPAGENAME:{{{name|}}}}}
  |<!--Demonstration version-->
  |{{FULLPAGENAME}}={{Asbox/templatepage
  |{{#switch:{{FULLPAGENAME:{{{name|}}}}}
    |image    = {{{image|}}}
    |{{FULLPAGENAME}}=<!--Template page-->{{Asbox/templatepage
    |pix      = {{{pix|}}}
      |image    = {{{image|}}}
    |imagealt  = {{{imagealt|}}}
      |pix      = {{{pix|}}}
    |icon      = {{{icon|}}}
      |imagealt  = {{{imagealt|}}}
    |subject  = {{{subject|}}}
      |icon      = {{{icon|}}}
    |article  = {{{article|}}}
      |subject  = {{{subject|}}}
    |qualifier = {{{qualifier|}}}
      |article  = {{{article|}}}
    |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}}}}. If this is a demonstration please set {{para|demo|yes}}.
      }}-->[[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 ***
-->{{documentation}}
-->{{documentation}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 21:18, 3 September 2009