Template:Quotation: Difference between revisions

From Workers & Resources: Soviet Republic Official Wiki
m (1 revision imported)
(Ok, I think I finally got it how I want it...)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly>
-->{{#vardefine:quotationText|{{{1|}}}{{{text|}}}}}<!--
<div class="va-quotation-{{{3|center}}}" style="position: relative;">
-->{{#vardefine:quotationSource|{{{2|}}}{{{source|}}}}}<!--
  <div>
-->{{#vardefine:quotationOrigin|{{{3|}}}{{{origin|}}}}}<!--
    <div style="font: bold 55px/40px seri; position: absolute; left: 0;">&rdquo;</div>
--><div role="figure" class="va-quotation <!--
    <div style="display: grid; padding: 5px 35px 15px 35px;">
    -->{{#switch:{{lc:{{{position|}}}}}<!--
      <div class="va-quotation-text">{{{1}}}</div>
        -->|left=va-quotation-left<!--
      <div class="va-quotation-quote" style="text-align: right; font-size: 10px;">&mdash;{{{2}}}</div>
        -->|right=va-quotation-right<!--
    </div>
        -->|#default=va-quotation-center<!--
    <div style="font: bold 55px/40px seri; position: absolute; bottom: 0; right: 0;">&rdquo;</div>
    -->}}<!--
  </div>
-->"><!--
</div>
--><span class="va-quotation-body"><!--
</includeonly>
--><span class="va-quotation-quote"><!--
 
--><span class="va-quotation-quot-l">&ldquo;</span><!--
<noinclude>
--><span class="va-quotation-text" style="{{#if:{{{style|}}}|{{{style|}}};}}"><!--
{{Documentation}}
-->{{#if:{{#var:quotationText}}|{{#var:quotationText}}|Text of the quote.}}<!--
--></span><!--
--><span class="va-quotation-quot-r">&rdquo;</span><!--
--></span><!--
    -->{{#if:{{#var:quotationSource}}|<!--
    --><span class="va-quotation-source"><!--
                -->&mdash; {{#var:quotationSource}}{{#if:{{#var:quotationOrigin}}|, {{#var:quotationOrigin}}}}<!--
            --></span><!--
    -->}}<!--
--></span><!--
-->{{#if:{{{sound|}}}|<!--
        --><div style="margin-top: 10px;"><!--
            -->[[File:{{{sound|}}}|noicon|135px|center]]<!--
        --></div><!--
    -->}}<!--
--></div><!--
-->{{#vardefine:quotationText|}}<!--
-->{{#vardefine:quotationSource|}}<!--
-->{{#vardefine:quotationOrigin|}}<!--
--></includeonly><noinclude>
[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Latest revision as of 09:13, 26 September 2024


Template documentation (for the template shown above, sometimes hidden or invisible)

Usage

Todo

Parameters

Yes
<unnamed 1>
Quote body
Yes
<unnamed 2>
Source
Neutral
(default: "center")
<unnamed 3>
Set to left, right, or center
Documentation transcluded from Template:Quotation/doc.