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

From Convention Master Documentation
Jump to navigation Jump to search
Documentation>Clump
m Reverted edits by 2402:800:620C:2C45:BD19:8261:E25:C033 (talk) to last version by ExE Boss
 
m 1 revision imported
 
(No difference)

Latest revision as of 20:01, 18 December 2022

{{#ifeq:doc|doc||{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:message box/configuration/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted
        }}{{#if: |
         |   {{#ifexist:Module:Message box/configuration
                  | [[Category:{{#switch:Module
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages{{#translation:}}]]
                  | [[Category:Documentation subpages without corresponding pages{{#translation:}}]]
                 }}
        }}
    | 
   }}

| #default=

 Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted

}}}}<languages />{{#switch:<translate></translate> | =

{{#switch:<translate></translate> | = Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted | #default=

 Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted

}} {{#switch:

 {{#if:
 |     
 | {{#ifeq:Module|Module
   | module
   | other
   }}
 }}

| module = Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted | other | #default = Template:Error }} <translate> This module contains configuration data for <tvar name=1>Module:Message box</tvar>.

Configuration options

</translate>

<translate> Option</translate> <translate> Explanation</translate>
types <translate> A table containing data used by the type parameter of the message box.</translate> <translate> 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>
default <translate> The type to use if no value was passed to the type parameter, or if an invalid value was specified.</translate>
showInvalidTypeError <translate> Whether to show an error if the value passed to the type parameter was invalid.</translate>
allowBlankParams <translate> Usually blank values are stripped from parameters passed to the module.</translate> <translate> However, whitespace is preserved for the parameters included in the <tvar name=1>allowBlankParams</tvar> table.</translate>
allowSmall <templatestyles src="Template:Mono/styles.css"/>}}{{safesubst:#if:{{safesubst:#switch: 1 no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}<{{safesubst:#if:|span class="monospaced {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|nowrap}}"|code {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|class="nowrap"}}}}>|{{safesubst:#if:small|small=}}1</{{safesubst:#if:|span|code}}></tvar>.</translate>

smallParam <templatestyles src="Template:Mono/styles.css"/>}}{{safesubst:#if:{{safesubst:#switch: 1 no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}<{{safesubst:#if:|span class="monospaced {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|nowrap}}"|code {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|class="nowrap"}}}}>|{{safesubst:#if:small|small=}}</{{safesubst:#if:|span|code}}></tvar> parameter.</translate> <translate> For example, if set to <tvar name=1>{{#if:{{safesubst:#switch:

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}"left"</tvar> you can produce a small message box using <tvar name=2>{{safesubst:#if:|<templatestyles src="Template:Mono/styles.css"/>}}{{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}<{{safesubst:#if:|span class="monospaced {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|nowrap}}"|code {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|class="nowrap"}}}}>|{{safesubst:#if:small|small=}}left</{{safesubst:#if:|span|code}}></tvar>.</translate>

smallClass <translate> The class to use for small message boxes.</translate>
substCheck <translate> Whether to perform a subst check or not.</translate>
classes <translate> An array of classes to use with the message box.</translate>
imageEmptyCell

}}{{#switch:pair

close = single open pair = ‎<td{{#if:| {{{params}}}}}

}}{{#switch:pair

close = single = /> open = > pair = >...

}}{{#switch:pair

single open = close pair = ‎</td>

}}{{#if:|

}}</tvar> cell if there is no image set.</translate> <translate> This is used to preserve spacing for message boxes with a width of less than <tvar name=1>100%</tvar> of the screen.</translate>

imageEmptyCellStyle <translate> Whether empty image cells should be styled.</translate>
imageCheckBlank <templatestyles src="Template:Mono/styles.css"/>}}{{safesubst:#if:{{safesubst:#switch: 1 no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}<{{safesubst:#if:|span class="monospaced {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|nowrap}}"|code {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|class="nowrap"}}}}>|{{safesubst:#if:image|image=}}blank</{{safesubst:#if:|span|code}}></tvar> results in no image being displayed.</translate>

imageSmallSize <translate> Usually, images used in small message boxes are set to <tvar name=1>30x30px</tvar>.</translate> <translate> This sets a custom size.</translate>
imageCellDiv

}}{{#switch:o

close = single open pair = ‎<div{{#if:| {{{params}}}}}

}}{{#switch:o

close = single = /> open = > pair = >...

}}{{#switch:o

single open = close pair = ‎</div>

}}{{#if:|

}}</tvar> enforcing a maximum image size.</translate>

useCollapsibleTextFields <translate> Whether to use text fields that can be collapsed, i.e. <tvar name=1>{{#if:{{safesubst:#switch: no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}"issue"</tvar>, <tvar name=2>{{#if:{{safesubst:#switch:

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}"fix"</tvar>, <tvar name=3>{{#if:{{safesubst:#switch:

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}"talk"</tvar>, etc.</translate> <translate> Currently only used in <tvar name=1><templatestyles src="Template:Mono/styles.css"/>{{#if:{{safesubst:#switch:

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}{{[[{{#if:|{{{SISTER}}}Template|Template}}:ambox|ambox]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}</tvar>.</translate>

imageRightNone <templatestyles src="Template:Mono/styles.css"/>}}{{safesubst:#if:{{safesubst:#switch: 1 no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}<{{safesubst:#if:|span class="monospaced {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|nowrap}}"|code {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|class="nowrap"}}}}>|{{safesubst:#if:imageright|imageright=}}none</{{safesubst:#if:|span|code}}></tvar> results in no image being displayed on the right-hand side of the message box.</translate>

sectionDefault <templatestyles src="Template:Mono/styles.css"/>}}{{safesubst:#if:{{safesubst:#switch: 1 no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}<{{safesubst:#if:|span class="monospaced {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|nowrap}}"|code {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|class="nowrap"}}}}>|{{safesubst:#if:section|section=}}</{{safesubst:#if:|span|code}}></tvar> parameter.</translate> <translate> Depends on <tvar name=1>useCollapsibleTextFields</tvar>.</translate>

allowMainspaceCategories <translate> Allow categorisation in the main namespace.</translate>
templateCategory <translate> The name of a category to be placed on the template page.</translate>
templateCategoryRequireName <templatestyles src="Template:Mono/styles.css"/>}}{{safesubst:#if:{{safesubst:#switch: 1 no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|<templatestyles src="Template:Nowrap/styles.css"/>}}<{{safesubst:#if:|span class="monospaced {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|nowrap}}"|code {{safesubst:#if:{{safesubst:#switch: 1

no n false 0 = = ¬ = yes y true 1 = yes #default = yes

}}|class="nowrap"}}}}>|{{safesubst:#if:name|name=}}</{{safesubst:#if:|span|code}}></tvar> parameter is required to display the template category.</translate>

templateErrorCategory <translate> The name of the error category to be used on the template page.</translate>
templateErrorParamsToCheck <translate> An array of parameter names to check.</translate> <translate> If any are absent, the <tvar name=1>templateErrorCategory</tvar> is applied to the template page.</translate>

[[Category:Module documentation pages{{#translation:}}]]

| #default=

 Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted

}}