Jump to content

Template:Transclude/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
 
Line 5: Line 5:
{{high-use|22916}}
{{high-use|22916}}


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 page-transclusion process. It thereby removes ambiguity when doing ''other'' things with template pagenames, e.g. linking.


== Usage ==
== Usage ==
Line 13: Line 13:
* <code><nowiki>{{transclude| :Foo }}</nowiki></code> → '''{{transclude|:Foo}}'''
* <code><nowiki>{{transclude| :Foo }}</nowiki></code> → '''{{transclude|:Foo}}'''
* <code><nowiki>{{transclude| :File:Foo }}</nowiki></code> → '''{{transclude|:File:Foo}}'''
* <code><nowiki>{{transclude| :File:Foo }}</nowiki></code> → '''{{transclude|:File:Foo}}'''
* <code><nowiki>{{transclude| Project:Foo }}</nowiki></code> → '''{{transclude|Project:Foo}}'''


==TemplateData==
==TemplateData==

Latest revision as of 16:43, 11 July 2024

This template resolves page names as they would be handled by MediaWiki's page-transclusion process. It thereby removes ambiguity when doing other things with template pagenames, e.g. linking.

Usage

[edit]
  • {{transclude| Template:Foo }}Template:Foo
  • {{transclude| Category:Foo }}Category:Foo
  • {{transclude| Foo }}Template:Foo
  • {{transclude| :Foo }}Foo
  • {{transclude| :File:Foo }}File:Foo
  • {{transclude| Project:Foo }}Wikipedia:Foo

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Transclude in articles based on its TemplateData.

TemplateData for Transclude

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.

Template parameters

ParameterDescriptionTypeStatus
Page name1

The name of the page you are trying to link to

Stringrequired

See also

[edit]