Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Help:Transclusion"

From Roll20 Wiki

Jump to: navigation, search
(add clear example of use, expand descriptions)
m
 
Line 6: Line 6:
 
If a large page has sections transcluded to a sub-page, it also makes it easier to link & redirect to the section if it exists on a separate page. Transclusion can be used to show a condensed part of one page/topic on a bigger page, giving the important parts in the bigger page, but
 
If a large page has sections transcluded to a sub-page, it also makes it easier to link & redirect to the section if it exists on a separate page. Transclusion can be used to show a condensed part of one page/topic on a bigger page, giving the important parts in the bigger page, but
  
'''Transclude existing page'''
+
'''Transclude existing page'''<br>
 
To add the content of an another page to the page you're editing, you transclude it by adding <code><nowiki>{{:Name of Page}}</nowiki></code> to the spot where you want it.
 
To add the content of an another page to the page you're editing, you transclude it by adding <code><nowiki>{{:Name of Page}}</nowiki></code> to the spot where you want it.
  
Line 21: Line 21:
  
  
'''Adjusting what parts of a page gets transcluded'''
+
'''Adjusting what parts of a page gets transcluded'''<br>
 
If non of the below elements are added to a page, everything will be included if it gets transcluded, including categories, all templates used, and miscellaneous stuff like links to related pages if it has something like it.     
 
If non of the below elements are added to a page, everything will be included if it gets transcluded, including categories, all templates used, and miscellaneous stuff like links to related pages if it has something like it.     
 
* <code><nowiki><noinclude></nowiki></code> - Content within the <code><nowiki>&lt;noinclude> ‎&lt;/noinclude></nowiki></code> tags is excluded from transclusion on the target page. This content still appears on the source page.
 
* <code><nowiki><noinclude></nowiki></code> - Content within the <code><nowiki>&lt;noinclude> ‎&lt;/noinclude></nowiki></code> tags is excluded from transclusion on the target page. This content still appears on the source page.

Latest revision as of 10:49, 11 August 2024

Main Page: Help:Contents

MediaWiki: Transclusion - include parts of one page into another page, which avoids needing to update several pages if they have a shared section transcluded from a separate page.

If a large page has sections transcluded to a sub-page, it also makes it easier to link & redirect to the section if it exists on a separate page. Transclusion can be used to show a condensed part of one page/topic on a bigger page, giving the important parts in the bigger page, but

Transclude existing page
To add the content of an another page to the page you're editing, you transclude it by adding {{:Name of Page}} to the spot where you want it.

For example, to transclude the content of Help:Transclusion to the middle of your current page that has content before and after:

==Lorem ipsum==
Taciti leo ac urna facilisi tempus feugiat mattis quisque. Nullam auctor arcu, aliquam amet nisl tortor.

==Transclusion==
{{:Help:Transclusion}}

==Other Stuff==
Odor amet, consectetuer adipiscing elit. Hac turpis fames netus augue tincidunt nunc, turpis est.


Adjusting what parts of a page gets transcluded
If non of the below elements are added to a page, everything will be included if it gets transcluded, including categories, all templates used, and miscellaneous stuff like links to related pages if it has something like it.

  • <noinclude> - Content within the <noinclude> ‎</noinclude> tags is excluded from transclusion on the target page. This content still appears on the source page.
  • <includeonly> - Content within the <includeonly> </includeonly>‎ tags is transcluded on the target page, but does not appear on the source page.
  • <onlyinclude> - Content within the ‎<onlyinclude> </onlyinclude> tags is transcluded on the target page, and also appears on the source page.

Pages using Translcusion

[edit] Related Pages