Difference between revisions of "Template:Literal translation/doc"
imported>Menchi (explantion) |
imported>Menchi (replace a rarely used example (italics, apparently this template was based off {{circa}}) with a more useful one (unlinking) // To fill out missing fields in documentation // List synonyms) |
||
| Line 7: | Line 7: | ||
* <code><nowiki>{{literal translation}}</nowiki></code> → {{literal translation}} | * <code><nowiki>{{literal translation}}</nowiki></code> → {{literal translation}} | ||
* <code><nowiki>{{literal translation|lk=yes}}</nowiki></code> → {{literal translation|lk=yes}} | * <code><nowiki>{{literal translation|lk=yes}}</nowiki></code> → {{literal translation|lk=yes}} | ||
| − | * <code><nowiki>{{literal translation| | + | * <code><nowiki>{{literal translation|lk=no}}</nowiki></code> → {{literal translation|lk=no}} |
* <code><nowiki>{{literal translation|a}}</nowiki></code> → {{literal translation|a}} | * <code><nowiki>{{literal translation|a}}</nowiki></code> → {{literal translation|a}} | ||
| − | * <code><nowiki>{{literal translation|''a''}}</nowiki></code> → {{literal translation|''a''}} | + | * <code><nowiki>{{literal translation|''a'' A}}</nowiki></code> → {{literal translation|''a'' A}} |
* <code><nowiki>{{literal translation|a|b}}</nowiki></code> → {{literal translation|a|b}} | * <code><nowiki>{{literal translation|a|b}}</nowiki></code> → {{literal translation|a|b}} | ||
* <code><nowiki>{{literal translation|a|b|c|d}}</nowiki></code> → {{literal translation|a|b|c|d}} | * <code><nowiki>{{literal translation|a|b|c|d}}</nowiki></code> → {{literal translation|a|b|c|d}} | ||
For now, the template takes up to four separate translations (<code>|a|b|c|d</code>). If each meaning is a single word, using serial commas is another stylistic choice: <code>a, b, c, d</code>. | For now, the template takes up to four separate translations (<code>|a|b|c|d</code>). If each meaning is a single word, using serial commas is another stylistic choice: <code>a, b, c, d</code>. | ||
| + | |||
| + | Unlinking (<code>lk=no</code>) avoids cluttering the same paragraph or list with repetitive overlinking of "{{lit.}}". | ||
== Spacing demonstration == | == Spacing demonstration == | ||
| Line 33: | Line 35: | ||
"1": { | "1": { | ||
"label": "literal meaning", | "label": "literal meaning", | ||
| − | " | + | "description": "Gloss for a term", |
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
"2": { | "2": { | ||
| − | "label": " | + | "label": "2nd literal meaning", |
| + | "description": "Another meaning, if any", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "3": { | ||
| + | "label": "3rd literal meaning", | ||
| + | "description": "Another meaning, if any", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "4": { | ||
| + | "label": "4th literal meaning", | ||
| + | "description": "Another meaning (last possible), if any", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"sortable": { | "sortable": { | ||
| − | "type": "string" | + | "type": "string", |
| + | "description": "In sortable tables, ignore 'lit.'" | ||
}, | }, | ||
"i": { | "i": { | ||
"label": "italic", | "label": "italic", | ||
| + | "description": "If 'yes', the prefix 'lit.' is italicized. The meaning is still not italicized. Italics of either is almost never necessary stylistically.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"lk": { | "lk": { | ||
"label": "link", | "label": "link", | ||
| − | "type": "string" | + | "type": "string", |
| + | "description": "If 'yes' or 'on', linked to the article on literal translation. If 'no' or 'off', no links or dashed underlines." | ||
} | } | ||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
| + | |||
| + | ==Redirects== | ||
| + | Any of the following can be used instead of {{tl|literal translation}}, with the same parameters and results: | ||
| + | *{{tl|Lit}} / {{tl|lit}} | ||
| + | *{{tl|Lit.}} / {{tl|lit.}} | ||
| + | *{{tl|Literally}} / {{tl|literally}} | ||
Revision as of 09:09, 7 August 2020
| This is a documentation subpage for Template:Literal translation. It contains usage information, categories and other content that is not part of the original template page. |
Currently this template uses single quotation marks ('…'), because the present Wikipedia's Manual of Style (MOS:SINGLE) suggests that simple glosses be enclosed this way.
Usage
{{literal translation}}→ lit.{{literal translation|lk=yes}}→ lit.{{literal translation|lk=no}}→ lit.{{literal translation|a}}→ lit.Template:Sp 'a'{{literal translation|''a'' A}}→ lit.Template:Sp 'a A'{{literal translation|a|b}}→ lit.Template:Sp 'a'Template:Sp or 'b'{{literal translation|a|b|c|d}}→ lit.Template:Sp 'a'Template:Sp or 'b'Template:Sp or 'c'Template:Sp or 'd'
For now, the template takes up to four separate translations (|a|b|c|d). If each meaning is a single word, using serial commas is another stylistic choice: a, b, c, d.
Unlinking (lk=no) avoids cluttering the same paragraph or list with repetitive overlinking of "lit.".
Spacing demonstration
a{{literal translation}}bcd→ alit.bcda{{literal translation|i=yes}}bcd→ alit.bcda{{literal translation|b}}cd→ alit.Template:Sp 'b'cda{{literal translation|b|i=yes}}cd→ alit.Template:Sp 'b'cda{{literal translation|b|c}}d→ alit.Template:Sp 'b'Template:Sp or 'c'da{{literal translation|b|c|i=yes}}d→ alit.Template:Sp 'b'Template:Sp or 'c'd
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| literal meaning | 1 | Gloss for a term | String | required |
| 2nd literal meaning | 2 | Another meaning, if any | String | optional |
| 3rd literal meaning | 3 | Another meaning, if any | String | optional |
| 4th literal meaning | 4 | Another meaning (last possible), if any | String | optional |
| Sortable | sortable | In sortable tables, ignore 'lit.' | String | optional |
| italic | i | If 'yes', the prefix 'lit.' is italicized. The meaning is still not italicized. Italics of either is almost never necessary stylistically. | String | optional |
| link | lk | If 'yes' or 'on', linked to the article on literal translation. If 'no' or 'off', no links or dashed underlines. | String | optional |
Redirects
Any of the following can be used instead of {{literal translation}}, with the same parameters and results: