Difference between revisions of "Template:Transclusion"

(Tag: 2017 source edit)
m
(Tag: 2017 source edit)
 


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

Parameter Description Type Status
Page to transclude into this document transcludedpage

Add the full page name (including namespace if applicable)

Default
Namespace:Pagename
Example
empty
Auto value
empty
Unknown required
Page section section

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

Default
empty
Example
empty
Auto value
empty
Unknown optional
Color style tcstyle

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
String optional
Background tcbackground

Overwrites the background value of the color style setting.

Default
empty
Example
empty
Auto value
#efefef
Unknown optional
Border tcborder

Overwrites the border value of the selected color style.

Default
empty
Example
empty
Auto value
1px solid #cccccc
Unknown optional
Padding tcpadding

Overwrites the default padding of 0px

Default
empty
Example
empty
Auto value
20px
Unknown optional

Attachments

Discussions