Difference between revisions of "Template:Asbox"

From The Broken Dagger Wiki
Jump to: navigation, search
(Implement round of changes.)
m
 
(56 intermediate revisions by 17 users not shown)
Line 1: Line 1:
<div class="boilerplate metadata" id="stub"><table cellpadding="0" cellspacing="0" style="background-color: transparent;"><tr ><td>  {{#if:{{{icon|}}}|{{{{{icon}}}}}&nbsp;|{{#if:{{{image|}}}|[[Image:{{{image}}}|{{#if:{{{pix|}}}|{{{pix}}}|40x30}}px]]&nbsp;|}}}}</td ><td >''This {{{subject|}}} article {{{qualifier|}}} is a [[Wikipedia:stub|stub]].  You can help by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it]''.<br><small>{{{note|}}}</small></td ></tr ></table ></div ><includeonly><!--
+
<table class="metadata plainlinks stub" width="75%" cellpadding="10" style="border:1px solid  #52719a; border-collapse:collapse; background: transparent; margin: 1em auto 1em auto;"  role="presentation"><tr>
 +
{{#if:{{{icon|}}}{{{image|}}}
 +
|<td>{{#if:{{{icon|}}}
 +
  |{{{icon}}}
 +
  |[[File:{{{image}}}|{{#if:{{{pix|}}}|{{{pix}}}|40x30}}px|alt={{{imagealt|Stub icon}}}]]
 +
}}</td>
 +
}}
 +
<td>''This {{{subject|}}} {{{article|article}}} {{{qualifier|}}} is a [[BDWiki:Stub|stub]].  You can help BDWiki by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].''{{#if:{{{name|}}}
 +
|{{navbar|{{{name}}}|mini=yes|style=position: absolute; right: 15px; display: none;}}
 +
}}{{#if:{{{note|}}}
 +
|<br /><span style="font-style: normal; font-size: smaller;">{{{note}}}
 +
}}</td>
 +
</tr></table>{{#ifeq:{{NAMESPACE}}|{{ns:0}}<!--Article space-->|<!--
 +
*** A general category for tracking all stubs
  
*** Stub article category sorted by DEFAULTSORT or PAGENAME. ***
+
--->[[Category:Stubs]]<!---
  
-->{{#ifeq:{{NAMESPACE}}||[[Category:{{{category}}}]]}}<!--
 
  
  *** Template category - sorted by " tempsort". ***
+
  *** Stub category ***
 +
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
  
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:{{{category}}}| {{{tempsort|}}}]]|}}<!--
+
  *** Optional second stub category ***
 
+
-->{{#if:{{{category1|}}}|[[Category:{{{category1}}}]]}}<!--
  *** 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|}}}]]|}}<!--
+
  
 +
*** Optional third stub category ***
 +
-->{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}<!--
 
-->}}<!--
 
-->}}<!--
  
*** Whatlinkshere marker ***
+
*** check for valid name parameter and transclude /templatepage on template page ***
 
+
-->{{#if:{{{demo|<noinclude>yes</noinclude>}}}
-->{{#ifeq:{{NAMESPACE}}|Template|[[Template:Asbox/whatlinkshere|<s/>]]|}}<!--
+
  |<!--Demonstration version-->
 
+
  |{{#switch:{{FULLPAGENAME:{{{name|}}}}}
 
+
    |{{FULLPAGENAME}}=<!--Template page-->{{Asbox/templatepage
</includeonly><noinclude><!--
+
      |image    = {{{image|}}}
 +
      |pix      = {{{pix|}}}
 +
      |imagealt  = {{{imagealt|}}}
 +
      |icon      = {{{icon|}}}
 +
      |subject  = {{{subject|}}}
 +
      |article  = {{{article|}}}
 +
      |qualifier = {{{qualifier|}}}
 +
      |category  = {{{category|}}}
 +
      |tempsort  = {{{tempsort|}}}
 +
      |category1 = {{{category1|}}}
 +
      |tempsort1 = {{{tempsort1|}}}
 +
      |category2 = {{{category2|}}}
 +
      |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}}}}. If this is a demonstration please set {{para|demo|yes}}.
 +
      }}-->
 +
    }}
 +
  }}
 +
}}<noinclude><!--
  
 
  *** Documentation ***
 
  *** Documentation ***
 
+
-->{{documentation}}
-->
+
{{template doc}}
+
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 11:01, 13 July 2014

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}