Template:CapSach quote panel: Difference between revisions
Appearance
Content deleted Content added
Created page with "<includeonly><templatestyles src="CapSach quote panel/styles.css" /> <div class="cs-quote-panel" style=" --bg:{{{bg|#F9F8F4}}}; --border:{{{border|0px solid #9CA4AC}}}; --radius:{{{radius|0}}}; --padding:{{{padding|.5em .5em .5em 0}}}; --mb:{{{mb|2em}}}; {{{style|}}} "> <!-- If |text= is provided, build a quote using the chosen quote template. Otherwise, just render |content= (defaults to {{Quote of the day}}). --> {{#if:{{{text|}}} | {{{prefix|}}}{{{{{..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="CapSach quote panel/styles.css" /> |
<includeonly><templatestyles src="CapSach quote panel/styles.css" /> |
||
<div class="cs-quote-panel" style=" |
<div class="cs-quote-panel" style=" |
||
{{#if:{{{bg|}}} |background:{{{bg}}};}} |
|||
{{#if:{{{border|}}} |border:{{{border}}};}} |
|||
{{#if:{{{radius|}}} |border-radius:{{{radius}}};}} |
|||
{{#if:{{{padding|}}}|padding:{{{padding}}};}} |
|||
{{#if:{{{mb|}}} |margin-bottom:{{{mb}}};}} |
|||
{{{style|}}} |
{{{style|}}} |
||
"> |
"> |
||
<!-- If |text= is provided, build a quote using the chosen quote template. |
|||
Otherwise, just render |content= (defaults to {{Quote of the day}}). --> |
|||
{{#if:{{{text|}}} |
{{#if:{{{text|}}} |
||
| {{{prefix|}}}{{{{{quote_template|Quote}}} |
| {{{prefix|}}}{{{{{quote_template|Quote}}} |
||
| Line 25: | Line 23: | ||
}} |
}} |
||
</div></includeonly><noinclude> |
</div></includeonly><noinclude> |
||
''' |
'''Parameters''' |
||
* Structured quote (preferred): <code>|text=</code>, <code>|author=</code>, <code>|source=</code> (+ optional <code>|title|date|lang|quote_align|ref|quotes</code>) |
|||
| ⚫ | |||
Use with either: |
|||
* |
* Choose quote template with <code>|quote_template=</code> — <code>Quote</code> (default) or <code>Quote of Wikipedia</code> |
||
| ⚫ | |||
| ⚫ | |||
Choose which quote template to call via <code>|quote_template=</code>: |
|||
* <code>Quote</code> (default) or <code>Quote of Wikipedia</code>. |
|||
| ⚫ | |||
</noinclude> |
</noinclude> |
||
Latest revision as of 11:17, 7 October 2025
Parameters
- Structured quote (preferred):
|text=,|author=,|source=(+ optional|title|date|lang|quote_align|ref|quotes) - Or
|content=to pass any wikitext (defaults toTemplate:Quote of the day) - Choose quote template with
|quote_template=—Quote(default) orQuote of Wikipedia - Style overrides:
|bg,|border,|radius,|padding,|mb, and raw|style