Difference between revisions of "Template:Gbq/doc"
Jump to navigation
Jump to search
imported>Pppery (→Usage: Strip categories from transclusion) |
imported>Plastikspork (Fix backlink to Template:Gbq/doc/boilerplate ) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
{{tlx|Gbq}} (for ''glossary block quotation''), {{aka}} {{tlx|Gquote}}, is a shortcut invocation of {{tlx|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 [[WP:Manual of Style/Glossaries|template-formatted glossaries]]. It supports all of the parameters of {{tl|Quote}}. | {{tlx|Gbq}} (for ''glossary block quotation''), {{aka}} {{tlx|Gquote}}, is a shortcut invocation of {{tlx|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 [[WP:Manual of Style/Glossaries|template-formatted glossaries]]. It supports all of the parameters of {{tl|Quote}}. | ||
| − | |||
| − | |||
| − | |||
| − | |||
==Comparison of output== | ==Comparison of output== | ||
{|class="wikitable" style="width: 90%;" | {|class="wikitable" style="width: 90%;" | ||
|- | |- | ||
| − | !{{ | + | !{{good|Gbq in glossary}} |
|style="width: 50%; vertical-align: top;"| | |style="width: 50%; vertical-align: top;"| | ||
<pre> | <pre> | ||
| Line 45: | Line 41: | ||
{{glossary end}} | {{glossary end}} | ||
|- | |- | ||
| − | !{{ | + | !{{bad|Quote in glossary}} |
|style="vertical-align: top;"| | |style="vertical-align: top;"| | ||
<pre> | <pre> | ||
| Line 84: | Line 80: | ||
{{Quotation templates|state=expanded}} | {{Quotation templates|state=expanded}} | ||
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Glossary templates]] | [[Category:Glossary templates]] | ||
Latest revision as of 20:49, 25 January 2021
| 40px | This is a documentation subpage for Template:Gbq. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{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}}.
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}}
|
|
See also
{{glossary}}a.k.a.{{gloss}}– Half of a template pair; uses<dl>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</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}}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- Wikipedia:Manual of Style/Glossaries