Difference between revisions of "usex/documentation"
Mediawiki>Benwing2 |
m (1 revision imported) |
(No difference)
|
Latest revision as of 21:00, 15 September 2020
This modules generates usage examples (usexes) and quotations for senses. It is used by Template:temp, Template:temp, Template:temp and Template:temp via Module:usex/templates.
Exported functions
format_usex
where
- Template:code
- If this is Template:code or Template:code, a usage example will be returned; if Template:code or truthy, a quotation. If the value is specifically Template:code, a quotation is returned, and the quoted text will be wrapped in both the CSS classes
e-quotation
andcited-passage
, for use by Template:temp and related templates; otherwise, only the CSS classe-quotation
will be used. (FIXME, we should consider eliminating this distinction.)