Template:Quotation: Difference between revisions

From Workers & Resources: Soviet Republic Official Wiki
m (1 revision imported)
(Quotation clean up (probably broken))
Line 1: Line 1:
<includeonly><!--
<includeonly>
-->{{#vardefine:quotationText|{{{1|}}}{{{text|}}}}}<!--
<div class="va-quotation va-quotation-{{{3|center}}}" style="width:100%; padding:10px;">
-->{{#vardefine:quotationSource|{{{2|}}}{{{source|}}}}}<!--
  <span class="va-quotation-body">
-->{{#vardefine:quotationOrigin|{{{3|}}}{{{origin|}}}}}<!--
    <span class="va-quotation-quote">
--><div role="figure" class="va-quotation <!--
      <span class="va-quotation-quot-l">&rdquo;</span>
    -->{{#switch:{{lc:{{{position|}}}}}<!--
      <span class="va-quotation-text">{{{1}}}</span>
        -->|left=va-quotation-left<!--
      <span class="va-quotation-quot-r">&rdquo;</span>
        -->|right=va-quotation-right<!--
    </span>
        -->|#default=va-quotation-center<!--
    <span class="va-quotation-quote">&mdash;{{{2}}}</span>
    -->}}<!--
  </span>
-->"><!--
</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>

Revision as of 07:54, 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.