Template:Transclude/doc

From Sapphire Wiki
Revision as of 22:34, 3 September 2013 by Bryan (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

<templatedata> {

       "description": "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.",
       "params": {
               "1": {
                       "label": "Page name",
                       "description": "The name of the page you are tring to link to",
                       "type": "string",
                       "required": true
               }
       }

} </templatedata>