Difference between revisions of "Template:QuoteBox2"

From WikiCorporates
Jump to navigation Jump to search
m
m
 
Line 1: Line 1:
−
<div class="quotebox pullquote" style="margin:0.5em 1.4em 0.8em 0; width:{{#if:{{{width|}}}|{{{width}}};|55%; padding:10px; border:1px solid #aaa; font-size:88%; background-color:#f9f9f9;"><div style="text-align:left;">
+
<div class="quotebox pullquote" style="margin:0.5em 1.4em 0.8em 0; width:{{#if:{{{width|}}}|{{{width}}};|55%;|}} padding:10px; border:1px solid #aaa; font-size:88%; background-color:#f9f9f9;"><div style="text-align:left;">
 
<div>{{{quote}}}</div>
 
<div>{{{quote}}}</div>
 
</div>
 
</div>
 
<cite style="display:block; text-align:left;">&mdash; {{{cite}}}</cite></div><noinclude>{{doc2}}</noinclude>
 
<cite style="display:block; text-align:left;">&mdash; {{{cite}}}</cite></div><noinclude>{{doc2}}</noinclude>

Latest revision as of 01:41, 7 January 2019

{{{quote}}}
— {{{cite}}}

[edit] Documentation

An attempt to re-create WP's Template:QuoteBox, without it refusing to be placed where it is put.

So far, very simple. Takes 2 mandatory args (quote, cite), and 1 optional (width) arg.

Example

{{QuoteBox2|width=70%
|quote=Public doubt about the science is not an accident. People profiting from business-as-usual fossil fuel use are waging a campaign to discredit the science. Their campaign is effective because the profiteers have learned how to manipulate democracies for their advantage.
|cite=James Hansen, director of the NASA Goddard Institute for Space Studies (1981–2013), [http://www.columbia.edu/~jeh1/mailings/2012/20120127_CowardsPart1.pdf Cowards in Our Democracies: Part 1] (Jan.2012) }}
</nowiki></tt>

Gives:

Public doubt about the science is not an accident. People profiting from business-as-usual fossil fuel use are waging a campaign to discredit the science. Their campaign is effective because the profiteers have learned how to manipulate democracies for their advantage.
— James Hansen, director of the NASA Goddard Institute for Space Studies (1981–2013), Cowards in Our Democracies: Part 1 (Jan.2012)
}}