Template:Quote: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(added max width in {{{4}}}, default 60%, so it doesn't interfere with infoboxes. For some reason width had a value of "value" for ages. Doesn't do anything, guessing it was a stack overflow c/p fail :v)
(always centered?)
Line 1: Line 1:
<includeonly>{| class="noborder quote" style="background:transparent; max-width:{{#if:{{{4|}}}|{{{4}}}|60}}%;"
<includeonly><center>{| class="noborder quote" style="background:transparent; max-width:{{#if:{{{4|}}}|{{{4}}}|60}}%;"
{{ #if: {{{3|}}} | {{!}} {{ #if: {{{2|}}} | rowspan="2" {{!}} }} [[File:{{{3}}}|64px]] }}
{{ #if: {{{3|}}} | {{!}} {{ #if: {{{2|}}} | rowspan="2" {{!}} }} [[File:{{{3}}}|64px]] }}
| style="color: #b2b7f2; font-size: 3.3em; font-family: 'Times New Roman',serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: top;" | “
| style="color: #b2b7f2; font-size: 3.3em; font-family: 'Times New Roman',serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: top;" | “
Line 9: Line 9:
{{!}} style="text-align: right;" {{!}} <small>~ {{{2}}}</small>
{{!}} style="text-align: right;" {{!}} <small>~ {{{2}}}</small>
{{!}} <!-- empty cell to prevent potential rendering issues --> }}
{{!}} <!-- empty cell to prevent potential rendering issues --> }}
|}</includeonly><noinclude>
|}</center></includeonly><noinclude>
{{doc}}</noinclude>
{{doc}}</noinclude>

Revision as of 09:55, 13 November 2021

Documentation

This template is used to quote a person or source. The color of the quotes themselves should be changed to match the wiki skin color palette.

Syntax

{{ Quote | quote text | quote source | image | custom max width (default 60%) }}

Examples

{{Quote|Some quote.}} prints:

{| class="noborder quote" style="background:transparent; max-width:60%;"

| style="color: #b2b7f2; font-size: 3.3em; font-family: 'Times New Roman',serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: top;" | “ | Some quote. | style="color: #b2b7f2; font-size: 3.3em; font-family: 'Times New Roman',serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: bottom;" | „

|}

{{Quote|Some quote.|Some Guy}} prints:

{| class="noborder quote" style="background:transparent; max-width:60%;"

| style="color: #b2b7f2; font-size: 3.3em; font-family: 'Times New Roman',serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: top;" | “ | Some quote. | style="color: #b2b7f2; font-size: 3.3em; font-family: 'Times New Roman',serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: bottom;" | „ |- | | style="text-align: right;" | ~ Some Guy |

|}

{{Quote|Some long quote.|Some Guy|Image Coming Soon.jpg|80}} prints:

{| class="noborder quote" style="background:transparent; max-width:80%;"

| rowspan="2" | | style="color: #b2b7f2; font-size: 3.3em; font-family: 'Times New Roman',serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: top;" | “ | Dum haec in oriente aguntur, Arelate hiemem agens Constantius post theatralis ludos atque circenses ambitioso editos apparatu diem sextum idus Octobres, qui imperii eius annum tricensimum terminabat, insolentiae pondera gravius librans, siquid dubium deferebatur aut falsum, pro liquido accipiens et conperto, inter alia excarnificatum Gerontium Magnentianae comitem partis exulari maerore multavit. | style="color: #b2b7f2; font-size: 3.3em; font-family: 'Times New Roman',serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: bottom;" | „ |- | | style="text-align: right;" | ~ Some Guy |

|}

Images are automatically scaled in width to 64px.