Difference between revisions of "Template:Transclude"

From Backstage Lore Wiki
Jump to: navigation, search
(Created for use in Template:Navbar; template should now be supported,)
 
 
Line 7: Line 7:
 
     }}
 
     }}
 
}}<noinclude>
 
}}<noinclude>
{{documentation}}
+
 
 +
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}}'''
 +
 
 
</noinclude>
 
</noinclude>

Latest revision as of 13:28, 31 January 2012

Template:{{{1}}}

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


Personal tools
Namespaces

Variants
Actions
Navigation
Tools