Fyrimynd:Gbq
{{{1}}}
Nýtsla rætta
{{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 | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Fyri linking a subject to a collection of quotes on Wikiquote, sí Template:Wikiquote.
Usage rætta
This is easier to type and more wiki-like than the equivalent HTML Note: Block quotes do not normally contain quotation marks. See MOS:Blockquote. Synopsis rættaUnnamed (positional) parameters
Numbered (positional) parameters
Named parameters
Style rættaStyling 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;
}
The source title is enclosed in Examples rætta
Restrictions rættaIf 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 (=), you must use named parameters or a blank-name parameter, as: {{{|text}}}. (The text before the equals sign gets interpreted as a named parameter otherwise.) 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. Be wary of URLs which contain restricted characters. The equals sign is especially common. Put a break (newline) after the template, or the next blank line might be ignored. Line breaks rættaThe
To work around this, use the
TemplateData rættaHetta er TemplateData dokumentatiónin fyri hesa fyrimynd, ið verður brúkt av VisualEditor og øðrum tólum.
Gbq Adds a block quotation.
Known problems rættaThis template sets a text style which might ignore one blank line, and so the template must be ended with a break (newline). Otherwise, beware inline, as:
Unless a {{quote|xx}} is ended with a line break, then the next blank line might be ignored and two paragraphs joined. See also rætta |
Comparison of output rætta
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}} |
|
Sí eisini rætta
Fyrimynd:Glossary templates see also
Dokumentatiónin omanfyri er tikin frá Fyrimynd:Gbq/doc. (rætta | søga) Editors can experiment in this template's sandkassi (upprætta | mirror) and testcases (upprætta) pages. Please add categories to the /doc subpage. Undirsíður til hesa/hetta fyrimyndina. |