Difference between revisions of "Template:Transclude/doc"

From Recidemia English
Jump to: navigation, search
m (1 revision)
m (Increase template usage)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{high-risk|7,200,000+}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
  
 
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.
 
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.
+
The most prominent use of this template is in the {{Navbar|template:transclude/doc|mini=1}} menu used at the top of each {{tl|navbox}}, though it is used in other templates as well, such as {{tl|usbk}}.
  
=== Usage ===
+
== Usage ==
  
 
*<code><nowiki>{{transclude| Template:Foo }}</nowiki></code> &rarr; '''{{transclude|Template:Foo}}'''
 
*<code><nowiki>{{transclude| Template:Foo }}</nowiki></code> &rarr; '''{{transclude|Template:Foo}}'''
Line 13: Line 14:
 
*<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}}'''
 
*<code><nowiki>{{transclude| :File:Foo }}</nowiki></code> &rarr; '''{{transclude|:File:Foo}}'''
 +
 +
== See also ==
 +
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Function templates|{{PAGENAME}}]]
+
[[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>
 
</includeonly>

Revision as of 21:24, 29 April 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.

The most prominent use of this template is in the

menu used at the top of each {{navbox}}, though it is used in other templates as well, such as {{usbk}}.

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