Template:Quote/doc: Difference between revisions

From Portals of Phereon Wiki
Content added Content deleted
portalsofphereon>FANDOM
m (1 revision: Starter Wiki Refresh)
m (1 revision imported)
Line 1: Line 1:
{{doc/start}}
==Description==
To use this template, enter the following and fill in the appropriate fields. Most fields left blank will not show up.


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.
==Syntax==
<pre>
{{Quote
| quote =
| speaker =
| source =
}}
</pre>


== Usage ==
As an alternative, these can be placed in positional order.
<code><nowiki>{{Quote|This is a quote.}}</nowiki></code> prints:
==Samples==
{{Quote
| quote = When you play the game of thrones, you win or you die.
| speaker = [[w:c:gameofthrones:Cersei Lannister|Cersei Lannister]]
| source = [[w:c:gameofthrones:You Win or You Die|"You Win or You Die"]]
}}
<pre>
{{Quote
| quote = When you play the game of thrones, you win or you die.
| speaker = [[w:c:gameofthrones:Cersei Lannister|Cersei Lannister]]
| source = [[w:c:gameofthrones:You Win or You Die|"You Win or You Die"]]
}}
</pre>
or


{{Quote|This is a quote.}}
<pre>
{{Quote
| When you play the game of thrones, you win or you die.
| [[w:c:gameofthrones:Cersei Lannister|Cersei Lannister]]
| [[w:c:gameofthrones:You Win or You Die|"You Win or You Die"]]
}}
</pre>


<code><nowiki>{{Quote|This is a quote.|Author}}</nowiki></code> prints:


{{Quote|This is a quote.|Author}}
== Technical details ==

This template uses the [[Help:Lua|Lua templating language]], and more information can be found [[w:c:dev:Global_Lua_Modules/Quote|on the Global Lua Module page]]. '''For a traditional wikitext version of this template, see [[w:c:templates:Template:Quote|Quote on Templates Wiki]]'''.
<code><nowiki>{{Quote|This is a quote.|Author|subject}}</nowiki></code> prints:
<includeonly>[[Category:Templates|{{PAGENAME}}]][[Category:Templates/Quote|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

{{Quote|This is a quote.|Author|subject}}

<code><nowiki>{{Quote|This is a quote.|[[Main Page|Some guy]]|subject}}</nowiki></code> prints:

{{Quote|This is a quote.|[[Main Page|Some guy]]|subject}}

<code><nowiki>{{Quote|This is a quote.|[[Main Page|Some guy]]|subject|Cleanup.svg}}</nowiki></code> prints:

{{Quote|This is a quote.|[[Main Page|Some guy]]|subject|Cleanup.svg}}

Images are automatically scaled in width to 64px.
{{doc/end}}

Revision as of 12:34, 1 December 2019

This is a documentation subpage for Template:Quote.
It contains usage information, categories and other content that is not part of the original template page.

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.