Jump to content

Template:Wrapper

From mediawiki.org
Template documentation

Usage

Wikitext (see {{Flow file }}):

{{Wrapper|Git file
	| except = project -> mediawiki/extensions/Flow
}}

Effect:

Wikitext (see {{Calculator codex text }}):

{{Wrapper|Calculator
	| except = type -> text // class-live -> cdx-text-input__input {{(}}{{(}}{{(}}class-live{{!}}{{)}}{{)}}{{)}}
}}

Effect:

Wikitext (see {{DB MASTER }}):

{{Wrapper|Incompatible
	| except =
		reason -> Uses the <code>DB_MASTER</code> constant, which was removed //
		version -> 1.43
	| omitting =
		alternative //
		nocat //
		pledge
	| passing-through =
}}

Effect:

Wikitext (see {{Title class incompatible }}):

{{Wrapper|Incompatible
	| setter = ->>
	| except = reason ->> <nowiki>Depends on =</nowiki>1><code>Title</code> class alias, which was [[=</nowiki>2>gerrit:plugins/gitiles/mediawiki/core/+/REL1_44/RELEASE-NOTES-1.44#574|removed]].</nowiki> // version ->> 1.43
	| omitting = alternative // nocat // pledge
	| passing-through =
}}

Effect:

Wikitext (see {{Uw-blocked1 }}):

{{Wrapper|Notice template wrapper|passing-through=}}

Effect:

Wikitext:

{{Wrapper|Debug
	| separator = ;
	| setter = :
	| except = Gallia; est omnis; divisa: in partes tres; quarum unam: incolunt Belgae
	| omitting = aliam; Aquitani
	| passing-through = lorem; ipsum
}}

Effect:

Wikitext:

{{Wrapper|Debug}}

Effect:

Template data

This documentation box informs that a template is a wrapper of another template.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Template1

Name of the wrapped template

Example
Incompatible
Stringrequired
Bound parametersexcept

The list of pre-assigned parameters; use ‘//’ to separate them and ‘->’ to assign them a value—see ‘|separator=’ and ‘|setter=’ to set other strings

Example
reason -> Uses the <code>DB_MASTER</code> constant, which was removed // version -> 1.43
Stringoptional
Undefined parametersomitting

The list of parameters left undefined; use ‘//’ to separate them—see ‘|separator=’ to set another string

Example
alternative // nocat // pledge
Stringoptional
Passing throughpassing-through

The list of parameters left available to use; use ‘//’ to separate them—see ‘|separator=’ to set another string; you can provide a blank parameter to signal that no parameters are left available

Example
lorem // ipsum // foo // bar
Stringoptional
Separator stringseparator

The string to use as separator between parameters

Default
//
Example
;
Stringoptional
Setter stringsetter

The string to use as value setter

Default
->
Example
:
Stringoptional

See also