Difference between revisions of "Template:Literal translation/doc"
Jump to navigation
Jump to search
imported>Menchi (+ examples of 4 parameters) |
imported>Menchi (explantion) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
+ | |||
+ | Currently this template uses single quotation marks ({{char|'…'}}), because the present Wikipedia's Manual of Style ([[MOS:SINGLE]]) suggests that [[gloss (annotation)#In linguistics|simple glosses]] be enclosed this way. | ||
+ | |||
== Usage == | == Usage == | ||
* <code><nowiki>{{literal translation}}</nowiki></code> → {{literal translation}} | * <code><nowiki>{{literal translation}}</nowiki></code> → {{literal translation}} | ||
Line 9: | Line 12: | ||
* <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>. | ||
== Spacing demonstration == | == Spacing demonstration == |
Revision as of 08:25, 6 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|i=yes}}
→ lit.{{literal translation|a}}
→ lit.Template:Sp 'a'{{literal translation|''a''}}
→ lit.Template:Sp '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
.
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 | no description
| String | required |
second literal meaning | 2 | no description | String | optional |
Sortable | sortable | no description | String | optional |
italic | i | no description | String | optional |
link | lk | no description | String | optional |