No categories assigned

Transclusion

Revision as of 12:48, 8 July 2020 by Mlink-rodrigue (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This template allows to transclude a page and add styling to the transcluded content with background, border and padding option.

The template file (Template:Transclusion) can be downloaded as part of the template package.

screenshot of transclusion template
Transclusion example

The following parameters can be set in visual editing mode:

Template parameters

ParameterDescriptionTypeStatus
Page to transclude into this documenttranscludedpage

Add the full page name (including namespace if applicable)

Default
Namespace:Pagename
Example
empty
Auto value
empty
Unknownrequired
Page sectionsection

Include only a section of the page (enter the heading title)

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Color styletcstyle

Sets the background and border color. These colors can be overwritten individually with the border and background setting.

Default
empty
Example
grey,yellow,blue,green,red
Auto value
empty
Stringoptional
Backgroundtcbackground

Overwrites the background value of the color style setting.

Default
empty
Example
empty
Auto value
#efefef
Unknownoptional
Bordertcborder

Overwrites the border value of the selected color style.

Default
empty
Example
empty
Auto value
1px solid #cccccc
Unknownoptional
Paddingtcpadding

Overwrites the default padding of 0px

Default
empty
Example
empty
Auto value
20px
Unknownoptional

Attachments

Discussions