Template:Quotebox: Difference between revisions
Jump to navigation
Jump to search
Add Quotebox template |
No edit summary |
||
Line 1: | Line 1: | ||
<templatestyles src="Quotebox/styles.css" /> | <templatestyles src="Quotebox/styles.css" /> | ||
<!-- Parameters: | |||
| text= (or 1=) – the quote text | |||
| author= (or 2=) – attribution line (name or label) | |||
| source= – optional source note/link | |||
| align= – left | center | right (default: center) | |||
| width= – e.g., 32em, 520px, 100% (default: auto) | |||
| variant= – rose | lavender | cream (default: rose) | |||
--> | |||
<div class="gw-quotebox gw-variant-{{{variant|rose}}} gw-align-{{{align|center}}}" | <div class="gw-quotebox gw-variant-{{{variant|rose}}} gw-align-{{{align|center}}}" | ||
style="{{#if:{{{width|}}}|max-width:{{{width}}};|}}"> | style="{{#if:{{{width|}}}|max-width:{{{width}}};|}}"> | ||
<div class="gw-quote-mark" aria-hidden="true">“</div> | <div class="gw-quote-mark" aria-hidden="true">“</div> | ||
<div class="gw-quote-text">{{{text|{{{1|}}}}}}</div> | <div class="gw-quote-text"> | ||
{{{text|{{{1|}}}}}} | |||
</div> | |||
<div class="gw-quote-meta"> | <div class="gw-quote-meta"> | ||
{{#if:{{{author|{{{2|}}}}}}|<span class="gw-quote-author">— {{{author|{{{2|}}}}}}</span>|}} | {{#if:{{{author|{{{2|}}}}}}|<span class="gw-quote-author">— {{{author|{{{2|}}}}}}</span>|}} |
Revision as of 01:49, 25 August 2025