Template:Quote box: Difference between revisions
m (Removed protection from "Template:Quote box") |
(Template Data) |
||
Line 51: | Line 51: | ||
</div><noinclude> | </div><noinclude> | ||
See [http://en.wikipedia.org/wiki/Template:Quote_box wikipedia quote box] for documentation and how to use. | See [http://en.wikipedia.org/wiki/Template:Quote_box wikipedia quote box] for documentation and how to use. | ||
[[Category:Templates]] | |||
</noinclude> | {{Clear}} | ||
{{Navbox|TITLE=Template Data| | |||
<templatedata> | |||
{ | |||
"params": { | |||
"align": { | |||
"label": "Alignment", | |||
"description": "Placement of the box on the page, left, right or center. Option \"none\" places the box in text without wrapping.", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"left", | |||
"right", | |||
"center", | |||
"none" | |||
], | |||
"default": "right" | |||
}, | |||
"width": { | |||
"label": "Width", | |||
"description": "Width of the box. Use CSS measure units, e.g. pixels (px), em, %", | |||
"example": "100px", | |||
"type": "line" | |||
}, | |||
"border": { | |||
"label": "Border", | |||
"description": "Width of the grey border around the box. Use CSS measure units, e.g. pixels (px), em", | |||
"example": "2px", | |||
"type": "wiki-file-name", | |||
"default": "1px" | |||
}, | |||
"fontsize": { | |||
"label": "Font size", | |||
"description": "Size of the font used in the box. Use CSS measure units, e.g. pixels (px), em, %", | |||
"example": "16px", | |||
"type": "line", | |||
"default": "88%" | |||
}, | |||
"bgcolor": { | |||
"label": "Background color", | |||
"description": "Background color of the box. Use any color naming system recognized in CSS, e.g. HTLM names or HEX", | |||
"example": "red", | |||
"type": "line", | |||
"default": "#F9F9F9" | |||
}, | |||
"style": { | |||
"label": "CSS Style", | |||
"description": "Open CSS style option for the box, supersedes other box style options", | |||
"example": "border: black 5px double;", | |||
"type": "string" | |||
}, | |||
"title": { | |||
"label": "Title", | |||
"description": "Title displayed above the quote", | |||
"example": "Sample Quote", | |||
"type": "string" | |||
}, | |||
"title_bg": { | |||
"label": "Title background color", | |||
"description": "Background color for the title (if title exists). If empty, uses box's background color. Use any color naming system recognized in CSS, e.g. HTLM names or HEX", | |||
"example": "blue", | |||
"type": "line", | |||
"default": "#F9F9F9" | |||
}, | |||
"title_fnt": { | |||
"label": "Title font color", | |||
"description": "Font color of the title (if title exists). Use any color naming system recognized in CSS, e.g. HTLM names or HEX.", | |||
"example": "green", | |||
"type": "line", | |||
"default": "black" | |||
}, | |||
"tstyle": { | |||
"label": "Title CSS Style", | |||
"description": "Open CSS style option for the title (if title exists), supersedes other title style options.", | |||
"example": "font-size: 2em;", | |||
"type": "string" | |||
}, | |||
"qalign": { | |||
"aliases": [ | |||
"halign" | |||
], | |||
"label": "Quote alignment", | |||
"description": "Alignment of the quote text in the box, left, right or center", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"left", | |||
"right", | |||
"center", | |||
"justify" | |||
], | |||
"default": "left" | |||
}, | |||
"qstyle": { | |||
"label": "Quote CSS Style", | |||
"description": "Open CSS style option for the quote, supersedes other quote style options.", | |||
"example": "font-weight: bold; background: silver;", | |||
"type": "string" | |||
}, | |||
"quoted": { | |||
"label": "Quote signs", | |||
"description": "Adds large quote signs “ ” around the quote text. Any text in this parameters causes the signs to appear, leave empty if you do not want them.\n", | |||
"example": "yes", | |||
"type": "line" | |||
}, | |||
"quote": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "Quote", | |||
"description": "The quote displayed in the box", | |||
"example": "\"...to boldly go where no man has gone before.\"", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"salign": { | |||
"label": "Source alignment", | |||
"description": "Alignment of the source (if source exists), left, right or center. If empty, source is aligned similarily to the quote.", | |||
"example": "center", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"left", | |||
"right", | |||
"center", | |||
"justify" | |||
], | |||
"default": "left" | |||
}, | |||
"sstyle": { | |||
"label": "Source CSS Style", | |||
"description": "Open CSS style option for the source (if source exists), supersedes other source style options.", | |||
"example": "color: purple;", | |||
"type": "string" | |||
}, | |||
"source": { | |||
"aliases": [ | |||
"2" | |||
], | |||
"label": "Source", | |||
"description": "Source of the quote, e.g. author", | |||
"example": "—James T. Kirk", | |||
"type": "string", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "Displays a quote in a box with flexible styling options.", | |||
"paramOrder": [ | |||
"quote", | |||
"source", | |||
"title", | |||
"align", | |||
"width", | |||
"border", | |||
"fontsize", | |||
"bgcolor", | |||
"style", | |||
"title_bg", | |||
"title_fnt", | |||
"tstyle", | |||
"qalign", | |||
"qstyle", | |||
"quoted", | |||
"salign", | |||
"sstyle" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata>}} | |||
[[Category:Templates]]</noinclude> |
Latest revision as of 11:13, 8 January 2024
"...to boldly go where no man has gone before."
See wikipedia quote box for documentation and how to use.
Displays a quote in a box with flexible styling options.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Quote | quote 1 | The quote displayed in the box
| String | required |
Source | source 2 | Source of the quote, e.g. author
| String | suggested |
Title | title | Title displayed above the quote
| String | optional |
Alignment | align | Placement of the box on the page, left, right or center. Option "none" places the box in text without wrapping.
| Line | optional |
Width | width | Width of the box. Use CSS measure units, e.g. pixels (px), em, %
| Line | optional |
Border | border | Width of the grey border around the box. Use CSS measure units, e.g. pixels (px), em
| File | optional |
Font size | fontsize | Size of the font used in the box. Use CSS measure units, e.g. pixels (px), em, %
| Line | optional |
Background color | bgcolor | Background color of the box. Use any color naming system recognized in CSS, e.g. HTLM names or HEX
| Line | optional |
CSS Style | style | Open CSS style option for the box, supersedes other box style options
| String | optional |
Title background color | title_bg | Background color for the title (if title exists). If empty, uses box's background color. Use any color naming system recognized in CSS, e.g. HTLM names or HEX
| Line | optional |
Title font color | title_fnt | Font color of the title (if title exists). Use any color naming system recognized in CSS, e.g. HTLM names or HEX.
| Line | optional |
Title CSS Style | tstyle | Open CSS style option for the title (if title exists), supersedes other title style options.
| String | optional |
Quote alignment | qalign halign | Alignment of the quote text in the box, left, right or center
| Line | optional |
Quote CSS Style | qstyle | Open CSS style option for the quote, supersedes other quote style options.
| String | optional |
Quote signs | quoted | Adds large quote signs “ ” around the quote text. Any text in this parameters causes the signs to appear, leave empty if you do not want them.
| Line | optional |
Source alignment | salign | Alignment of the source (if source exists), left, right or center. If empty, source is aligned similarily to the quote.
| Line | optional |
Source CSS Style | sstyle | Open CSS style option for the source (if source exists), supersedes other source style options.
| String | optional |