Misplaced Pages

Template:Literal translation: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 19:07, 1 March 2018 view sourceFrietjes (talk | contribs)Autopatrolled, Extended confirmed users, Template editors1,000,827 edits move cat to doc← Previous edit Revision as of 11:36, 11 April 2020 view source Ravenpuff (talk | contribs)Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers66,061 edits Add single quotes around output to match behaviour of {{lang-xx}} and per MOS:SINGLENext edit →
Line 11: Line 11:
|''<nowiki/> |''<nowiki/>
}}{{#if:{{{1|}}} }}{{#if:{{{1|}}}
|<span style="white-space:nowrap;">&thinsp;{{{1}}}</span> |<span style="white-space:nowrap;">&thinsp;<nowiki>'</nowiki>{{{1}}}<nowiki>'</nowiki></span>
}}{{#if:{{{2|}}} }}{{#if:{{{2|}}}
|&nbsp;– lit.<span style="white-space:nowrap;">&thinsp;{{{2}}}</span> |&nbsp;– lit.<span style="white-space:nowrap;">&thinsp;<nowiki>'</nowiki>{{{2}}}<nowiki>'</nowiki></span>
}}<noinclude> }}<noinclude>
{{Documentation}} {{Documentation}}

Revision as of 11:36, 11 April 2020

lit.

Template documentation[view] [edit] [history] [purge]
WarningThis 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.
Shortcuts

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' – lit. 'b'
  • {{literal translation|a|b|c|d}}lit. 'a' – lit. 'b'

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.

Template parameters

ParameterDescriptionTypeStatus
Literal meaning1

Gloss for a term

Stringrequired
2nd literal meaning2

Another meaning, if any

Stringoptional
3rd literal meaning3

Another meaning, if any

Stringoptional
4th literal meaning4

Another meaning (last possible), if any

Stringoptional
Sortablesortable

In sortable tables, ignore 'lit.'

Stringoptional
Italici

If 'yes', the prefix 'lit.' is italicized. The meaning is still not italicized. Italics of either is almost never necessary stylistically.

Stringoptional
Linklk

If 'yes' or 'on', linked to the article on literal translation. If 'no' or 'off', no links.

Stringoptional

See also

  • {{Gloss}} - similar template but without "lit." lead-in.
The above documentation is transcluded from Template:Literal translation/doc. (edit | history)
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: