Difference between revisions of "Template:NeedsTranslating/doc"

From Moegirlpedia
Jump to: navigation, search
m (Syntax and Usage: Will be removing {{{text}}}...)
m
Line 17: Line 17:
 
"label": "title",
 
"label": "title",
 
"description": "Title pop-up you wish to add to the text",
 
"description": "Title pop-up you wish to add to the text",
"type": "string"
+
"type": "string",
 +
"default": "Text that needs translating"
 
},
 
},
 
"lang": {
 
"lang": {

Revision as of 21:24, 28 August 2019

This template can be used to notify a section or a short phrase of information not translated into English. It will also add the page into Category:Pages with Materials Awaiting Translation.

Aliases

  • {{Translation Needed}}

Syntax and Usage

<templatedata> { "params": { "1": { "label": "text", "description": "The text that needs translation", "type": "string" }, "2": { "label": "title", "description": "Title pop-up you wish to add to the text", "type": "string", "default": "Text that needs translating" }, "lang": { "label": "language", "description": "language of the original text", "example": "zh, ja", "type": "string", "suggested": true } }, "paramOrder": [ "lang", "1", "2" ], "format": "inline", "description": " " } </templatedata>

If there is a rather large section of text awaiting translation, just place this template above those texts. You may also specify the language of those texts; the tempalte will look like

The text below needs help with translation!
The Chinese text below needs help with translation!
The Japanese text below needs help with translation!

for no language declaration, lang=zh, and ,lang=ja, respectively.

If there is a small amount of text, supply them as the argument of the template.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. {{NeedsTranslating|萌娘百科,万物皆可萌}}. Nullam sit amet risus in dolor viverra euismod non vitae nisl. Nunc nec sapien neque. Sed viverra varius pulvinar. Aliquam sollicitudin tellus nunc, viverra ultricies elit vehicula non. Aenean molestie lorem sed metus sollicitudin, non rutrum libero scelerisque. Duis lobortis cursus lacus, non fringilla lacus auctor a. Ut posuere vehicula gravida. Aenean rhoncus neque eget diam gravida, non tristique arcu aliquet. Aenean elementum non massa ac vulputate. Cras facilisis quam et felis imperdiet, ut ornare eros semper. Phasellus pretium facilisis laoreet.

yields

Lorem ipsum dolor sit amet, consectetur adipiscing elit. 萌娘百科,万物皆可萌(Needs translation). Nullam sit amet risus in dolor viverra euismod non vitae nisl. Nunc nec sapien neque. Sed viverra varius pulvinar. Aliquam sollicitudin tellus nunc, viverra ultricies elit vehicula non. Aenean molestie lorem sed metus sollicitudin, non rutrum libero scelerisque. Duis lobortis cursus lacus, non fringilla lacus auctor a. Ut posuere vehicula gravida. Aenean rhoncus neque eget diam gravida, non tristique arcu aliquet. Aenean elementum non massa ac vulputate. Cras facilisis quam et felis imperdiet, ut ornare eros semper. Phasellus pretium facilisis laoreet.