Template:Translate/doc: Difference between revisions

Sur (talk | contribs)
m indentation in how to edit
Sur (talk | contribs)
m Example: updated example as sometimes it doesnt default to english now
Line 41: Line 41:




If translation to that language does not yet exist, it will default to the english translation, and add <code><nowiki>{{NeedsTranslationTooltip}}</nowiki></code> at the end to guide users to help translate it.
If translation to that language does not yet exist, it will default to the english translation. If the english translation also does not exist, it will default to the provided key. In both cases, it will add <code><nowiki>{{NeedsTranslationTooltip}}</nowiki></code> at the end to guide users to help translate it, appearing as {{NeedsTranslationTooltip}}.


<pre style="width: fit-content">{{Translate|Patch notes|zh}}</pre>
<pre style="width: fit-content">{{Translate|Patch notes|made-up-code}}</pre>


Outputs
Outputs


{{Translate|Patch notes|zh}}
{{Translate|Patch notes|made-up-code}}


=Parameters=
=Parameters=