===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
[] 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 | without TemplateData | params cannot be autogenerated | Warning | {F34138315} Note: Template title hidden in main dialog. |// If this template contains parameters, they are undocumented (providing no data to show you how to use them) so they cannot be displayed. There might be additional information on this template’s page.[1] (Text still under review, will be updated)//
| Composite content /multi-part |- | - | Notice | {F34138337} Note: Template titles shown in main dialog. (same styling as current) | //(Text under review for the main notice, will be updated). Show messages for each template as above depending on its state. //
**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)//