"模板:Transclude/doc" 修訂間的差異
出自 陳富國維基館
(←建立内容为“<includeonly>{{pp-template}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> 參數1填的是一個頁面,如果參數1...”的新頁面) |
小 (1個修訂) |
||
(未顯示同一使用者於中間所作的 1 次修訂) | |||
行 1: | 行 1: | ||
− | < | + | {{Documentation subpage}} |
− | + | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | |
+ | |||
+ | 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> → '''{{transclude|Template:Foo}}''' | ||
+ | *<code><nowiki>{{transclude| Category:Foo }}</nowiki></code> → '''{{transclude|Category:Foo}}''' | ||
+ | *<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}}''' | ||
+ | |||
+ | <includeonly> | ||
+ | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
+ | [[Category:Formatting templates|Transclude]] | ||
+ | |||
+ | </includeonly> |
於 2013年3月15日 (五) 12:53 的最新修訂
40px | This is a documentation subpage for 模板:Transclude. It contains usage information, categories and other content that is not part of the original 模板 page. |
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 }}
→ 模板:Foo{{transclude| Category:Foo }}
→ 分類:Foo{{transclude| Foo }}
→ Template:Foo{{transclude| :Foo }}
→ Foo{{transclude| :File:Foo }}
→ 檔案:Foo