Difference between revisions of "Template:Literal translation/doc"

From blackwiki
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> &rarr; {{literal translation}}
 
* <code><nowiki>{{literal translation}}</nowiki></code> &rarr; {{literal translation}}
Line 9: Line 12:
 
* <code><nowiki>{{literal translation|a|b}}</nowiki></code> &rarr; {{literal translation|a|b}}
 
* <code><nowiki>{{literal translation|a|b}}</nowiki></code> &rarr; {{literal translation|a|b}}
 
* <code><nowiki>{{literal translation|a|b|c|d}}</nowiki></code> &rarr; {{literal translation|a|b|c|d}}
 
* <code><nowiki>{{literal translation|a|b|c|d}}</nowiki></code> &rarr; {{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

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

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.bcd
  • a{{literal translation|i=yes}}bcd → alit.bcd
  • a{{literal translation|b}}cd → alit.Template:Sp 'b'cd
  • a{{literal translation|b|i=yes}}cd → alit.Template:Sp 'b'cd
  • a{{literal translation|b|c}}d → alit.Template:Sp 'b'Template:Sp or 'c'd
  • a{{literal translation|b|c|i=yes}}d → alit.Template:Sp 'b'Template:Sp or 'c'd


No description.

Template parameters

ParameterDescriptionTypeStatus
literal meaning1

no description

Example
"not is"
Stringrequired
second literal meaning2

no description

Stringoptional
Sortablesortable

no description

Stringoptional
italici

no description

Stringoptional
linklk

no description

Stringoptional