Appearance
| 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. |
__EXPECTED_UNCONNECTED_PAGE__
| This template is used on approximately 20,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. |
Indicate that a given span of text is a translation of the preceding text.
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
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>
See also