• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Wrapper/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Wrapper
This template is a customized wrapper for {{Example}}. Any field from {{Example}} can work so long as it is added to this template first. Questions? Just ask at Template talk:Example.
This is the template sandbox page for Template:Wrapper (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Template wrapper (sandbox)

Contents

  • 1 Usage
  • 2 Parameters
  • 3 Examples
  • 4 TemplateData
  • 5 See also

Usage

edit

{{Wrapper|target template}}
{{Wrapper|target template|all=yes|exclude=excluded param1, param2, ...}}

Parameters

edit

This template has one required positional parameter, and three optional named params:

  • |1= – name of the template, excluding namespace (required)
  • |all=yes – alters the default wording (Any field from {{Example}} can work...) to All fields from {{Example}} will work here."
  • |exclude=string – adds "(except string)" after "from Example". Use this to list params in Template:Example not available in the wrapper.
  • |nocat=yes – disable automatic categorization into [[Category:Templates calling Example]]

Examples

edit
Example 1: {{Wrapper|Wikibreak}}
This example might appear on the doc page of {{Exams}} or {{Vacation}}:

{{Wrapper|Wikibreak}} →

This template is a customized wrapper for {{Wikibreak}}. Any field from {{Wikibreak}} can work so long as it is added to this template first. Questions? Just ask at Template talk:Wikibreak.
Example 2: {{Wrapper|Sfnlink|exclude=rev}}
This example might appear on the doc page of {{Sfnlinka}}:

{{Wrapper|Sfnlink|exclude=rev}} →

This template is a customized wrapper for {{Sfnlink}}. Any field from {{Sfnlink}} (except rev) can work so long as it is added to this template first. Questions? Just ask at Template talk:Sfnlink.
Example 3: {{Wrapper|Sfnlink|all=yes|exclude=rev and lang}}
This example might appear on the doc page of {{Sfnlinka}}:

{{Wrapper|Sfnlink|all=yes|exclude=rev and lang}} →

This template is a customized wrapper for {{Sfnlink}}. All fields from {{Sfnlink}} (except rev and lang) will work here. Questions? Just ask at Template talk:Sfnlink.

TemplateData

edit
See a monthly parameter usage report for Template:Wrapper in articles based on its TemplateData.

TemplateData for Wrapper

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Template1

name of template this is a wrapper for (without "Template:")

Example
Wikibreak
Stringrequired
nocatnocat

Disables categorization

Example
yes
Booleanoptional
allall

For wrappers that use the module, changes the second sentence to read "All fields from <template> will work here."

Booleanoptional
excludeexclude

string listing params of <template> excluded from use here.

Example
params 'P-one' and 'P-two'
Stringoptional

See also

edit
  • {{#invoke:Template wrapper|wrap}}
  • {{#invoke:params|concat_and_call}}
The above documentation is transcluded from Template:Wrapper/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wrapper/sandbox&oldid=1288553297"
Last edited on 3 May 2025, at 11:56

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 3 May 2025, at 11:56 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop