Template:Translation/th/doc

From PZwiki
< Template:Translation‎ | th
Revision as of 14:34, 4 June 2023 by Vaileasys (talk | contribs) (documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Notebook.png
This is a documentation subpage for Template:Translation/th.
It contains usage information and other content that is not part of the original template page.
Translation icon.png
This template needs to be translated.
Editors are encouraged to translate this page to the best of their ability.

The {{Translation}} template is used to create a list of English and the non-English equivalent, for use in templates for automatic translation.

Usage

This template is one of 3 templates used for translating.

  1. {{Translation}} Should be used where a link is not required, and just the translated word is needed. This template will search the list (switch) for the word in the first parameter, then display that instead of the English word, based on the language code (subpage).
  2. {{T}} Should be used where a link is required. It will automatically get the translated word from the list in {{Translation}}.
  3. {{Subpage}} Should be used for links (such as image links) where just the English word and language code are needed.

Examples

{{Translation|Hammer}}

Produces

Hammer

How to add entries

Getting started

  1. Make sure you're on the correct Template page and not the Documentation subpage (if on the wrong page, this will be a link).
  2. Click the Edit button at the very top, not the one next to Template documentation. Or click here to edit current page.

Making the edits

  1. Once in the edit screen, you'll see a list of entries that look like: | Hammer = Hammer
  2. Check to see if there is a category for the word(s) you want to add, such as <!-- Food -->, or add a new one.
  3. Add your word(s) in the following format (each entry should be on a new line separated by a pipe |): | Hammer = Hammer

See also