Difference between revisions of "Template:Asbox/templatepage"

From The Broken Dagger Wiki
Jump to: navigation, search
m (1 revision)
m
 
(One intermediate revision by one user not shown)
Line 5: Line 5:
 
-->{{#if:{{{category1|}}}|[[Category:{{{category1}}}| {{#if:{{{tempsort1|}}}|{{{tempsort1}}}| *{{PAGENAME}}}}]]}}<!--
 
-->{{#if:{{{category1|}}}|[[Category:{{{category1}}}| {{#if:{{{tempsort1|}}}|{{{tempsort1}}}| *{{PAGENAME}}}}]]}}<!--
 
-->{{#if:{{{category2|}}}|[[Category:{{{category2}}}| {{#if:{{{tempsort2|}}}|{{{tempsort2}}}| *{{PAGENAME}}}}]]}}<!--
 
-->{{#if:{{{category2|}}}|[[Category:{{{category2}}}| {{#if:{{{tempsort2|}}}|{{{tempsort2}}}| *{{PAGENAME}}}}]]}}<!--
 
*** exclude in print category ***
 
-->[[Category:Exclude in print]]<!--
 
 
*** Maintenance categories and warnings ***
 
-->{{#if:{{{icon|}}}
 
|<!--defined-->[[Category:Stub message templates using icon parameter]]
 
|<!--not defined -->{{#if:{{{image|}}}
 
  |<!--defined, no maintenance category required, check to see if image exists and add to attention category if it doesn't -->{{#ifexist:Media:{{#ifeq:{{str find|{{{image}}}|{{!}}}}|-1|{{{image}}}|{{str left|{{{image}}}|{{#expr:{{str find|{{{image}}}|{{!}}}} -1}} }} }}||[[Category:Stub message templates needing attention|B{{PAGENAME}}]]}}
 
  |<!--not defined -->[[Category:Stub message templates without images]]
 
}}
 
}}{{#if:{{{imagealt|}}}
 
|<!--defined-->[[Category:Stub message templates needing attention|I{{PAGENAME}}]]
 
|<!--not defined -->
 
}}{{#if:{{{category|}}}
 
|<!--defined-->
 
|<!--not defined -->{{ombox
 
  |type=content
 
  |text=The {{para|category}} parameter is not set. Please add an appropriate stub category.
 
}}[[Category:Stub message templates needing attention|C{{PAGENAME}}]]
 
}}{{#if:{{{subject|}}}{{{article|}}}{{{qualifier|}}}
 
|<!--defined -->
 
|<!--not defined -->{{ombox
 
  |type=content
 
  |text=This stub template contains no description! At least one of the parameters {{para|subject}}, {{para|article}} or {{para|qualifier}} must be defined.
 
}}[[Category:Stub message templates needing attention|D{{PAGENAME}}]]
 
}}<!--
 
 
-->{{#if:{{{category1|}}}
 
|<!--defined-->{{#ifeq:{{Str left|{{{category1}}}|{{#expr:{{Str len|{{{category1}}}}}-6}}}} stubs|{{{category1}}}||[[Category:Stub message templates needing attention|S{{PAGENAME}}]]}}
 
}}{{#if:{{{category2|}}}
 
|<!--defined-->{{#ifeq:{{Str left|{{{category2}}}|{{#expr:{{Str len|{{{category2}}}}}-6}}}} stubs|{{{category2}}}||[[Category:Stub message templates needing attention|S{{PAGENAME}}]]}}
 
}}<!--
 
 
-->{{#ifexpr:{{#if:{{{category|}}}|{{#ifexist:Category:{{{category}}}|0|1}}|0}}
 
+{{#if:{{{category1|}}}|{{#ifexist:Category:{{{category1}}}|0|1}}|0}}
 
+{{#if:{{{category2|}}}|{{#ifexist:Category:{{{category2}}}|0|1}}|0}}
 
|{{ombox
 
  |type=content
 
  |text=One or more of the stub categories defined in this template do not seem to exist! Please double-check the parameters {{para|category}}, {{para|category1}} and {{para|category2}}.
 
}}[[Category:Stub message templates needing attention|N{{PAGENAME}}]]
 
}}{{#ifexist:{{FULLPAGENAME}}/doc
 
|[[Category:Stub message templates with documentation subpages]]
 
}}<!-- Check for category names that don't end in "stubs" -->{{#if:{{{category|}}}
 
|<!--defined-->{{#ifeq:{{Str left|{{{category}}}|{{#expr:{{Str len|{{{category}}}}}-6}}}} stubs|{{{category}}}||[[Category:Stub message templates needing attention|S{{PAGENAME}}]]}}
 
}}</includeonly><!--
 
  
 
*** template-specific documentation ***
 
*** template-specific documentation ***

Latest revision as of 10:59, 13 July 2014