Template:Q/documentation: difference between revisions

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
Line 38: Line 38:
<includeonly>
<includeonly>
[[Category:Quotation reference templates]]
[[Category:Quotation reference templates]]

[[fa:الگو:ق]]
</includeonly>
</includeonly>

Revision as of 13:25, 3 June 2017

Documentation for Template:Q. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This module allows for easier and more consistent formatting of quotations. It uses Module:Quotations as a back-end.

Parameters

1=
The language of the quotation.
2=
The name of the author
3=
The title of the work
4=, 5=, 6=, 7=, 8=
The reference of the text within the work, with chapters, verses, subverses, etc. each added in a separate parameter, using as many (or as few) as are needed
thru=
Used to specify a range, so if the passage is 1:120–122, use (3=1|4=120|thru=122)
quote=
The actual text
year=
The year or range of years of the work
trans=
An English translation of the text
transyear=
The year of the translation
transauthor=
The author of the translation
notes=
Parentheses enclosed information after the reference.
form=
Determines the amount of information presented. The default is "full", which displays all information. "inline" skips the year, quote, and translation, "work" further trims the author, and "ref" further eliminates the work, leaving only the chapter and verse(s).

With the exception of the first parameter, all parameters are optional; the template/module is designed to work around whatever information is given.

Operation

The module accesses language-specific libraries of information on works and authors, and if the information is coded, will add formatting to the quote, such as linking the author and/or work, as well as linking to the relevant text. If no information can be found on the information given, it will simply display it with basic text formatting. Thus the following code results in the following displays:

{{Q|grc|Homer|Iliad|1|23}} ----> Homer, Iliad 1.23

{{Q|grc|Author|Work|Chapter 1|Verse 2}} ----> Author, Work Chapter 1.Verse 2