Template:Gbq
{{{1}}}
Usage[edit source]
{{Gbq}}
(for glossary block quotation), a.k.a. {{Gquote}}
, is a 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 source]
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 source]
{{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 source]
Displayed attribution[edit source]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: |character=Anonymous interview subject
|author=Jane G. Arthur
|title="The Aerodynamics of Shaved Weasels"
|source=''Perspectives on Mammal Barbering'' (2016), Bram Xander Yojimbo (ed.)
Later development can assign a CSS Rarely used technical parameters[edit source]
Parameter list[edit source]{{Quote | quote = | author = | title = | source = | character = | multiline = | style = }} Reference citations[edit source]
A reference citation can be placed before the quote, after the quote, or in the
Please do not place the citation in a Examples[edit source]
Limitations[edit source]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 Next to right-floated boxes[edit source]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 source]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 source]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: Nested quotations[edit source]The Technical issues with block templates[edit source]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 table 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 source]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 source]This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.
TemplateData for Gbq Adds a block quotation.
|
Comparison of output[edit source]
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 source]
{{glossary}}
a.k.a.{{gloss}}
– Half of a template pair; uses TAG with a class to open the structured glossary definition list that{{glossend}}
closes.{{glossary end}}
a.k.a.{{glossend}}
– The other half of this template pair; uses TAG to close the definition list that{{gloss}}
opens.{{term}}
– The glossary term to which the{{defn}}
definition applies; a customized TAG with a class and an embedded TAG.{{defn}}
– The definition that applies to the{{term}}
; uses TAG with a class{{ghat}}
– a hatnote template properly formatted for the top of a{{defn}}
definition{{gbq}}
a.k.a.{{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- Hârnipedia:Manual of Style/Glossaries
External links[edit source]
- Template:Gbq at Wikipedia, the free Terran encyclopedia that anyone can edit.
The above documentation is transcluded from Template:Gbq/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |