Jump to content

Template:Wrapper/doc

From Wikiversity

This template is a doc page banner that flags a wrapper template.

Wikitext (see {{Family name footnote}}):

{{Wrapper|Family name explanation
	| except = type -> footnote // reftype -> <nowiki>{{{reftype|efn}}}</nowiki>
}}

Effect:

Wikitext (see {{Bts}}):

{{Wrapper|Station link
	| except = MBTA // <nowiki>{{{1|}}}</nowiki> // <nowiki>{{{2|}}}</nowiki> // <nowiki>{{{3|}}}</nowiki>
	| passing-through =
}}

or, equivalently,

{{Wrapper|Station link
	| except =
		1 -> MBTA //
		2 -> <nowiki>{{{1|}}}</nowiki> //
		3 -> <nowiki>{{{2|}}}</nowiki> //
		4 -> <nowiki>{{{3|}}}</nowiki>
	| passing-through =
}}

Effect:

Wikitext (see {{Don't ping}}):

{{Wrapper|Please ping
	| except = 1 -> no
	| omitting = tps // nw // big // thanks // cond
	| passing-through =
}}

Effect:

Wikitext (see {{Sfnlinka}}):

{{Wrapper|Sfnlink
	| except = article -> *
	| omitting = rev // lang
	| passing-through = p // page // pp // pages // loc // nb // text
}}

Effect:

Wikitext (see {{Tanakhverse}}):

{{Wrapper|Bibleverse
	| except = 3 -> <nowiki>{{{3|HE}}}</nowiki>
	| omitting = 4 // 5
}}

Effect:

Wikitext:

{{Wrapper|Debug}}

Effect:

Template data

[edit source]

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

Template parameters

ParameterDescriptionTypeStatus
Template1

Name of the wrapped template

Example
Please ping
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
1 -> no
Stringoptional
Undefined parametersomitting

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

Example
tps // nw // big // thanks // cond
Stringoptional
Parameters passed throughpassing-through

The list of parameter names 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
Table classtable-class

The ‘class=’ HTML attribute assigned to the table of managed parameters

Default
wikitable
Example
wikitable mw-collapsible mw-collapsed
Stringoptional
No categorynocat

Disable automatic categorization into ‘Category:Templates calling Example’ or ‘Category:Wrapper templates’ (depending on the case)

Default
no
Example
yes
Booleanoptional

See also

[edit source]