===Background
Currently, there are only two states with descriptions. Template descriptions from TemplateData and a message about templates missing TemplateData. We are expanding how many states/types of content get descriptions, the wording of each, and their styling.
This is being done to give users better information about what they are seeing, why it looks the way it does and what they need to do next based on that. Each will also have links directly to relevant documentation for confusing terms and concepts.
===Requirements
[] Remove/replace current template description components (with TD, without TD)
[] Add new notices and warnings, showing the various relevant ones as needed for each state described below. Use OOUI components: MessageWidget (type: 'notice') and (type: 'warning').
[] All links open in new tabs
===Currently
| Template with TemplateData| {F34138273} |
| Template without TemplateData | {F34138275} |
===New mocks and text
| State | | | MessageWidget | Mock | Text |
| ----- | ----- | ----- | ----- | ----- |
| Single Template | with TemplateData | with description | Notice |{F34138286} Note: Template title hidden in main dialog. | {Template description from TD} Templates are user generated and may lack complete descriptions. There might be additional information on this template’s page[1].|
| Single Template | with TemplateData | without description | Notice | {F34138346} Note: Template title hidden in main dialog. | Same as above, but with no description before message. |
| Single Template | with TemplateData | no parameters | Notice | {F34138306} Note: Template title hidden in main dialog. | //Template description/message same as above. // Below the notice show: This template has no parameters[2] and is meant to be used without them.
| Single Template | without TemplateData | params autogenerated | Warning | {F34138308} Note: Template title hidden in main dialog. | This template is missing TemplateData[3], and its parameters have been autogenerated[4]. As a result the template and its parameters lack descriptions. There might be additional information on this template’s page[1].
| Single Template | with OR without TemplateData | no parameters are documented OR params cannot be autogenerated | Warning | {F34138315} Note: Template title hidden in main dialog. |If this template contains parameters, they are undocumented[4] and the information needed to display them is missing. There might be additional information on this template’s page.[1]
| Template content (previously multi-part) |- | - | Notice | {F34480460} Note: Template titles shown in main dialog. (same styling as current) | You are currently editing a template and one or more pieces of connected content[4] (wikitext and/or additional templates).
**Links**
[1] Link to the template page
[2] https://www.mediawiki.org/wiki/Help:Templates#Parameters
[3] https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide#Template_parameters (content to be improved)
[4] //(content to be created, link to documentation to come)//