Template:Quoter/doc: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
mNo edit summary
Line 3: Line 3:


==Usage==
==Usage==
To use the template, copy and paste the following in the article where it should appear.
===Basic syntax===
<div id="usage" style="background-color: transparent; width: 375px;">
<pre><nowiki>{{</nowiki>Quoter
| align    =
| width    = 30em <!--Change as desired-->
| title    =
| quote    =
| source    =
}}</pre></div>
===Full syntax===
The full syntax with all parameters follows:
<div id="usage" style="background-color: transparent; width: 375px;">
<pre><nowiki>{{</nowiki>Quoter
| align    =
| width    = 30em <!--Change as desired-->
| title    =
| quote    =
| source    =
| border    = <!--Remove if not used-->
| fontsize  =
| bgcolor  =
| style    =
| title_bg  =
| title_fnt =
| tstyle    =
| qalign    =
| halign    =
| qstyle    =
| quoted    =
| salign    =
| sstyle    =
}}</pre></div>


==Parameters==
==Parameters==
Line 29: Line 64:
|-
|-
| {{code|qalign}} || Quote alignment || String || Optional || Defaults to <code><nowiki>{{{halign|left}}}</nowiki></code>
| {{code|qalign}} || Quote alignment || String || Optional || Defaults to <code><nowiki>{{{halign|left}}}</nowiki></code>
|-
| {{code|halign}} ||  || String || Optional || Defaults to {{code|left}}
|-
|-
| {{code|qstyle}} || Quote style || String || Optional ||
| {{code|qstyle}} || Quote style || String || Optional ||
Line 44: Line 81:
-->
-->
==Example==
==Example==
An example is coming soon...

Revision as of 20:11, 27 February 2025

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

The {{quoter}} template places a box with a quotation in an article with article text floating around it. It is not intended for blockquotes which should use <blockquote>...</blockquote> tags.

Usage

To use the template, copy and paste the following in the article where it should appear.

Basic syntax

{{Quoter
| align     =
| width     = 30em <!--Change as desired-->
| title     =
| quote     =
| source    =
}}

Full syntax

The full syntax with all parameters follows:

{{Quoter
| align     =
| width     = 30em <!--Change as desired-->
| title     =
| quote     =
| source    =
| border    = <!--Remove if not used-->
| fontsize  =
| bgcolor   =
| style     =
| title_bg  =
| title_fnt =
| tstyle    =
| qalign    =
| halign    =
| qstyle    =
| quoted    =
| salign    =
| sstyle    =
}}

Parameters

Parameter Description Type Status Notes
align Float position Text Optional Defaults to right. Other options: left, center, none
width Box width String Optional Defaults to full page unless a value is set
border Box border String Optional Defaults to 1px
fontsize Font size String Optional Defaults to 88%
bgcolor Box background color String Optional Defaults to #F9F9F9 ()
style Box style String Optional
title Quote title String Optional
title_bg Title background String Optional Defaults to {{{bgcolor}}}
title_fnt Title font color String Optional Defaults to black ()
tstyle Title style String Optional
qalign Quote alignment String Optional Defaults to {{{halign|left}}}
halign String Optional Defaults to left
qstyle Quote style String Optional
quoted String Optional
quote
1
Quote text String Optional
salign Signature alignment String Optional Defaults to {{{qalign}}}
sstyle Signature style String Optional
source
2
Source/author String Optional

Example

An example is coming soon...