Wikipedia:WikiProject Infoboxes/embed

Many Infoboxes can take another template, including another infobox, as a module (or child-, or sub-template).

Inversely, some infoboxes can have other templates, and other templates, are configured so that they may be embedded as a "child" or "module" infobox within another.

When embedding a template it is usually necessary to set |embed=yes (or |child=yes) in the embedded (child) template.

The child template is entered as the value of a parameter in the parent, usually |module= or |embedded=.

Converting an InfoboxEdit


Fred Hoyle

Born(1915-06-24)24 June 1915
Died20 August 2001(2001-08-20) (aged 86)
Bournemouth, England
Alma materEmmanuel College, Cambridge
Known for
Scientific career
InstitutionsInstitute of Astronomy, Cambridge
Academic advisors
Doctoral students
Other notable studentsPaul C. W. Davies

In order to be configured for potential use as a module, an infobox must have a few adaptations, including modified styling, the suppression of the template's name display, and the addition of a subheading. Here is an example adaptation; results shown to the right; note the "Scientific career" subheading.

Infobox personEdit

{{Infobox person}} can have another biographical infobox (or infoboxes - up to six slots are available) as a Module. Those available are listed in Category:Biographical templates usable as a module (NB may not yet be fully populated). See, for example, this edit using {{Infobox scientist}} as the child template (results shown alongside).

{{Infobox person}} can also take other child templates, for example, {{Listen}}. See this example.

Example markupEdit

Note the parameter module, and embed=yes. Used in this edit

Markup Renders as
{{Infobox person
 | image          = Uri Avneri 1965-11-01 (cropped).jpg
 | caption        = Avnery in 1965
 | birth_name     = '''Helmut Ostermann'''
 | birth_date     = {{Birth date|df=y|1923|9|10|}}
 | birth_place    = [[Beckum, Germany|Beckum]], Germany
 | death_date     = {{death date and age|df=y|2018|8|20|1923|9|10|}}
 | death_place    = [[Tel Aviv]], [[Israel]]
 |module            = {{Infobox member of the Knesset
   |embed           = yes
   | Year of Aliyah = 1933
   | Knesset(s)     = [[Israeli legislative election, 1965|6]], [[Israeli legislative election, 1969|7]], [[Israeli legislative election, 1977|9]]
   | party1         = [[Meri (political party)|Meri]]
   | partyyears1    = 1965–1974
   | party2         = [[Left Camp of Israel]]
   | partyyears2    = 1979–1981
WikiProject Infoboxes/embed
Avnery in 1965
Helmut Ostermann

(1923-09-10)10 September 1923
Beckum, Germany
Died20 August 2018(2018-08-20) (aged 94)
Year of aliyah1933
Knessets6, 7, 9
Faction represented in Knesset
1979–1981Left Camp of Israel

Example editsEdit

Embedded infoboxesEdit

Other embedded templatesEdit


See alsoEdit