Template:NeedsTranslationTooltip/doc: Difference between revisionsGive feedback
initial |
m docs for 1st optional parameter |
||
| Line 3: | Line 3: | ||
See [[Template:Translate]] for documentation and further information to help translate marked text. | See [[Template:Translate]] for documentation and further information to help translate marked text. | ||
Optional first parameter is translation-key to localize and display. Defaults to 'NeedsTranslationTooltip' which displays "{{#invoke:Dictionary|translate|NeedsTranslationTooltip}}". | |||
In most circumstances, use no parameter. | |||
<code><nowiki>Patch notes{{NeedsTranslationTooltip}}</nowiki></code> | <code><nowiki>Patch notes{{NeedsTranslationTooltip}}</nowiki></code> | ||
| Line 10: | Line 11: | ||
Patch notes{{NeedsTranslationTooltip}} | Patch notes{{NeedsTranslationTooltip}} | ||
One special circumstance for needing to use another key is in an ability article. Notes for the ability come from /<ability name>/Notes, so if 'Notes' is not yet translated, the page can't exist, and it instead transcludes the english notes. In this case, the 'NotesNeedsTranslation' key is passed, which displays "{{#invoke:Dictionary|translate|NotesNeedsTranslation}}". | |||
This is accomplished with | |||
<code><nowiki>{{NeedsTranslationTooltip|NotesNeedsTranslation}}</nowiki></code> | |||