Fyrimynd:Gbq/doc
Hetta er ein dokumentatión undirsíða til Fyrimynd:Gbq. Hon inniheldur kunning um nýtsluna, bólkar og um annað innihald, ið ikki er við í uppruna fyrimynd síðuni. |
Nýtsla
[rætta wikitekst]{{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 wikitekst]
This is easier to type and more wiki-like than the equivalent HTML Note: Block quotes do not normally contain quotation marks. See . Synopsis[rætta wikitekst]Unnamed (positional) parameters
Numbered (positional) parameters
Named parameters
Style[rætta wikitekst]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;
}
The source title is enclosed in Examples[rætta wikitekst]
Restrictions[rætta wikitekst]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 (=), 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ætta wikitekst]The
To work around this, use the
TemplateData[rætta wikitekst]Hetta 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ætta wikitekst]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. See also[rætta wikitekst] |
Comparison of output
[rætta wikitekst]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 wikitekst]Fyrimynd:Glossary templates see also