Template:Quote inline: Difference between revisions
More actions
Created page with "<templatestyles src="Quote inline/styles.css" /><q {{#if: {{{title|}}} | title="{{{title}}}"}} class="inline-quote {{#if: {{{i|{{{italic|}}}}}} | inline-quote-italic}} {{#if: {{{q|{{{quotes|y}}}}}} | inline-quote-marks}}">{{Encodefirst|{{trim|{{{1|Example text}}}}}}}</q><noinclude> {{Documentation}}</noinclude>" |
No edit summary |
||
| Line 1: | Line 1: | ||
<templatestyles src="Quote inline/styles.css" /><q {{#if: {{{title|}}} | title="{{{title}}}"}} class="inline-quote {{#if: {{{i|{{{italic|}}}}}} | inline-quote-italic}} {{#if: {{{q|{{{quotes|y}}}}}} | inline-quote-marks}}">{{Encodefirst|{{trim|{{{1|Example text}}}}}}}</q><noinclude> | <templatestyles src="Template:Quote inline/styles.css" /><q {{#if: {{{title|}}} | title="{{{title}}}"}} class="inline-quote {{#if: {{{i|{{{italic|}}}}}} | inline-quote-italic}} {{#if: {{{q|{{{quotes|y}}}}}} | inline-quote-marks}}">{{Encodefirst|{{trim|{{{1|Example text}}}}}}}</q><noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> | ||
Latest revision as of 01:54, 16 March 2025
Example text
| This template uses TemplateStyles: |
Template {{quote inline}} (or the shortcut {{qi}}) is used to quote text inline.
For use on talk pages, see {{talk quote inline}}.
Usage
Parameters
|1=for text|title=for title|i=or|italic=for italic|q=or|quotes=for quotation marks (defaulted to 'yes')
Examples
- What you write
...when you said, {{qi|Lorem ipsum '''dolor''' sit}}, and, {{qi|consectetur adipiscing elit|i=yes|title=This is a tooltip}}.- What you get
- ...when you said,
Lorem ipsum dolor sit
, and,consectetur adipiscing elit
. - What you write
...when you said, {{qi|Lorem ipsum '''dolor''' sit|q=}}, and, {{qi|consectetur adipiscing elit|q=|i=yes|title=This is a tooltip}}.- What you get
- ...when you said,
Lorem ipsum dolor sit
, and,consectetur adipiscing elit
.
(Run your mouse over the words "consectetur adipiscing elit" and in a second you will see a tooltip pop up next to the mouse cursor which says, "This is a tooltip".)
TemplateData
TemplateData for Quote inline
Highlights a short excerpt of quoted material of other editors' comments or from an article or source
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | Text to highlight | Content | required |
| Title | title | Takes text, which cannot be marked up in any way, and displays it as a pop-up "tooltip" (in most browsers) when the cursor hovers over the span. The most common use of this is to provide attribution. | String | optional |
| Italic? | italic i | Makes the content italicised and the same sans-serif font as normal text | Boolean | optional |
| Quotes? | quotes q | Use 'yes' or any non-blank value to add quotation marks around the text
| Boolean | optional |