Template:Quote/doc: Difference between revisions
Jump to navigation
Jump to search
create documentation |
template data |
||
Line 1: | Line 1: | ||
=== | === 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:
“ |
|
„ |
{{quote|This is a quote.|Your mom}}
outputs:
“ |
|
„ |
— Your mom |
{{quote|This is a quote.|Your mom|this template retard}}
outputs:
“ |
|
„ |
— Your mom on This template retard |
{{quote|This is a quote.|Your mom|this template retard|Trollface.svg}}
outputs:
“ |
|
„ | |
— Your mom on This template retard |
Note: Images get resized to 64px.
Parameters[edit source]
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | no description | Content | required |
Author | 2 | no description | String | suggested |
Topic | 3 | Will append "on (TOPIC)" to the end of the author | String | optional |
Image | 4 | Add an image to the left of the quote.
| File | optional |