Difference between revisions of "Template:Quote"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*use wikisyntax for the table;)
(+support translations;)
Line 1: Line 1:
 
{| style="max-width:60%;"
 
{| style="max-width:60%;"
| style="vertical-align:middle; color: silver;font-family:Droid Serif, Times New Roman, Georgia, serif; font-size:5em;" | {{{4|}}}
+
{{#if: {{{trans<includeonly>|</includeonly>}}}|
| ''{{{1<noinclude>|Lorem Ipsum dolor sit amet, consectetur adipiscing elit. Vivamus Kerbalae non nisl vitae augue feugiat egestas ut et felis.</noinclude>}}}''
+
{{!}} style="vertical-align:middle; color: silver;font-family:Droid Serif, Times New Roman, Georgia, serif; font-size:5em;" {{!}} {{/startsign|{{{src lang|}}}}}
 +
{{!}} ''{{{1<noinclude>|Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</noinclude>}}}''
 +
{{!}} style="vertical-align:middle; color: silver;font-family:Droid Serif, Times New Roman, Georgia, serif; font-size:5em;" {{!}} {{/endsign|{{{src lang|}}}}}
 +
{{!}}-}}
 +
| style="vertical-align:middle; color: silver;font-family:Droid Serif, Times New Roman, Georgia, serif; font-size:5em;" | {{/startsign|{{#if: {{{trans|}}}|{{{trans lang|}}}|{{{src lang|}}}}}}}
 +
| ''{{#if: {{{trans|}}}|{{{trans}}}|{{{1<noinclude>|Lorem Ipsum dolor sit amet, consectetur adipiscing elit. Vivamus Kerbalae non nisl vitae augue feugiat egestas ut et felis.</noinclude>}}}}}''
 
<p style="text-align:right; margin-right:10px;">— '''{{{2<noinclude>|Someone</noinclude>}}}'''{{#if: {{{3|<noinclude>Source</noinclude>}}}|, <small>{{{3|<noinclude>Source</noinclude>}}}</small>}}</p>
 
<p style="text-align:right; margin-right:10px;">— '''{{{2<noinclude>|Someone</noinclude>}}}'''{{#if: {{{3|<noinclude>Source</noinclude>}}}|, <small>{{{3|<noinclude>Source</noinclude>}}}</small>}}</p>
| style="vertical-align:middle; color: silver;font-family:Droid Serif, Times New Roman, Georgia, serif; font-size:5em;" | {{{5|}}}
+
| style="vertical-align:middle; color: silver;font-family:Droid Serif, Times New Roman, Georgia, serif; font-size:5em;" | {{/endsign|{{#if: {{{trans|}}}|{{{trans lang|}}}|{{{src lang|}}}}}}}
|}<noinclude>
+
|}{{#if: {{{4|}}}{{{5|}}}|[[Category:Quote with to many parameters]]}}<noinclude>
 +
 
 +
Shows a quote of somebody or a manufacturer.
 +
 
 +
== Parameters ==
 +
{{Parameter Table|name=both|parameters=
 +
{{Parameter Row|1|The original quote.}}
 +
{{Parameter Row|2|The author of the quote.}}
 +
{{Parameter Row|3|The source of the quote.|Not set/Hidden}}
 +
{{Parameter Row|trans|The translation of the quote.|Not set/Hidden}}
 +
{{Parameter Row|src lang|The source language of the quote used for {{Tl|Quote/startsign}} and {{Tl|Quote/endsign}}.|Language of the page via {{Tl|if lang}}}}
 +
{{Parameter Row|trans lang|The source language of the quote used for {{Tl|Quote/startsign}} and {{Tl|Quote/endsign}}.|Language of the page via {{Tl|if lang}}}}
 +
}}
  
 
== Usage ==
 
== Usage ==
  <nowiki>{{Quote|The Quote|Who said it|Source|Start Quote Sign|End Quote Sign}}</nowiki>
+
A simple quote in the language of the article:
 +
  <nowiki>{{Quote|The Quote|Who said it|Source}}</nowiki>
  
The parameters three to five are optional.
+
== See also ==
 +
* {{Tl|Quote/startsign}} and {{Tl|Quote/endsign}}
 +
* [[:Category:Quote with to many parameters]] if somewhere the fourth and fifth parameter are set. In a previous version of this template they were used to manually change the quotation marks.
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 12:22, 29 December 2013

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Lorem Ipsum dolor sit amet, consectetur adipiscing elit. Vivamus Kerbalae non nisl vitae augue feugiat egestas ut et felis.

Someone, Source

Shows a quote of somebody or a manufacturer.

Parameters

Template:Parameter Table

Usage

A simple quote in the language of the article:

{{Quote|The Quote|Who said it|Source}}

See also