Difference between revisions of "Template:Show badge"

From SourceWatch
Jump to navigation Jump to search
(Created page with "<includeonly><table cellspacing="0" style="width:238px;background:#{{{background|fff}}};border:solid #{{{border|000}}} 3px;margin:1px;"> <tr><td style="width:{{#ifeq:{{{graphi...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><table cellspacing="0" style="width:238px;background:#{{{background|fff}}};border:solid #{{{border|000}}} 3px;margin:1px;">
+
<includeonly><table class="badge" cellspacing="0" style="width:238px;background:#{{{background|fff}}};border:solid #{{{border|000}}} 3px;margin:1px;">
 
<tr><td style="width:{{#ifeq:{{{graphic position|left}}}|top|238px|45px}};height:{{{height|157px}}};background:#{{{background|fff}}};text-align:center;font-size:14pt;">
 
<tr><td style="width:{{#ifeq:{{{graphic position|left}}}|top|238px|45px}};height:{{{height|157px}}};background:#{{{background|fff}}};text-align:center;font-size:14pt;">
[[File:{{{image|Tobaccospin.jpg}}}|{{#replace:{{{width|84px}}}|px|}}x{{{height|157px}}}|{{#ifeq:{{{graphic position|left}}}|top|center|left}}|link={{{title|Portal:Tobacco}}}]]
+
[[File:{{#titleparts:{{{image|Tobaccospin.jpg}}}||-1}}|{{#ifeq:
 +
{{#sub:{{{width|84px}}}|-2}}
 +
|px
 +
|{{#sub:{{{width|84px}}}|0|-2}}
 +
|{{{width|84px}}}
 +
}}x{{#ifeq:
 +
{{#sub:{{{height|157px}}}|-2}}
 +
|px
 +
|{{#sub:{{{height|157px}}}|0|-2}}
 +
|{{{height|157px}}}
 +
}}px|{{#ifeq:{{{graphic position|left}}}|top|center|left}}|link={{{title|Portal:Tobacco}}}]]
 
</td>
 
</td>
 
{{#ifeq:{{{graphic position|left}}}|top|</tr><tr>}}
 
{{#ifeq:{{{graphic position|left}}}|top|</tr><tr>}}
<td style="font-size:9pt;padding:4pt;line-height:1.25em; text-align:left">{{{text|This article is part of the [[Portal:Tobacco|Tobacco documents analysis]] project sponsored by the [[American Legacy Foundation]]. Join our team of citizen journalists researching and exposing [[tobacco industry]] secrets.}}}</td></tr>
+
<td style="font-size:9pt;padding:4pt;line-height:1.25em; text-align:left">
 +
{{{text|This article is part of the [[Portal:Tobacco|Tobacco documents analysis]] project sponsored by the [[American Legacy Foundation]]. Join our team of citizen journalists researching and exposing [[tobacco industry]] secrets.}}}
 +
</td></tr>
 
</table></includeonly>
 
</table></includeonly>

Latest revision as of 18:36, 25 December 2019