Template:Translation/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Translation. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on many 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. |
Usage
{{translation}}
→ transl.{{translation|literal=yes}}
→ lit. transl.{{translation|i=yes}}
→ transl.{{translation|a}}
→ transl. a{{translation|a|b}}
→ transl. a – transl. b
Spacing demonstration
a{{translation}}bcd
→ atransl.bcda{{translation|i=yes}}bcd
→ atransl.bcda{{translation|b}}cd
→ atransl. bcda{{translation|b|i=yes}}cd
→ atransl. bcda{{translation|b|c}}d
→ atransl. b – transl. cda{{translation|b|c|i=yes}}d
→ atransl. b – transl. cd
Use this templates
({{translation|The Tiger}})
→ (transl. The Tiger)({{translation|The Father}})
→ (transl. The Father)({{translation|The Mother}})
→ (transl. The Mother)
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Translation in articles based on its TemplateData.
TemplateData for Translation
<templatedata> { "params": { "1": { "label": "meaning", "example": "'not is'", "type": "string", "required": true }, "2": { "label": "second meaning", "type": "string" }, "sortable": { "type": "string" }, "i": { "label": "italic", "type": "string" }, "literal": { "label": "literal", "type": "string" } }, "description": "Indicate that a given span of text is a translation of the preceding text. " } </templatedata>