Main Page Help Center Linking and using templates from other communities

Help:Linking and using templates from other communities View history

imported>Wottem
(Created page with "It is possible to use Global wiki templates in local wikis without importing the templates. In this manner, we can keep templates updated with the gl...")
 
imported>Wottem
No edit summary
Line 1: Line 1:
It is possible to use Global wiki templates in local wikis without [[Help:Interwiki import|importing]] the templates. In this manner, we can keep templates updated with the global source.
{{HelpPage
 
|page content=It is possible to use Global wiki templates in local wikis without [[Help:Interwiki import|importing]] the templates. In this manner, we can keep templates updated with the global source.
== Interwiki template transclusion ==
|zippers={{Togglesection
In order to transclude a template from the global wiki we will need to use this syntax in the wiki source editor:
|title=Interwiki template transclusion
|content=In order to transclude a template from the global wiki we will need to use this syntax in the wiki source editor:
<pre><nowiki>{{Global:Template name}}</nowiki></pre>
<pre><nowiki>{{Global:Template name}}</nowiki></pre>
this will enable the use of the Global wiki template named ''Template name'' in the destination wiki.
this will enable the use of the Global wiki template named ''Template name'' in the destination wiki.}}{{Togglesection
== Interwiki page transclusion ==
|title=Interwiki page transclusion
In order to transclude a page from the main name space from the global wiki we will need to use this syntax in the wiki source editor (note the double colon mark):
|content=In order to transclude a page from the main name space from the global wiki we will need to use this syntax in the wiki source editor (note the double colon mark):
<pre><nowiki>{{Global::Page name}}</nowiki></pre>
<pre><nowiki>{{Global::Page name}}</nowiki></pre>
Or if the page is nested in a namespace than use:
Or if the page is nested in a namespace than use:
<pre><nowiki>{{Global::Name Space name:Page name}}</nowiki></pre>
<pre><nowiki>{{Global::Name Space name:Page name}}</nowiki></pre>
Where ''Name Space name'' is the name space prefix (i.e. - help:)
Where ''Name Space name'' is the name space prefix (i.e. - help:)}}{{Togglesection
== Read more ==
|title=Where can i read more?
* [[mw:Manual:$wgEnableScaryTranscluding|More explanations in the MediaWiki site]]
|content=Please visit Mediawiki manual page for [[mw:Manual:$wgEnableScaryTranscluding|More explanations]]}}
}}

Revision as of 10:49, 14 October 2020


It is possible to use Global wiki templates in local wikis without importing the templates. In this manner, we can keep templates updated with the global source.

Interwiki template transclusion


Interwiki page transclusion


Where can i read more?

Related articles