This module allows for easier and more consistent formatting of quotations, designed especially for the requirements of classical and ancient languages. It usesModule:Quotations as a back-end.
|1=|2=|3=|4=,|5=,|6=,|7=,|8=|thru=|3=1|4=120|thru=122.|quote=,|text=, or|passage=|year=|t= or|trans=|transyear=|transauthor=|tr=|ts=|lit=|notes=|object=|refn=<ref> tags or{{refn}}.|form=full, which displays all information.inline skips the year, quote, and translation,work further trims the author, andref further eliminates the work, leaving only the chapter and verse(s).|style=i (italicized). Other possible values areno (unformatted) andq (enclosed in quotation marks).|subst=FROM//TO (FROM/TO is also accepted), whereFROM is the source text as found in the quote, andTO is the corresponding respelling in the source script (e.g. Cyrillic, Hebrew or Devanagari). The substitutions are applied in order and before transliteration. The idea is to phonetically respell words with irregular transliteration so that the transliteration comes out correctly, without the need to manually transliterate the entire quote using|tr=. Note thatFROM andTO are actually Lua patterns (seeWT:LUA). This means, for example, that a hyphen in the source text needs to be "escaped" by writing it as%-. See below for an example of using this parameter. Other examples may be found in the documentation for{{usex}} and{{quote}}.With the exception of the first parameter, all parameters are optional; the template/module is designed to work around whatever information is given.
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,Iliad1.23
{{Q|grc|Author|Work|Chapter 1|Verse 2}} →Author,Work Chapter 1.Verse 2
Here is a full list of language-specific libraries in the Module: namespace. The libraries end in/data.
Wikitext (with subst=)
#* {{Q|hi|Premchand|Aatmaaraam|quote=उस धुँधले प्रकाश में उसका जर्जर शरीर, पोपला मुँह, और झुकी हुई कमर देखकर किसी '''अपरिचित''' मनुष्य को उसके पिशाच होने का भ्रम हो सकता था।|trans=In that dimmed light, his aged body, toothless mouth, and hunched-over waist might cause a '''stranger''' to mistake him for an evil spirit.|subst=अपरिचित//अप*रिचित}}Output (with subst=)
Here, a substitution is used to forceअपरिचित to be transliterated asaparicit instead of the defaultapricit.