Template:Transclude: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>Ĺаncer1289 No edit summary |
m (4 revisions imported: Import from https://sims.wikia.com) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{NAMESPACE: {{{1}}} }} |
|||
http://s1229.photobucket.com/albums/ee471/fdtyer/t.jpg |
|||
|#default = {{FULLPAGENAME: {{{1}}} }} <!-- eg "User:Foo" --> |
|||
http://s1229.photobucket.com/albums/ee471/fdtyer/l.jpg |
|||
|{{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 --> |
|||
}} |
|||
}}<noinclude> |
|||
{{documentation}} |
|||
</noinclude> |
Latest revision as of 22:12, 23 February 2019
Template:{{{1}}}
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[edit source]
{{transclude| Template:Foo }}
→ Template:Foo{{transclude| Category:Foo }}
→ Category:Foo{{transclude| Foo }}
→ Template:Foo{{transclude| :Foo }}
→ Foo{{transclude| :File:Foo }}
→ File:Foo
Credits[edit source]
This template was taken from the English Wikipedia.
Visit Template:Transclude/doc to edit this text! (How does this work?) (Refresh this text - why?)