Template:Transclude/doc: Difference between revisions

From MC Public Wiki
Jump to navigation Jump to search
m (1 revision)
 
No edit summary
 
Line 1: Line 1:
{{doc/start|nodoc=1}}
{{Documentation subpage}}
{{doc/end}}<noinclude>
{{high-risk|6,600,000+}}
[[fr:Modèle:Transclude/doc]]
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
</noinclude>
 
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.
 
Key usage is in [[Template:Navbox|navboxes']] view, discuss, edit (v,d,e) menu.
 
=== Usage ===
 
*<code><nowiki>{{transclude| Template:Foo }}</nowiki></code> &rarr; '''{{transclude|Template:Foo}}'''
*<code><nowiki>{{transclude| Category:Foo }}</nowiki></code> &rarr; '''{{transclude|Category:Foo}}'''
*<code><nowiki>{{transclude| Foo }}</nowiki></code> &rarr; '''{{transclude|Foo}}'''
*<code><nowiki>{{transclude| :Foo }}</nowiki></code> &rarr; '''{{transclude|:Foo}}'''
*<code><nowiki>{{transclude| :File:Foo }}</nowiki></code> &rarr; '''{{transclude|:File:Foo}}'''
 
=== See also ===
* {{tl|Linked}}
* {{tl|Category title}}
* {{tl|File title}}
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia formatting and function templates|Transclude]]
 
[[ar:قالب:Transclude]]
[[et:Mall:Transclude]]
[[fa:الگو:Transclude]]
[[gu:ઢાંચો:Transclude]]
[[id:Templat:Transclude]]
[[ja:Template:Transclude]]
[[pt:Predefinição:Transclude]]
</includeonly>

Latest revision as of 15:36, 15 January 2012

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.

Key usage is in navboxes' view, discuss, edit (v,d,e) menu.

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