Template:Transclusion/doc
Jump to navigation
Jump to search
{{#invoke:Message box|mbox}}
This is the {{Transclusion}} message box. It is meant to be put at the top of templates used for lightweight transclusion in Wikipedia's main namespace. For more information, see Wikipedia:Transclusion.
Usage
The template consists consists of two parameters:
- article – Used to indicated the article or articles to which the template is transcluded.
{{Transclusion|Article 1|...|Article 15}}
- One to fifteen articles can be listed.
- The word "and" is always placed between the final two entries.
- You can use parameters label 1 to label 15 to specify alternative labels for the links.
- label – If needed, this parameter can be used to directly indicate a particular section within an article.
{{Transclusion|Article 1#Section 1|l1=Label 1}}
- Note that the parameter name is a lower case 'L' followed by the number '1', not the number eleven.
Examples
As used in Template:2012 Summer Olympics calendar:
- Simple use:
{{Transclusion|2012 Summer Olympics}}
{{#invoke:Message box|ombox}}
- Use of more than one article:
{{Transclusion|2012 Summer Olympics|Chronological summary of the 2012 Summer Olympics}}
{{#invoke:Message box|ombox}}
- Use of specific section:
{{Transclusion|2012 Summer Olympics#Calendar|l1=2012 Summer Olympics calendar}}
{{#invoke:Message box|ombox}}
See also
- {{Transcluded}} – For transclusions providing source.