Template:Transclude: Difference between revisions
Jump to navigation
Jump to search
创建页面,内容为“<includeonly>{{FULLPAGENAME: {{#switch: {{NAMESPACE: {{{1}}} }} |#default = {{{1}}} <!-- eg "User:Foo" --> |{{ns:0}} = {{#ifeq: {{NAMESPACE: {{{1}}} }} | {{NAMESPACE: Template{{{1}}} }} | Template:{{{1}}} <!-- no leading colon, eg "Foo" --> | {{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article --> }} }} }}</includeonly><noinclude> {{documentation}} </noinclude>” |
m 1 revision imported |
(No difference)
|
Latest revision as of 12:29, 1 November 2024
|1=
填的是一个页面,如果|1=
没有指定命名空间的话(且无前导冒号)就会在前面加上"Template:"。
示例
- {{transclude|Template:Foo}} → Template:Foo
- {{transclude|Category:Foo}} → Category:Foo
- {{transclude|Foo}} → Template:Foo
- {{transclude|:Foo}} → Foo
- {{transclude|:File:Foo}} → File:Foo
参见
- 维基百科上的Template:Transclude
[ View | Edit | History | Purge ]The above documentation is transcluded from Template:Transclude/doc.