Difference between revisions of "Template:Quote/doc"
(Automatic Quotes) |
|||
Line 27: | Line 27: | ||
== Automatic Quotes == | == Automatic Quotes == | ||
In addition, you can use Quote without any parameters to automatically display the description on any item page. There are several possible outcomes: | In addition, you can use Quote without any parameters to automatically display the description on any item and enemy page. There are several possible outcomes: | ||
<code><nowiki>{{Quote}}</nowiki></code> | <code><nowiki>{{Quote}}</nowiki></code> | ||
Line 39: | Line 39: | ||
If the translation is defined as nothing (ie. <code><nowiki>|Templar Sword = </nowiki></code>), it will display "Translation missing!". | If the translation is defined as nothing (ie. <code><nowiki>|Templar Sword = </nowiki></code>), it will display "Translation missing!". | ||
If you use Quote without any parameters on a non-item page, like [[Characters]], it will display "Quote missing!". | If you use Quote without any parameters on a non-item non-enemy page, like [[Characters]], it will display "Quote missing!". | ||
{{doc/end}} | {{doc/end}} |
Revision as of 23:31, 14 January 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.
Usage
{{Quote|This is a quote.}}
prints:
“ | This is a quote. | „ |
{{Quote|This is a quote.|Author}}
prints:
“ | This is a quote. | „ |
~ Author |
{{Quote|This is a quote.|Author|subject}}
prints:
“ | This is a quote. | „ |
~ Author on subject |
{{Quote|This is a quote.|[[Main Page|Some guy]]|subject}}
prints:
“ | This is a quote. | „ |
~ Some guy on subject |
{{Quote|This is a quote.|[[Main Page|Some guy]]|subject|Cleanup.svg}}
prints:
File:Cleanup.svg | “ | This is a quote. | „ |
~ Some guy on subject |
Images are automatically scaled in width to 64px.
Automatic Quotes
In addition, you can use Quote without any parameters to automatically display the description on any item and enemy page. There are several possible outcomes:
{{Quote}}
On english item pages, like Templar Sword, it will display the english description.
On item pages in different languages, like Templar Sword/ru, it will display the russian description translation.
If the translation is not defined (check in Category:Language_templates), it will display the english description by default.
If the translation is defined as nothing (ie. |Templar Sword =
), it will display "Translation missing!".
If you use Quote without any parameters on a non-item non-enemy page, like Characters, it will display "Quote missing!".