More actions
m Rewrite doc to be template specific. Tag: Replaced |
Add info to template date that this template is not visual editor friendly. |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
:: {{T|NPCTableCSS}} is required only <em>once</em> per page where there's at least one NPCTable. It is included into {{T|CMBSiteInfo}} and {{T|CMBSite}}(deprecated), so when one of those is used there is no need to add it separately. | :: {{T|NPCTableCSS}} is required only <em>once</em> per page where there's at least one NPCTable. It is included into {{T|CMBSiteInfo}} and {{T|CMBSite}}(deprecated), so when one of those is used there is no need to add it separately. | ||
:; Paired with | :; Paired with | ||
:: <nowiki>|}</nowiki> to close the table. | :: <nowiki>|}</nowiki> to close the table, or include <nowiki>|end=true}}</nowiki> as the last parameter of the last {{T|NPCTableRow}}. | ||
:; Sub templates | :; Sub templates | ||
:: {{T|NPCTableRow}} one or more for each NPCTable. | :: {{T|NPCTableRow}} one or more for each NPCTable. | ||
| Line 30: | Line 30: | ||
; See also | ; See also | ||
* [[UniWiki:Mission formatting guidelines|Mission formatting guidelines]] | * [[UniWiki:Mission formatting guidelines|Mission formatting guidelines]] | ||
; Template data | |||
: This is the [[mediawikiwiki:Help:TemplateData|TemplateData]] documentation for this template used by [[mediawikiwiki:VisualEditor|VisualEditor]] and other tools. | |||
:: <templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Caption", | |||
"description": "Caption of the table. May be omitted.", | |||
"example": "Initial forces", | |||
"type": "line" | |||
} | |||
}, | |||
"description": "This template is used to start an NPCTable. It needs to be paired with the standard wiki parser code to end the table |}. It needs to be used once for every NPCTable on a page. Additional the template NPCTableCSS is required once on the page unless the template CMBSiteInfo or CMBSiteBox (deprecated) is used on the page. Those have the NPCTableCSS build in. This template is not visual editor friendly so it is best to use it in text editor mode.", | |||
"paramOrder": [ | |||
"1" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
<includeonly>[[Category:Formatting templates]]<!-- Any categories for the template itself --></includeonly> | <includeonly>[[Category:Formatting templates]]<!-- Any categories for the template itself --></includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||