टेम्पलेट: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 | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Usage[संपादन करीं]
This is easier to type and is more wiki-like than the equivalent HTML Note: Block quotes do not normally contain quotation marks .Synopsis[संपादन करीं]
Parameters[संपादन करीं]
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 citations the way we are already doing with source citations. This is much more usable:
Later development can assign a CSS
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>
उदाहरण[संपादन करीं]
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 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. Put a break (newline) after the template, or the next blank line might be ignored. Preserving line breaks and spacing from the original[संपादन करीं]Use 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[संपादन करीं]The
The simplest workaround for this is to use the
TemplateData[संपादन करीं]This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for Gbq Adds a block quotation.
Errors[संपादन करीं]Pages where this template is not used correctly populate Category:Pages incorrectly using the quote template. 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}} |
|
---|---|---|
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}} |
|
इहो देखल जाय
[संपादन करीं]{{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
परिचय खातिर ऊपर दिहल गइल बिबरनलेख के टेम्पलेट:Gbq/doc से ट्रांसक्लूड क के इहाँ देखावल जा रहल बाटे। (संपादन करीं | इतिहास देखीं) संपादक लोग एह टेम्पलेट के अभ्यासपन्ना (सैंडबाक्स) (बनाईं | मिरर करीं) आ टेस्टकेस (बनाईं) पन्ना सभ पर अभ्यास आ प्रयोग (टेस्टिंग) क सकत बाटे। अनुरोध बा कि अगर श्रेणी जोड़े के होखे तब /doc उपपन्ना (सबपेज) पर जोड़ल जाय। एह टेम्पलेट के उपपन्ना (सबपेज) देखीं। |