Module:Message box/configuration/doc: Difference between revisions

m (1 revision imported)
 
Mediawiki>ExE Boss
Line 1: Line 1:
{{high-risk}}
<noinclude><!--
-->{{#ifeq:{{SUBPAGENAME}}|doc||{{Documentation subpage}}}}<!--
--><languages /><!--
--></noinclude>{{#switch:<translate></translate>
| =
<includeonly>{{Languages|Module:Message box/configuration/doc}}</includeonly>
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Used in system}}
{{Used in system}}
{{Module rating|protected}}
{{Module rating|protected}}
<translate>
<!--T:1-->
This module contains configuration data for <tvar name=1>[[Module:Message box]]</tvar>.
== Configuration options == <!--T:2-->
</translate>
{{(!}} class="wikitable plainrowheaders"
! scope="col" {{!}} <translate><!--T:3--> Option</translate>
! scope="col" {{!}} <translate><!--T:4--> Explanation</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>types</code>
{{!}} <translate><!--T:5--> A table containing data used by the type parameter of the message box.</translate> <translate><!--T:6--> The table keys are the values that can be passed to the type parameter, and the table values are tables containing the class and the image used by that type.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>default</code>
{{!}} <translate><!--T:7--> The type to use if no value was passed to the type parameter, or if an invalid value was specified.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>showInvalidTypeError</code>
{{!}} <translate><!--T:8--> Whether to show an error if the value passed to the type parameter was invalid.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>allowBlankParams</code>
{{!}} <translate><!--T:9--> Usually blank values are stripped from parameters passed to the module.</translate> <translate><!--T:10--> However, whitespace is preserved for the parameters included in the <tvar name=1><code>allowBlankParams</code></tvar> table.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>allowSmall</code>
{{!}} <translate><!--T:11--> Whether a small version of the message box can be produced with <tvar name=1>{{para|small|1}}</tvar>.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>smallParam</code>
{{!}} <translate><!--T:12--> A custom value for the <tvar name=1>{{para|small}}</tvar> parameter.</translate> <translate><!--T:13--> For example, if set to <tvar name=1>{{inline-code|lang=lua|"left"}}</tvar> you can produce a small message box using <tvar name=2>{{para|small|left}}</tvar>.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>smallClass</code>
{{!}} <translate><!--T:14--> The class to use for small message boxes.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>substCheck</code>
{{!}} <translate><!--T:15--> Whether to perform a subst check or not.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>classes</code>
{{!}} <translate><!--T:16--> An array of classes to use with the message box.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>imageEmptyCell</code>
{{!}} <translate><!--T:17--> Whether to use an empty <tvar name=1>{{tag|td}}</tvar> cell if there is no image set.</translate> <translate><!--T:18--> This is used to preserve spacing for message boxes with a width of less than <tvar name=1>100%</tvar> of the screen.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>imageEmptyCellStyle</code>
{{!}} <translate><!--T:19--> Whether empty image cells should be styled.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>imageCheckBlank</code>
{{!}} <translate><!--T:20--> Whether <tvar name=1>{{para|image|blank}}</tvar> results in no image being displayed.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>imageSmallSize</code>
{{!}} <translate><!--T:21--> Usually, images used in small message boxes are set to <tvar name=1>30x30px</tvar>.</translate> <translate><!--T:22--> This sets a custom size.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>imageCellDiv</code>
{{!}} <translate><!--T:23--> Whether to enclose the image in a <tvar name=1>{{tag|div|o}}</tvar> enforcing a maximum image size.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>useCollapsibleTextFields</code>
{{!}} <translate><!--T:24--> Whether to use text fields that can be collapsed, i.e. <tvar name=1>{{inline-code|lang=lua|"issue"}}</tvar>, <tvar name=2>{{inline-code|lang=lua|"fix"}}</tvar>, <tvar name=3>{{inline-code|lang=lua|"talk"}}</tvar>, etc.</translate> <translate><!--T:25--> Currently only used in <tvar name=1>{{tlx|ambox}}</tvar>.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>imageRightNone</code>
{{!}} <translate><!--T:26--> Whether <tvar name=1>{{para|imageright|none}}</tvar> results in no image being displayed on the right-hand side of the message box.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>sectionDefault</code>
{{!}} <translate><!--T:27--> The default name for the <tvar name=1>{{para|section}}</tvar> parameter.</translate> <translate><!--T:28--> Depends on <tvar name=1><code>useCollapsibleTextFields</code></tvar>.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>allowMainspaceCategories</code>
{{!}} <translate><!--T:29--> Allow categorisation in the main namespace.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>templateCategory</code>
{{!}} <translate><!--T:30--> The name of a category to be placed on the template page.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>templateCategoryRequireName</code>
{{!}} <translate><!--T:31--> Whether the <tvar name=1>{{para|name}}</tvar> parameter is required to display the template category.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>templateErrorCategory</code>
{{!}} <translate><!--T:32--> The name of the error category to be used on the template page.</translate>
{{!}}-
! scope="row" style="text-align:left;font-weight:normal" {{!}} <code>templateErrorParamsToCheck</code>
{{!}} <translate><!--T:33--> An array of parameter names to check.</translate> <translate><!--T:34--> If any are absent, the <tvar name=1><code>templateErrorCategory</code></tvar> is applied to the template page.</translate>
{{!)}}
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Modules]]
}}</includeonly><noinclude>
[[Category:Module documentation pages{{#translation:}}]]
</noinclude>
| #default=
  {{#invoke:Template translation|renderTranslatedTemplate|template=Module:Message box/configuration/doc|noshift=1|uselang={{int:lang}}}}
}}
Anonymous user