Wikipedia:Tip of the day/May 23, 2008

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Transclusion caveat

When you transclude a page (that is, automate the display of a page's content on another page), all its tags (like {{TOCRight}}) go with it, which will be implemented on the host page. Just add the following code if you want to add a right-aligned TOC to a page, but don't want it to be displayed on "derivative" pages:

<noinclude> {{TOCright}} </noinclude>


For a more detailed explanation, see Help:Wiki markup#Templates and transcluding pages.

Read more: Help:Template
Wikipedia:Transclusion
Wikipedia:Substitution

Prior tip - Next tip

Personal tools
Namespaces

Variants
Actions
Navigation
Interaction
Toolbox
Print/export