Template:Quote/doc: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
create documentation
 
template data
 
Line 1: Line 1:
=== Parameters ===
=== Configuration ===
<code><nowiki>{{quote|QUOTE TEXT|AUTHOR|SUBJECT|IMAGE}}</nowiki></code>
<code><nowiki>{{quote|QUOTE TEXT|AUTHOR|SUBJECT|IMAGE}}</nowiki></code>


Line 20: Line 20:


Note: Images get resized to 64px.
Note: Images get resized to 64px.
=== Parameters ===
<templatedata>
{
"params": {
"1": {
"label": "Text",
"type": "content",
"required": true
},
"2": {
"label": "Author",
"type": "string",
"suggested": true
},
"3": {
"label": "Topic",
"description": "Will append \"on (TOPIC)\" to the end of the author",
"type": "string"
},
"4": {
"label": "Image",
"description": "Add an image to the left of the quote.",
"example": "Trollface.svg",
"type": "wiki-file-name"
}
},
"format": "inline"
}
</templatedata>

Latest revision as of 10:14, 6 August 2020

Configuration[edit source]

{{quote|QUOTE TEXT|AUTHOR|SUBJECT|IMAGE}}

Examples[edit source]

{{quote|This is a quote.}} outputs:

This is a quote.

{{quote|This is a quote.|Your mom}} outputs:

This is a quote.

Your mom

{{quote|This is a quote.|Your mom|this template retard}} outputs:

This is a quote.

Your mom on This template retard

{{quote|This is a quote.|Your mom|this template retard|Trollface.svg}} outputs:

This is a quote.

Your mom on This template retard

Note: Images get resized to 64px.

Parameters[edit source]

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

no description

Contentrequired
Author2

no description

Stringsuggested
Topic3

Will append "on (TOPIC)" to the end of the author

Stringoptional
Image4

Add an image to the left of the quote.

Example
Trollface.svg
Fileoptional