Vorlage:Asbox: Unterschied zwischen den Versionen
streamlined image code, removed some duplicate parser functions, improved readability
(adding maintenance categories, please feel free to prettify the code ...) |
imported>MSGJ (streamlined image code, removed some duplicate parser functions, improved readability) |
||
| Zeile 1: | Zeile 1: | ||
<table class="metadata plainlinks stub" style="background: transparent;"><tr> | <table class="metadata plainlinks stub" style="background: transparent;"><tr> | ||
{{#if: {{{icon|}}}{{{image|}}} |<td>{{#if:{{{icon|}}}|{{{icon}}} | {{#if:{{{icon|}}}{{{image|}}} | ||
|<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><!-- | ||
| Zeile 42: | Zeile 54: | ||
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!-- | -->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!-- | ||
--></includeonly><!-- | --></includeonly><!-- | ||
| Zeile 50: | Zeile 61: | ||
*** Maintenance categories *** | *** Maintenance categories *** | ||
--> | -->{{#if:{{{category|}}}|<!-- has category= --> | ||
|[[Category:Stub message boxes without category parameter]] | |[[Category:Stub message boxes without category parameter]] | ||
}}<!-- | }}<!-- | ||