Template:Gbq
{{{1}}}
Usage[edit]
{{Gbq}}
(for glossary block quotation) a.k.a. {{Gquote}}
is an shortcut invocation of {{quote|style=margin-top: 0; margin-bottom: -0.5em;|...}}
It reduces the large top and bottom padding of block quotations to fit better (and more consistently with other inline-block elements like lists), when used inside definitions in template-formatted glossaries.
It supports all of the parameters of {{quote}}.
Documentation of Template:Quote
| |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Usage[edit]
This is easier to type and is more wiki-like than the equivalent HTML Note: Block quotes do not normally contain quotation marks .
Examples[edit]
{{Quote |text=Quoted material. }}
{{Quote |text=Quoted material. |author=First M. Last }}
{{Quote |text=Quoted material. |author=First M. Last |title="Article Title" |source=''Book Title'' (date) }} Parameters[edit]
Displayed attribution[edit]These parameters for for displaying attribution information below the quote; this should not be confused with a citing a source
Technically, all citation information can be given in a single parameter, as in:
But this is a bit messy, and will impede later efforts to generate metadata from quotation attribution the way we are already doing with source citations. This is much more usable:
Later development can assign a CSS Rarely used technical parameters[edit]
Parameter list[edit]{{Quote | quote = | author = | title = | source = | character = | multiline = | style = }} Reference citations[edit]
A reference citation can be placed before the quote, after the quote, or in the
Please do not place the citation in a Style[edit]Styling is applied through CSS rules in MediaWiki:Common.css. /* Styling for Template:Quote */
blockquote.templatequote {
margin-top: 0;
}
blockquote.templatequote div.templatequotecite {
line-height: 1.5em;
/* @noflip */
text-align: left;
/* @noflip */
padding-left: 1.6em;
margin-top: 0;
}
HTML: <blockquote class="templatequote">
<p>Quote text.</p>
<div class="templatequotecite"><cite>—Author, Source</cite></div>
</blockquote>
Examples[edit]
Limitations[edit]If you do not provide text, the template generates a parser error message, which will appear in red text in the rendered page. If any parameter's actual value contains an equals sign ( If any parameter's actual value contains characters used for wiki markup syntax (such as pipe, brackets, single quotation marks, etc.), you may need to escape it. See Template:! and friends. Next to right-floated boxes[edit]As of September 2015[update], the text of a block quotation may rarely overflow (in Firefox or other Gecko browsers) a right-floated item (e.g. a
There may be other solutions, and future browser upgrades may eliminate the issue. It arises at all because of the Vanishing quotes[edit]In rare layout cases, e.g. when quotes are sandwiched between userboxes, a quotation may appear blanked out, in some browsers. The workaround for this problem is to add Line breaks[edit]The
The simplest workaround for this is to use the
This template sets a text style which might ignore one blank line, and so the template must be ended with a break (newline) or the next blank line might be ignored. Otherwise, beware inline, as:
spans a blank line, unless a {{quote|...}} is ended with a line break, then the next blank line might be ignored and two paragraphs joined. Nested quotations[edit]The Technical issues with block templates[edit]If the block-formatted content begins with a list (or any other wikimarkup that is dependent upon a specific markup character being at the beginning of a line) then due to a bug in MediaWiki, a
To embed a template in block markup like this, the block template's content parameter must be named or numbered and include the self-closing noinclude – as in Errors[edit]Pages where this template is not used correctly populate Category:Pages incorrectly using the quote template. The category tracks tranclusions of Template:Quote that have no text given for quotation or use an equals sign in the argument of an unnamed parameter. It also tracks usage of TemplateData[edit]This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Gbq Adds a block quotation.
|
Comparison of output[edit]
Gbq in glossary |
{{glossary}} {{term|term 1}} {{defn|Definition 1.}} {{defn|Definition 2.}} {{term|term 2}} {{defn|Beginning of long definition. {{gbq|Block quotation.}} Conclusion of long definition. }} {{term|term 3}} {{defn|Definition with list: * Point 1 * Point 2.}} {{glossary end}} |
|
---|---|---|
Quote in glossary |
{{glossary}} {{term|term 1}} {{defn|Definition 1.}} {{defn|Definition 2.}} {{term|term 2}} {{defn|Beginning of long definition. {{quote|Block quotation.}} Conclusion of long definition. }} {{term|term 3}} {{defn|Definition with list: * Point 1 * Point 2.}} {{glossary end}} |
|
See also[edit]
{{glossary}}
– Half of a template pair; uses<dl>
with a class to open the structured glossary definition list that{{glossend}}
closes.{{glossary end}}
– The other half of this template pair; uses</dl>
to close the definition list that{{gloss}}
opens.{{term}}
– The glossary term to which the{{defn}}
definition applies; a customized<dt>
with a class and an embedded<dfn>
.{{defn}}
– The definition that applies to the{{term}}
; uses<dd>
with a class{{ghat}}
– a hatnote template properly formatted for the top of a{{defn}}
definition{{gbq}}
or{{gquote}}
– a block quotation template properly formatted for inclusion in a{{defn}}
definition{{glossary link}}
– meta-template for creating shortcut templates for linking to definitions in specific glossaries- Wikipedia:Manual of Style/Glossaries