Template:Quotebox: Difference between revisions

From Gail Wiki
Jump to navigation Jump to search
Add Quotebox template
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Quotebox/styles.css" />
<templatestyles src="Quotebox/styles.css" />
<!-- Params: 1/text, 2/author, source, align, width, variant -->
<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>
   <blockquote class="gw-quote-body">
  <div class="gw-quote-text">{{{text|{{{1|}}}}}}</div>
    {{{text|{{{1|}}}}}}
   <div class="gw-quote-meta">
  </blockquote>
    {{#if:{{{author|{{{2|}}}}}}|<span class="gw-quote-author">— {{{author|{{{2|}}}}}}</span>|}}
   {{#if:{{{author|{{{2|}}}}}}|
    {{#if:{{{source|}}|<span class="gw-quote-source"> · {{{source}}}</span>|}}
    <div class="gw-quote-meta">
  </div>
      <span class="gw-quote-author">— {{{author|{{{2|}}}}}}</span>{{#if:{{{source|}}|<span class="gw-quote-source"> · {{{source}}}</span>|}}
    </div>
  |}}
</div>
</div>

Latest revision as of 02:22, 25 August 2025