m (More examples and rewording) Tags: Help sourceedit |
m (remove inappropriate NewPP limit report text) Tags: Visual edit Help |
||
(19 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ |
__NOTOC__ |
||
[[File:Puzzle_globe-1.png|thumb|250px|Templates are one of the pieces that build a wiki.]] |
[[File:Puzzle_globe-1.png|thumb|250px|Templates are one of the pieces that build a wiki.]] |
||
− | '''Shared templates''' are [[Help:Templates|templates]] that can be used across |
+ | '''Shared templates''' are [[Help:Templates|templates]] that can be used across Fandom. These templates originate on [[homepage:w:|Community Central]]. |
== Step by step == |
== Step by step == |
||
* First, identify which template you're going to use by visiting it on Community Central. You can browse for a specific template at [{{fullurl:w:Special:AllPages|namespace=10}} Special:AllPages]. You can also create a new one from scratch. |
* First, identify which template you're going to use by visiting it on Community Central. You can browse for a specific template at [{{fullurl:w:Special:AllPages|namespace=10}} Special:AllPages]. You can also create a new one from scratch. |
||
* Then, go to the page you wish to display the template on at another wiki, and open that page for editing. |
* Then, go to the page you wish to display the template on at another wiki, and open that page for editing. |
||
− | * On the page, enter |
+ | * On the page, enter '''<code><nowiki>{{w:templatename}}</nowiki></code>'''. You can also use a redirected template, e.g., '''<code><nowiki>{{w:lorem}}</nowiki></code>''' for '''<code><nowiki>{{w:lorem ipsum}}</nowiki></code>'''. |
− | :For example, if you wanted to display [[homepage:w:Template:Adoption|Template:Adoption]] on another community, you would edit a page there and enter |
+ | :For example, if you wanted to display [[homepage:w:Template:Adoption|Template:Adoption]] on another community, you would edit a page there and enter '''<code><nowiki>{{w:adoption}}</nowiki></code>''' |
:It will display on that community like this:{{-}} |
:It will display on that community like this:{{-}} |
||
:{{w:adoption}} |
:{{w:adoption}} |
||
== Usage notes == |
== Usage notes == |
||
+ | |||
=== General notes === |
=== General notes === |
||
− | * '''Benefits''': One advantage of having shared templates on [[Help: |
+ | * '''Benefits''': One advantage of having shared templates on [[Help:Fandom Community Central|Fandom Community Central]] is that they are watched by a large community, and can be quickly fixed in cases of vandalism. |
− | * '''Non-template pages''': You can also include pages that are out of the template [[Help:Namespace|namespace]], but instead of using <code><nowiki>{{ |
+ | * '''Non-template pages''': You can also include pages that are out of the template [[Help:Namespace|namespace]], but instead of using <code><nowiki>{{w:Template name}}</nowiki></code> you must use <code><nowiki>{{w::Full page name}}</nowiki></code>, or <code><nowiki>{{:w:Full page name}}</nowiki></code>. There are three (or two) colons in these cases; one arranges to look for a full page name instead of a template name, another terminates the [[Help:Interwiki link|interwiki prefix]] <code>w:</code>, and the third colon terminates the [[Help:Namespace|namespace]] in a full page name such as <samp>{{FULLPAGENAME}}</samp>. |
* '''Editing''': Major changes that could have negative effects on other communities should not be made to any shared templates. However, corrections and improvements that won't prevent the templates from functioning in the way they were originally used are welcome. |
* '''Editing''': Major changes that could have negative effects on other communities should not be made to any shared templates. However, corrections and improvements that won't prevent the templates from functioning in the way they were originally used are welcome. |
||
− | * '''Styling''': Since these templates will be used on communities with a wide variety of [[Help:Theme |
+ | * '''Styling''': Since these templates will be used on communities with a wide variety of [[Help:Theme Designer|designs]], be careful not to add unnecessary styling and formatting to the templates, since this might conflict with the style of the communities they are used on. |
− | * '''Translations''': |
+ | * '''Translations''': Translations are welcome, either at the native name for the template, or as a subpage of the English name, using <nowiki>[[</nowiki>w:Template:Name/lang code]] format. For example, the Russian version of [[w:Template:Wikipedia|Template:Wikipedia]] could go at [[w:Template:Википедия|Template:Википедия]] or at [[w:Template:Wikipedia/ru|Template:Wikipedia/ru]]. |
=== Limitations === |
=== Limitations === |
||
* '''Parameters''': [[Help:Template parameters|Parameters]] cannot be used with shared templates. |
* '''Parameters''': [[Help:Template parameters|Parameters]] cannot be used with shared templates. |
||
− | * '''Update speed''': If a template is edited on Community Central, pages on other communities using it should automatically update. However, this can sometimes take a short while to occur, and can be |
+ | * '''Update speed''': If a template is edited on Community Central, pages on other communities using it should automatically update. However, this can sometimes take a short while to occur, and can be sped up by editing the destination page. |
− | * '''Noinclude''': <code><noinclude></code> is not currently passed through. For example, [[ |
+ | * '''Noinclude''': <code><noinclude></code> is not currently passed through. For example, [[w:Template:Other free|Template:Other free]] used as <code><nowiki>{{w:Other free}}</nowiki></code> on another community still shows the documentation section. |
− | * '''Categories''': Community Central pages used as shared template do not affect the [[Help:Category|categories]] of the page where the shared template is used. For example, <code class="plainlinks">{{w::[[ |
+ | * '''Categories''': Community Central pages used as shared template do not affect the [[Help:Category|categories]] of the page where the shared template is used. For example, <code class="plainlinks">{{w::[[w:User:FandomBot|User:FandomBot]]}}</code> works as expected, but does not set [[w:Category:Fandom script accounts|Category:Fandom script accounts]]. |
== See also == |
== See also == |
||
Line 31: | Line 32: | ||
== Further help and feedback == |
== Further help and feedback == |
||
{{Help and feedback section}} |
{{Help and feedback section}} |
||
+ | [[de:Hilfe:Geteilte Vorlagen]] |
||
− | |||
⚫ | |||
− | |||
[[es:Ayuda:Plantillas compartidas]] |
[[es:Ayuda:Plantillas compartidas]] |
||
+ | [[fi:Ohje:Jaetut mallineet]] |
||
[[ja:ヘルプ:共有テンプレート]] |
[[ja:ヘルプ:共有テンプレート]] |
||
[[pt:Ajuda:Predefinições compartilhadas]] |
[[pt:Ajuda:Predefinições compartilhadas]] |
||
[[ru:Справка:Общие шаблоны]] |
[[ru:Справка:Общие шаблоны]] |
||
+ | [[tr:Yardım:Paylaşılan şablonlar]] |
||
+ | [[uk:Довідка:Загальні шаблони]] |
||
[[zh:Help:共用模板]] |
[[zh:Help:共用模板]] |
||
⚫ |
Revision as of 13:10, 8 February 2020
Shared templates are templates that can be used across Fandom. These templates originate on Community Central.
Step by step
- First, identify which template you're going to use by visiting it on Community Central. You can browse for a specific template at Special:AllPages. You can also create a new one from scratch.
- Then, go to the page you wish to display the template on at another wiki, and open that page for editing.
- On the page, enter
{{w:templatename}}
. You can also use a redirected template, e.g.,{{w:lorem}}
for{{w:lorem ipsum}}
.
- For example, if you wanted to display Template:Adoption on another community, you would edit a page there and enter
{{w:adoption}}
- It will display on that community like this:
- This Fandom wiki is currently inactive. You can adopt this wiki and revive it.
Usage notes
General notes
- Benefits: One advantage of having shared templates on Fandom Community Central is that they are watched by a large community, and can be quickly fixed in cases of vandalism.
- Non-template pages: You can also include pages that are out of the template namespace, but instead of using
{{w:Template name}}
you must use{{w::Full page name}}
, or{{:w:Full page name}}
. There are three (or two) colons in these cases; one arranges to look for a full page name instead of a template name, another terminates the interwiki prefixw:
, and the third colon terminates the namespace in a full page name such as Help:Shared templates. - Editing: Major changes that could have negative effects on other communities should not be made to any shared templates. However, corrections and improvements that won't prevent the templates from functioning in the way they were originally used are welcome.
- Styling: Since these templates will be used on communities with a wide variety of designs, be careful not to add unnecessary styling and formatting to the templates, since this might conflict with the style of the communities they are used on.
- Translations: Translations are welcome, either at the native name for the template, or as a subpage of the English name, using [[w:Template:Name/lang code]] format. For example, the Russian version of Template:Wikipedia could go at Template:Википедия or at Template:Wikipedia/ru.
Limitations
- Parameters: Parameters cannot be used with shared templates.
- Update speed: If a template is edited on Community Central, pages on other communities using it should automatically update. However, this can sometimes take a short while to occur, and can be sped up by editing the destination page.
- Noinclude:
<noinclude>
is not currently passed through. For example, Template:Other free used as{{w:Other free}}
on another community still shows the documentation section. - Categories: Community Central pages used as shared template do not affect the categories of the page where the shared template is used. For example,
{{w::User:FandomBot}}
works as expected, but does not set Category:Fandom script accounts.
See also
- Help:Shared Help
- Help:Templates
Further help and feedback
- Browse and search other help pages at Help:Contents
- Check Fandom Community Central for sources of further help and support
- Check Contacting Fandom for how to report any errors or unclear steps in this article