Template:Template: Difference between revisions
Content deleted Content added
trying something. |
Add template autocategorization. |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> |
|||
⚫ | |||
---- |
|||
[[Category:RCTemplates]] |
|||
</includeonly> |
|||
⚫ | |||
<noinclude> |
|||
--The above gets included in any page (preferably templates) that uses ''this'' template. |
--The above gets included in any page (preferably templates) that uses ''this'' template. |
||
Mind you: The proper way to use ''this'' template is such: |
Mind you: The proper way to use ''this'' template is such: |
||
<nowiki> |
<nowiki><noinclude>{{template}}</noinclude></nowiki> |
||
If you neglect the "noinclude" tags, you'll include the body of this template in any page that uses the template you're editing. |
If you neglect the "noinclude" tags, you'll include the body of this template in any page that uses the template you're editing. |
||
Latest revision as of 13:41, 28 August 2010
--The above gets included in any page (preferably templates) that uses this template.
Mind you: The proper way to use this template is such:
<noinclude>{{template}}</noinclude>
If you neglect the "noinclude" tags, you'll include the body of this template in any page that uses the template you're editing.
If you're reading this on Rosetta Code, you're probably a programmer in some language that supports function calls. Think of this template like a function call from within a function call, and the return value of the nested call gets included with the return value of the parent function. The "noinclude" tags prevent the nested call's output from affecting the parent function's return value.