Difference between revisions of "Template:Asbox"

From Self-sufficiency
Jump to: navigation, search
(better CSS, rm boilerplate, add class "stub" (although not in use), add id param that will add id=stub-valuename. (not required).)
(use some *mbox magic.)
Line 1: Line 1:
<table class="metadata plainlinks stub" {{#if|{{{id|}}}|id="stub-{{{id}}}" }}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 [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it]''.<br><small>{{{note|}}}</small></td></tr></table><includeonly><!--
+
<table class="metadata plainlinks asbox" {{#if|{{{id|}}}|id="stub-{{{id}}}" }} style="clear:left; margin: 0.9em 0em; background: transparent;"><tr>
 +
{{#ifexpr: {{#if:{{{icon|}}}|1|0}} or {{#if:{{{image|}}}|1|0}}|<td class="mbox-image">{{#if:{{{icon|}}}|{{{icon}}}&nbsp;|{{#if:{{{image|}}}|[[Image:{{{image}}}|{{#if:{{{pix|}}}|{{{pix}}}|40x30}}px]]&nbsp;|}}}}</td>}}
 +
<td class="mbox-text" style="font-style: italic; padding-left: 0em;">This {{{subject|}}} article {{{qualifier|}}} is a [[Wikipedia:stub|stub]].  You can help by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].{{#if:{{{note|}}}|<br/><span style="font-style: normal; font-size: smaller;">{{{note|}}} }}</td></tr></table><includeonly><!--
  
 
  *** Stub article category sorted by DEFAULTSORT or PAGENAME. ***
 
  *** Stub article category sorted by DEFAULTSORT or PAGENAME. ***

Revision as of 15:28, 4 May 2009