Revision as of 03:09, 17 July 2015 view sourceZoupan (talk | contribs)Extended confirmed users66,156 edits ←Created page with '{{#if:{{{sortable|}}} |<span style="display:none;">{{{1|}}}</span> }}{{#if:{{{i|}}} |<nowiki/>'' }}{{#switch:{{{lk|}}} |no|off = lit. |yes|on = Literal...' | Latest revision as of 21:41, 28 April 2024 view source El C (talk | contribs)Autopatrolled, Administrators183,803 editsm Changed protection settings for "Template:Literal translation": High-risk template or module ( (indefinite) (indefinite)) | ||
(15 intermediate revisions by 12 users not shown) | |||
Line 3: | Line 3: | ||
}}{{#if:{{{i|}}} | }}{{#if:{{{i|}}} | ||
|<nowiki/>'' | |<nowiki/>'' | ||
}}{{#switch:{{{lk|}}} | }}{{abbr|style=font-size:85%|{{#switch:{{{lk|}}} | ||
| |
|yes|on = ] | ||
| |
|#default = lit. | ||
⚫ | }}|literal translation}}{{#if:{{{i|}}} | ||
|abbr | |||
|#default = {{Abbr|lit.|literal translation}} | |||
⚫ | }}{{#if:{{{i|}}} | ||
|''<nowiki/> | |''<nowiki/> | ||
}}{{#if:{{{1|}}} | }}{{#if:{{{1|}}} | ||
| |
| {{thinsp}}{{gloss|{{{1}}}}} | ||
}}{{#if:{{{2|}}} | }}{{#if:{{{2|}}} | ||
| {{sp}} or {{gloss|{{{2}}}}} | |||
| – lit.<span style="white-space:nowrap;"> {{{2}}}</span> | |||
}}{{#if:{{{3|}}} | |||
| {{sp}} or {{gloss|{{{3}}}}} | |||
}}{{#if:{{{4|}}} | |||
| {{sp}} or {{gloss|{{{4}}}}} | |||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
] | |||
</noinclude> | </noinclude> |
Latest revision as of 21:41, 28 April 2024
lit.
Template documentation[view] [edit] [history] [purge]This template is used on approximately 16,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses single quotation marks ('…'), because Misplaced Pages's Manual of Style at MOS:SINGLE calls for simple glosses to be enclosed this way.
Usage
{{literal translation}}
→ lit.{{literal translation|lk=yes}}
→ lit.{{literal translation|lk=no}}
→ lit.{{literal translation|a}}
→ lit. 'a'{{literal translation|''a'' A}}
→ lit. 'a A'{{literal translation|a|b}}
→ lit. 'a' or 'b'{{literal translation|a|b|c|d}}
→ lit. 'a' or 'b' or 'c' 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.".
Formats the literal translation of a word or phrase per Manual of Style guidelines.
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. | String | optional |
See also
{{Gloss}}
- similar template but without "lit." lead-in.
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Categories: