Template:Transclude/doc: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>A morris
mNo edit summary
sims>K6ka
(credit due where credit is due)
Line 12: Line 12:
*<code><nowiki>{{transclude| :Foo }}</nowiki></code> &rarr; '''{{transclude|:Foo}}'''
*<code><nowiki>{{transclude| :Foo }}</nowiki></code> &rarr; '''{{transclude|:Foo}}'''
*<code><nowiki>{{transclude| :File:Foo }}</nowiki></code> &rarr; '''{{transclude|:File:Foo}}'''
*<code><nowiki>{{transclude| :File:Foo }}</nowiki></code> &rarr; '''{{transclude|:File:Foo}}'''

===Credits===
This template was taken from the [[wikipedia:Template:Transclude|English Wikipedia]].


<includeonly>
<includeonly>

Revision as of 22:11, 23 February 2019


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 }}Template:Foo
  • {{transclude| Category:Foo }}Category:Foo
  • {{transclude| Foo }}Template:Foo
  • {{transclude| :Foo }}Foo
  • {{transclude| :File:Foo }}File:Foo

Credits

This template was taken from the English Wikipedia.