Difference between revisions of "Template:Quotation"
m (Added 'fi' to template description) |
(new 'en-sound' parameter) |
||
Line 7: | Line 7: | ||
| zh-hans = normal | | zh-hans = normal | ||
| zh-hant = normal | | zh-hant = normal | ||
− | }}; border-left: 1px solid #DDD;border-right: 1px solid #DDD;padding-left: 1em;padding-right: 1em;">{{{2|Quoted text.}}} {{ #if: {{{sound|}}} |<br /><div style="font-style: {{lang<!-- | + | }}; border-left: 1px solid #DDD;border-right: 1px solid #DDD;padding-left: 1em;padding-right: 1em;">{{{2|Quoted text.}}} <!-- |
+ | -->{{#if:{{{sound|}}} | ||
+ | | <br /><div style="font-style: {{lang<!-- | ||
// Don't show italics for Chinese. --> | // Don't show italics for Chinese. --> | ||
| en = italic | | en = italic | ||
| zh-hans = normal | | zh-hans = normal | ||
| zh-hant = normal | | zh-hant = normal | ||
− | }};" class="plainlinks">< | + | }};" class="plainlinks small"><!-- |
+ | -->[[File:Icon external link wav.png|13px|link={{FILEPATH:{{{sound|}}}}}]] [[Media:{{{sound}}}|{{lang | ||
| de = Anhören | | de = Anhören | ||
| en = Click to listen | | en = Click to listen | ||
Line 28: | Line 31: | ||
| zh-hant = 點擊試聽 | | zh-hant = 點擊試聽 | ||
| sv = Lyssna här | | sv = Lyssna här | ||
− | }}]]</ | + | }}]]{{#if:{{{en-sound|}}} |
+ | |  <span style="color:#555;">({{lang | ||
+ | | en = in English | ||
+ | | fr = en anglais | ||
+ | }})</span> | ||
+ | }} | ||
+ | </div> | ||
+ | }} | ||
<div style="text-align: left; font-size: 0.9em;">— {{ #switch: {{ lc: {{{1|}}} }} | <div style="text-align: left; font-size: 0.9em;">— {{ #switch: {{ lc: {{{1|}}} }} | ||
| in-game | game = {{lang | | in-game | game = {{lang | ||
Line 114: | Line 124: | ||
; sound | ; sound | ||
: Optional. Specifies the sound of the quotation (please use only wiki stored sound links, not external). | : Optional. Specifies the sound of the quotation (please use only wiki stored sound links, not external). | ||
+ | |||
+ | === Other parameters === | ||
+ | * {{code|translate}}: set to 'yes' if the quote needs translating, will categorize page into [[:Category:Quotations requiring translation]]. | ||
+ | * {{code|en-sound}}: set to 'yes' if the sound file specified is in English. | ||
[[Category:Formatting templates|Quotation]] | [[Category:Formatting templates|Quotation]] | ||
</noinclude> | </noinclude> |
Revision as of 21:36, 22 November 2010
“ | Quoted text.
— Quotation source
|
” |
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Quotation/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: de, es, fi, fr, hu, it, pl, pt, pt-br, ro, ru, sv (add) |
Description
{{Quotation|<source>| <text> }}
This template is used to mark text passages as quotations.
Parameters
- unnamed parameter 1
- Quotation source. Can be a custom value or a predefined value:
game
- In-game descriptiongametip
- In-game tipwebsite
– Official website
- unnamed parameter 2
- Quoted text.
- icon
- Optional. Displays an icon to the left.
- icon-size
- Optional. Modifies the space for the icon.
- sound
- Optional. Specifies the sound of the quotation (please use only wiki stored sound links, not external).
Other parameters
translate
: set to 'yes' if the quote needs translating, will categorize page into Category:Quotations requiring translation.en-sound
: set to 'yes' if the sound file specified is in English.