Template:Asbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
streamlined image code, removed some duplicate parser functions, improved readability
meta>Amalthea
rv, per talk page
Line 1: Line 1:
<table class="metadata plainlinks stub" style="background: transparent;"><tr>
<table class="metadata plainlinks stub" style="background: transparent;"><tr>
{{#if:{{{icon|}}}{{{image|}}}
{{#if: {{{icon|}}}{{{image|}}} |<td>{{#if:{{{icon|}}}|{{{icon}}}|{{#if:{{{image|}}}|[[Image:{{{image}}}|{{#if:{{{pix|}}}|{{{pix}}}|40x30}}px|alt={{{imagealt|Stub icon}}}]]}}}}</td>}}
|<td>{{#if:{{{icon|}}}
  |{{{icon}}}[[Category:Stub message boxes using icon parameter]]
  |[[File:{{{image}}}|{{#if:{{{pix|}}}
  |{{{pix}}}
  |40x30
  }}px|alt={{#if:{{{imagealt|}}}
  |[[Category:Stub message boxes using imagealt parameter]]{{{imagealt}}}
  |Stub icon
  }}]][[Category:Stub message boxes using image parameter]]
}}</td>
|[[Category:Stub message boxes without images]]
}}
<td>''This {{#if:{{{article|}}}|{{{article}}}|{{{subject|}}} 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 {{#if:{{{article|}}}|{{{article}}}|{{{subject|}}} 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><!--


Line 54: Line 42:


-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!--
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!--


--></includeonly><!--
--></includeonly><!--
Line 61: Line 50:
*** Maintenance categories ***
*** Maintenance categories ***


-->{{#if:{{{category|}}}|<!-- has category= -->
-->{{#if:{{{image|}}}
|[[Category:Stub message boxes using image parameter]]|{{#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]]
|[[Category:Stub message boxes without category parameter]]
}}<!--
}}<!--

Revision as of 10:53, 18 August 2009