Template:Transclude/doc: Difference between revisions

From AnOtherWiki, the free encyclopedia written by, for, and about the Otherkin community.
m (1 revision)
 
m (Text replacement - "(['][']['])(.*)(['][']['])" to "{{b|$2}}")
 
Line 9: Line 9:
== Usage ==
== Usage ==


*<code><nowiki>{{transclude| Template:Foo }}</nowiki></code> &rarr; '''{{transclude|Template:Foo}}'''
*<code><nowiki>{{transclude| Template:Foo }}</nowiki></code> &rarr; {{b|{{transclude|Template:Foo}}}}
*<code><nowiki>{{transclude| Category:Foo }}</nowiki></code> &rarr; '''{{transclude|Category:Foo}}'''
*<code><nowiki>{{transclude| Category:Foo }}</nowiki></code> &rarr; {{b|{{transclude|Category:Foo}}}}
*<code><nowiki>{{transclude| Foo }}</nowiki></code> &rarr; '''{{transclude|Foo}}'''
*<code><nowiki>{{transclude| Foo }}</nowiki></code> &rarr; {{b|{{transclude|Foo}}}}
*<code><nowiki>{{transclude| :Foo }}</nowiki></code> &rarr; '''{{transclude|:Foo}}'''
*<code><nowiki>{{transclude| :Foo }}</nowiki></code> &rarr; {{b|{{transclude|:Foo}}}}
*<code><nowiki>{{transclude| :File:Foo }}</nowiki></code> &rarr; '''{{transclude|:File:Foo}}'''
*<code><nowiki>{{transclude| :File:Foo }}</nowiki></code> &rarr; {{b|{{transclude|:File:Foo}}}}


== See also ==
== See also ==

Latest revision as of 20:30, 13 September 2023

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