Template talk:Translate

From Space Engineers Wiki
Jump to: navigation, search

Translation fallback error when ?Translation parameter is missing

This template has a bug: If the translation parameter is missing, it will display the page's name instead of the page's content.

Current code: {{#if: {{#show: {{{1|}}}{{lang}} | ?translation }} | {{#show: {{{1|}}}{{lang}} | ?translation }} | {{{1|}}}{{lang}} }}

Example using {{translate|Property:Volume}} when {{lang}} is set to /de: Property:Volume/de


Proposed change: {{#if: {{#show: {{{1|}}}{{lang}} | ?translation }} | {{#show: {{{1|}}}{{lang}} | ?translation }} | {{{{{1|}}}{{lang}}}} }}

Solution example using {{translate|Property:Volume}} when {{lang}} is set to /de: Volumen

--Vox Serico (talk) 14:45, 4 April 2020 (UTC)

...I now realise it may be preferable to display the page's title instead of the content when translation is missing, for pages with more than expected content.

--Vox Serico (talk) 17:55, 18 April 2020 (UTC)