Template:Quote box: Difference between revisions

If we are setting a background color, we should also set the foreground color. Right now, the quotebox looks terrible in any dark mode browser.
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
  <div class="quote-box" style="margin: {{{margin|1em}}} {{{align|auto}}}; width: {{{width|80%}}}; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9; color: black">
  <div class="quote-box" style="margin: {{{margin|1em}}} {{{align|auto}}}; width: {{{width|80%}}}; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9; color: black">
     <blockquote style="margin: 0;">{{{quote|}}}</blockquote>
     <blockquote style="margin: 0;">{{{quote|}}}</blockquote>{{#if:{{{source|}}}| <small>'''- {{{source|}}}'''}}</small>
  </div>
  </div>
</includeonly>
</includeonly>
Line 23: Line 23:
|width=100px
|width=100px
|align=left
|align=left
|quote=Example of an important quote}}
|quote=Example of an important quote
|source=Clinton the CAT}}
</nowiki>
</nowiki>
</pre>
</pre>
Line 30: Line 31:
|width=100px
|width=100px
|align=left
|align=left
|quote=Example of an important quote}}
|quote=Example of an important quote
|source=Clinton the CAT}}
[[Category:Styling templates]]
[[Category:Styling templates]]
== Template Data ==
== Template Data ==
Line 58: Line 60:
"description": "The quote to include in the box",
"description": "The quote to include in the box",
"required": true
"required": true
},
        "source": {
"description": "The name of the source & reference to include in the box",
"required": false
}
}
},
},