Template:Quote: Difference between revisions

From Toon Wiki
(Create essential template)
(Add nation-themed styling)
Line 1: Line 1:
<div style="margin: 1em 2em; padding: 0.5em 1em; border-left: 4px solid #c8ccd1; background: #f8f9fa; font-style: italic;">
{| style="border-spacing:0; border:1px solid; background:#{{#switch:{{{1}}}|water=003399|earth=006633|fire=AA0000|air=FF9900|URN=926220|spirit=666666|neutral=9932CC|jasmine=6B8066|#f8f9fa}}; -moz-border-radius:6px; border-collapse: separate; -webkit-border-radius:6px; border-radius:6px; border-color:#{{#switch:{{{1}}}|water=000066|earth=003300|fire=EE5555|air=FF6600|URN=D19F52|spirit=999999|neutral=800080|jasmine=E4AA1F|#c8ccd1}}; padding:10px; margin:.5em auto .5em auto; width:{{{width|auto}}}; text-align:justify; color:{{#switch:{{{1}}}|water|earth|fire|air|URN|spirit|neutral|jasmine=white|#333}};" class="quote {{#switch:{{{1}}}|water|earth|fire|URN|spirit|neutral|jasmine=quote_link_color|air=quote_link_color_light|}}"
"{{{1|{{{text|}}}}}}"
|-
{{#if:{{{2|{{{source|}}}}}}|<div style="text-align: right; font-style: normal; color: #54595d; margin-top: 0.5em;">— {{{2|{{{source}}}}}}</div>}}
|"''{{{2|{{{text|No quote provided}}}}}}''"
</div><noinclude>
|-
|style="text-align:right;"|— {{{3|{{{source|}}}}}}
|}<noinclude>
== Usage ==
== Usage ==
<pre>{{Quote|Quote text|Speaker}}</pre>
<pre>{{Quote|nation|Quote text|Speaker}}</pre>
or
 
'''Nations:''' air, water, earth, fire, URN, spirit, neutral, jasmine
 
Or simple quote:
<pre>{{Quote|text=Quote text|source=Speaker}}</pre>
<pre>{{Quote|text=Quote text|source=Speaker}}</pre>
[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Revision as of 22:40, 22 December 2025

  1. f8f9fa; -moz-border-radius:6px; border-collapse: separate; -webkit-border-radius:6px; border-radius:6px; border-color:#
  2. c8ccd1; padding:10px; margin:.5em auto .5em auto; width:auto; text-align:justify; color:
  3. 333;" class="quote "
"No quote provided"

Usage

{{Quote|nation|Quote text|Speaker}}

Nations: air, water, earth, fire, URN, spirit, neutral, jasmine

Or simple quote:

{{Quote|text=Quote text|source=Speaker}}