Difference between revisions of "Template:Asbox"
From Self-sufficiency
(adding maintenance categories, please feel free to prettify the code ...) |
(streamlined image code, removed some duplicate parser functions, improved readability) |
||
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|}}} |<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><!-- | ||
Line 42: | Line 54: | ||
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!-- | -->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!-- | ||
− | |||
--></includeonly><!-- | --></includeonly><!-- | ||
Line 50: | Line 61: | ||
*** Maintenance categories *** | *** Maintenance categories *** | ||
− | --> | + | -->{{#if:{{{category|}}}|<!-- has category= --> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|[[Category:Stub message boxes without category parameter]] | |[[Category:Stub message boxes without category parameter]] | ||
}}<!-- | }}<!-- |
Revision as of 11:05, 18 August 2009
This article is a stub. You can help Wikipedia by expanding it. |
[edit]
Documentation