User:BDavis (WMF)/Sandbox/Transclusion exclusion

I have a page A with a template {{Header}}

I'd like to transclude A into a page B, but without the content of {{Header}}

Is there a way to do that ?

The <noinclude> tag can be used to accomplish this. Page A should wrap its transclusion of page Header in <noinclude> tags to prevent the transcluded Header content from being included in pages which transclude A.

Example:

  • Header - the header template that should show on A, but not on B.
  • A - the page which should have a header when viewed directly, but not when transcluded into another page
  • B - the page which should show the content of A minus the Header transclude.