Difference between revisions of "Template:Quote"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*make second parameter really optional;)
m (-debug category; +manufacturer;)
Line 6: Line 6:
 
{{!}}-}}
 
{{!}}-}}
 
| 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|}}}}}}}
 
| 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>}}}|
+
| ''{{#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>}}}'''{{#if: {{{3|<noinclude>Source</noinclude>}}}|, <small>{{{3|<noinclude>Source</noinclude>}}}</small>}}</p>}}
+
<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|}}}}}}}
 
| 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|}}}}}}}
|}{{#if: {{{4|}}}{{{5|}}}|[[Category:Quote with to many parameters]]}}<noinclude>
+
|}<noinclude>
  
 
Shows a quote of somebody or a manufacturer.
 
Shows a quote of somebody or a manufacturer.
Line 21: Line 21:
 
{{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|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|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}}
 
}}
 
}}
  
Line 29: Line 30:
 
== See also ==
 
== See also ==
 
* {{Tl|Quote/startsign}} and {{Tl|Quote/endsign}}
 
* {{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:06, 31 July 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

Template:Parameter Table

Usage

A simple quote in the language of the article:

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

See also