Предлошка:Gbq
„{{{1}}}”
Usage[уреди извор]
{{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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
За linking a subject to a collection of quotes on Wikiquote, видете Template:Wikiquote.
Usage[уреди извор]
This is easier to type and is more wiki-like than the equivalent HTML Note: Block quotes do not normally contain quotation marks Предлошка:Crossref. Synopsis[уреди извор]
Parameters[уреди извор]
Reference citations[уреди извор]A reference citation can be placed:
Please do not place the citation in a Style[уреди извор]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>
<cite><div class="templatequotecite">—Author, Source</div></cite>
</blockquote>
The Examples[уреди извор]Limitations[уреди извор]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 en: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. 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. As noted above, the Next to left-floated images[уреди извор]The variant template Next to right-floated boxes[уреди извор]Од септември 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[уреди извор]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[уреди извор]Предлошка:Blockquote paragraphs TemplateData[уреди извор]Adds a block quotation.
Errors[уреди извор]Pages where this template is not used correctly populate Known problems[уреди извор]This 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. Поврзано[уреди извор]
|
Comparison of output[уреди извор]
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}} |
Conclusion of long definition.
|
---|---|---|
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}} |
Conclusion of long definition.
|
Поврзано[уреди извор]
{{glossary}}
– Half of a template pair; uses<dl></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><//dl>
to close the definition list that{{gloss}}
opens.{{term}}
– The glossary term to which the{{defn}}
definition applies; a customized<dt></dt>
with a class and an embedded<dfn></dfn>
.{{defn}}
– The definition that applies to the{{term}}
; uses<dd></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
Гореприкажаната докуменација е превметната од Предлошка:Gbq/doc. (уреди | историја) Уредниците можат да експериментираат во песочникот (создај | отсликана) и мострите (создај). Категориите ставајте ги во потстраницата „/doc“. Потстраници на предлошкава. |