Difference between revisions of "Templates - Tags to change behavior"

From Sun Myung Moon Archive
(Created page with "{{Concise}} By default, when a template is transcluded (or substituted), the entire wikitext (code) of the template page gets included in that of the target page. However it...")
 
 
Line 8: Line 8:
  
 
:''This help comes from: [https://en.wikipedia.org/wiki/Wikipedia:Template_inclusion#Noinclude.2C_includeonly.2C_and_onlyinclude Help:Template page on Wikipedia]''
 
:''This help comes from: [https://en.wikipedia.org/wiki/Wikipedia:Template_inclusion#Noinclude.2C_includeonly.2C_and_onlyinclude Help:Template page on Wikipedia]''
 +
 +
[[Category:Site structure and buildup help]]

Latest revision as of 09:33, 2 July 2015

Help(6 C, 4 P, 9 F)



By default, when a template is transcluded (or substituted), the entire wikitext (code) of the template page gets included in that of the target page. However it is possible to modify that behavior, using tags that specify which parts of the template code are to be included. Here follow the main tags:

  • <noinclude>...</noinclude> – the text between the noinclude tags will not be included when the template is transcluded (substituted), but will be processed on the template's page.
  • <includeonly>...</includeonly> – the text between the includeonly tags will be transcluded (substituted), but will not be processed on the template's own page.
  • <onlyinclude>...</onlyinclude> (not often used) – specifies that nothing on the page except what appears between the onlyinclude tags will be transcluded (substituted).


This help comes from: Help:Template page on Wikipedia