Difference between revisions of "Template:Quote"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Un-italicize the source.)
m (*renamed Parameter Table to Parameter table;)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table style="max-width:60%;"><tr>
+
{| style="max-width:60%;"
<td style="vertical-align:middle; color: silver;font-family:Droid Serif, Times New Roman, Georgia, serif; font-size:5em;"></td>
+
{{#if: {{{trans<includeonly>|</includeonly>}}}|
<td>''{{{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;" {{!}} {{Quote/startsign|{{{src lang|}}}}}
<p style="text-align:right; margin-right:10px;">— '''{{{2<noinclude>|Someone</noinclude>}}}'''{{#if: {{{3|<noinclude>Source</noinclude>}}}|, <small>{{{3|<noinclude>Source</noinclude>}}}</small>}}</p>
+
{{!}} ''{{{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>}}}''
</td>
+
{{!}} style="vertical-align:middle; color: silver;font-family:Droid Serif, Times New Roman, Georgia, serif; font-size:5em;" {{!}} {{Quote/endsign|{{{src lang|}}}}}
<td style="vertical-align:middle; color: silver;font-family:Droid Serif, Times New Roman, Georgia, serif; font-size:5em;">”</td>
+
{{!}}-}}
</tr></table><noinclude>
+
| style="vertical-align:middle; color: silver;font-family:Droid Serif, Times New Roman, Georgia, serif; font-size:5em;" | {{Quote/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>}}}}}''{{#if: {{{2<includeonly>|</includeonly>}}}{{{manufacturer|}}}|
 +
<p style="text-align:right; margin-right:10px;">— '''{{{2|<noinclude>Someone</noinclude><includeonly>{{#if: {{{manufacturer|}}}|{{Infobox/Part/Manufacturer|{{{manufacturer|}}}}}|{{{2}}}}}</includeonly>}}}'''{{#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;" | {{Quote/endsign|{{#if: {{{trans|}}}|{{{trans lang|}}}|{{{src lang|}}}}}}}
 +
|}<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.|Not set/Hidden}}
 +
{{Parameter row|3|The source of the quote. Requires the second parameter to be set.|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}}}}
 +
{{Parameter row|manufacturer|An alternative for the author. Expands using {{Tl|Infobox/Part/Manufacturer}}|Not set}}
 +
}}
  
 
== Usage ==
 
== Usage ==
 +
A simple quote in the language of the article:
 
  <nowiki>{{Quote|The Quote|Who said it|Source}}</nowiki>
 
  <nowiki>{{Quote|The Quote|Who said it|Source}}</nowiki>
 +
 +
== See also ==
 +
* {{Tl|Quote/startsign}} and {{Tl|Quote/endsign}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 12:13, 19 December 2014

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

#/Name Optional Description Default
1 No The original quote.
2 Yes The author of the quote. Not set/Hidden
3 Yes The source of the quote. Requires the second parameter to be set. Not set/Hidden
trans Yes The translation of the quote. Not set/Hidden
src lang Yes The source language of the quote used for {{Quote/startsign}} and {{Quote/endsign}}. Language of the page via {{if lang}}
trans lang Yes The source language of the quote used for {{Quote/startsign}} and {{Quote/endsign}}. Language of the page via {{if lang}}
manufacturer Yes An alternative for the author. Expands using {{Infobox/Part/Manufacturer}} Not set

Usage

A simple quote in the language of the article:

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

See also