Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Transclude/doc: Difference between revisions

Template page
Created page with "{{documentation header}} <!-- documentation here --> This template resolves page names as they would be handled by MediaWiki's template-transclusion process. It thereby removes ambiguity when doing ''other'' things with template pagenames, e.g. linking. == Usage == *<code><nowiki>{{transclude| Template:Foo }}</nowiki></code> → '''{{transclude|Template:Foo}}''' *<code><nowiki>{{transclude| Category:Foo }}</nowiki></code> → '''{{transclude|Category:Foo}}''' *<code><..."
 
mNo edit summary
 
Line 17: Line 17:
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- template categories/interwikis here -->
<!-- template categories/interwikis here -->
[[Category:Meta_templates]]
[[Category:Meta templates]]
}}</includeonly>
}}</includeonly>
<noinclude>
<noinclude>
<!-- documentation categories/interwikis here -->
<!-- documentation categories/interwikis here -->
</noinclude>
</noinclude>

Latest revision as of 22:33, 16 June 2025

This is the documentation page. It should be transcluded into Template:Transclude. See Template:Documentation for more information.

This template resolves page names as they would be handled by MediaWiki's template-transclusion process. It thereby removes ambiguity when doing other things with template pagenames, e.g. linking.

Usage

  • {{transclude| Template:Foo }}Template:Foo
  • {{transclude| Category:Foo }}Category:Foo
  • {{transclude| Foo }}Template:Foo
  • {{transclude| :Foo }}Foo
  • {{transclude| :File:Foo }}File:Foo

See also