×
Créer un nouvel article
Écrivez le titre de votre page ici :
Nous avons actuellement 197 articles sur RDWiki. Saisissez votre nom d’article au-dessus de ou cliquez sur un des titres ci-dessous et commencez à écrire !



RDWiki

« Modèle:Citation/doc » : différence entre les versions

Aisuuuuu (discussion | contributions)
Page créée avec « == Description == This template is used to create stylized pull quotes. <strong>Note: Set the template type to Design, <u>and not Quote.</u> This is to fix mobile styling.</strong> == Syntax == <code><nowiki>{{Quote|<Quote>|<By>|5=align=left|6=style=margin: 10em;|style=pre|block=y}}</nowiki></code> === Parameters === ;<code>1=</code> ''<code>quote=</code>'' :The main quote block. : ;<code>2=</code> ''<code>person=</code>'' :The person who said the quote. The f... »
 
Aisuuuuu (discussion | contributions)
Aucun résumé des modifications
Ligne 5 : Ligne 5 :
== Syntax ==
== Syntax ==
<code><nowiki>{{Quote|<Quote>|<By>|5=align=left|6=style=margin: 10em;|style=pre|block=y}}</nowiki></code>
<code><nowiki>{{Quote|<Quote>|<By>|5=align=left|6=style=margin: 10em;|style=pre|block=y}}</nowiki></code>
 
<noinclude>
=== Parameters ===
;<code>1=</code> ''<code>quote=</code>''
:The main quote block.
:
;<code>2=</code> ''<code>person=</code>''
:The person who said the quote.
 
The following parameters are optional.
;<code>3=</code> ''<code>source=</code>''
:The source of the quote. Can be a reference tag, like <code><nowiki>Book<ref>Example&lt;/ref></nowiki></code>
:
;<code>image=</code> ''<code>4=</code>''
:Optional image at the start of the quote. The <code>File:</code> namespace prefix is not needed. Size hardcoded to 50px.
:
;<code>align=</code>
:Alignment of the quote box. Defaults to <code>center</code>. Can be <code>left</code> or <code>right</code>
:
;<code>width=</code>
:The width of the quote box. Defaults to <code>80%</code> if centered, or <code>300px</code> if aligned left/right.
:
;<code>style=</code> ''<code>css=</code>''
:Optional styling for the base <<nowiki/>blockquote/> element.
 
=== TemplateData ===
<templatedata>
{
"params": {
"1": {
"aliases": [
"quote",
"text"
],
"label": "Quote text",
"description": "The main quote text by a person.",
"type": "string",
"autovalue": "''Quote text here''",
"required": true
},
"2": {
"aliases": [
"by",
"person"
],
"label": "Quote speaker",
"description": "The person/character/object who stated the quote.",
"example": "John",
"type": "string",
"suggested": true
},
"3": {
"aliases": [
"source",
"from"
],
"label": "Quote source",
"description": "The source of the quote. Can be a named reference tag",
"example": "Book of something",
"type": "string",
"suggested": true
},
"4": {
"aliases": [
"image"
],
"label": "Blockquote image",
"description": "Custom blockquote image tht replaces the quotation mark; remove the File: namespace",
"type": "wiki-file-name",
"default": "Defaults to the large quotation mark (\")"
},
"class": {
"label": "Blockquote classes",
"description": "Additional classes for the base <blockquote> template",
"type": "string"
},
"align": {
"label": "Blockquote align",
"description": "The alignment of the blockquotequote. Available options: left - right - center",
"example": "left, right, center",
"type": "string",
"default": "center"
},
"style": {
"aliases": [
"css"
],
"label": "Blockquote styles",
"description": "Custom styling for the base <blockquote> element",
"type": "string"
},
"width": {
"label": "Blockquote width",
"description": "Custom width for the base <blockquote> element",
"example": "80%, 300px",
"type": "string"
}
},
"description": "This template is used to create styled quotes. Basically, a better version of the standard \"block quote\" used normally.",
"format": "block",
"paramOrder": [
"1",
"2",
"3",
"4",
"class",
"align",
"style",
"width"
]
}
</templatedata><noinclude>
[[Category:Modèles]]
[[Category:Modèles]]


[[Category:Documentation de Modèles]]
[[Category:Documentation de Modèles]]
</noinclude>
</noinclude>

Version du 14 mai 2025 à 17:35

Description

This template is used to create stylized pull quotes. Note: Set the template type to Design, and not Quote. This is to fix mobile styling.

Syntax

{{Quote|<Quote>|<By>|5=align=left|6=style=margin: 10em;|style=pre|block=y}}