Template:Quote: Difference between revisions
From Official Barotrauma Wiki
m (5 revisions imported) |
Jade Harley (talk | contribs) mNo edit summary |
||
(26 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| class="noborder" style="background:transparent; width: | <includeonly><div align="{{{5|center}}}"> | ||
{| class="noborder" style="background:transparent; max-width:{{#if:{{{4|}}}|{{{4}}}|60}}%" | |||
{{ #if: {{{3|}}} | {{!}} {{ #if: {{{2|}}} | rowspan="2" {{!}} }} [[File:{{{3}}}|64px]] }} | {{ #if: {{{3|}}} | {{!}} {{ #if: {{{2|}}}{{{cargo|}}} | 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;" | “ | ||
| ''{{{1}}}'' | | ''{{#if:{{{cargo|}}}|{{#cargo_query: tables = Items | ||
| fields = name, description | |||
| where = name = "{{PAGENAME}}" | |||
| format = template | |||
| template = Quote/desc | |||
| named args = yes | |||
| default = <span style="color:#808080">(Cargo quotes only work with items for now)</span> | |||
}}|{{{1}}}}}'' | |||
| 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="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;" | „ | ||
{{#if: {{{2|}}} | | {{#if: {{{2|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} <!-- empty cell --> | {{!}} <!-- empty cell --> | ||
{{!}} style="text-align: right;" {{!}} <small> | {{!}} style="text-align: right;" {{!}} <small>–{{{2}}}</small> | ||
{{!}} <!-- empty cell to prevent potential rendering issues --> }} | {{!}} <!-- empty cell to prevent potential rendering issues --> | | ||
|}</includeonly><noinclude> | {{#if: {{{cargo|}}} | | ||
{{!}}- | |||
{{!}} <!-- empty cell --> | |||
{{!}} style="text-align: right;" {{!}} <small>–In-game description</small> | |||
{{!}} <!-- empty cell to prevent potential rendering issues -->}} }} | |||
|}</div></includeonly><noinclude> | |||
{{doc}}</noinclude> | {{doc}}</noinclude> |
Latest revision as of 00:05, 3 February 2023
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:
“ | Some quote. | „ |
{{Quote|Some quote.|Some Guy}}
prints:
“ | Some quote. | „ |
–Some Guy |
{{Quote|Some long quote.|Some Guy|Image Coming Soon.jpg|80}}
prints:
Images are automatically scaled in width to 64px.
The above documentation is transcluded from Template:Quote/doc. (edit | history)