Template:Translation/doc

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

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.bcd
  • a{{translation|i=yes}}bcd → atransl.bcd
  • a{{translation|b}}cd → atransl. bcd
  • a{{translation|b|i=yes}}cd → atransl. bcd
  • a{{translation|b|c}}d → atransl. b – transl. cd
  • a{{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>