Template:Quote: Difference between revisions

From PZwiki
m (noinclude)
(changed inline style to use css class)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Languages}}
{{Documentation/sandbox|doc =
{{Documentation}}
This template is used to provide a pre-made style for quotes.
[[Category:Templates]]
 
</noinclude><includeonly>{|
==Usage==
| rowspan = 2 style="font: bold 5em/0.02em 'Georgia', 'Times New Roman', 'Times', serif; color: black; border-right: 1px solid black; padding: 25px 0.06em 0em 0.2em;" | &ldquo;
===Parameters===
| style="font-family: 'Georgia', 'Times New Roman', 'Times', serif; font-style: italic; line-height: 1.53846em; padding-left: 15px; font-size: 1.1em" | &ldquo;{{{text}}}&rdquo;
;<code>text</code> {{sup|required}}
|-
:The text of the quote.
{{#if:{{{author|}}}| {{!}} style="text-align: left; font-size: 0.9em; font-style: italic; margin-top: 0; padding-left: 120px;" {{!}} &mdash; {{{author}}}}}
;<code>author</code>
|}</includeonly>
:The author of the quote.
 
==Examples==
*{{tll|Quote|text{{=}}This is a quote}}
{{Quote|text=This is a quote}}
*{{tll|Quote|text{{=}}This is a quote|author{{=}}Author}}
{{Quote|text=This is a quote|author=Author}}
 
{{Translation guide}}
 
==See also==
*[[wikipedia:Template:Cquote]]
}}
{{ll|Category:Templates}}
</noinclude><includeonly><div class="quote">
  <div class="quote-mark">&ldquo;</div>
  <div class="quote-text">{{{text|}}}{{#if:{{{author|}}}|<div class="quote-author">&mdash; {{{author}}}</div>}}</div>
</div></includeonly>

Latest revision as of 07:29, 29 March 2024

Notebook.pngTemplate Documentation

This template is used to provide a pre-made style for quotes.

Usage

Parameters

text Required
The text of the quote.
author
The author of the quote.

Examples

  • {{Quote|text=This is a quote}}
This is a quote
  • {{Quote|text=This is a quote|author=Author}}
This is a quote
— Author

How to translate

This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. Copy the code wrapped in the <noinclude> tag in this template into the page you created.
    {{Translation guide}} template should be removed from the translated documentation.
  3. Translate the page according to the translation requirements of normal pages.

See also

Editors can experiment in this template's sandbox.