FANDOM


  • I don't know how to create a template from the community wiki to another wiki from Fandom. I was trying to show a template in this wiki coming from another wiki.

      Loading editor
    • Your wording is confusing. Where is the template and where are you trying to use it?

        Loading editor
    • My own template from this wiki (the community wiki) to my Candy Crush wiki that I have to use. I have to bring a template from one wiki to another.

        Loading editor
    • You can't. If you want to use templates on more than one wiki, you've got to create templates on more than one wiki. Sharing templates, so-called scary transclusion, is a needless strain on the servers.

        Loading editor
    • The only exception here is Community Central, in which case it is possible using w: as a prefix, just like any other template.

        Loading editor
    • Tupka217, "shouldn't" and "can't" aren't the same thing.

      Since your template is located here on CC, then you can transclude it on other wikis as Mendes2 mentioned. Let's say your template page here on CC is "Template:User:Evan0512/Template2". To transclude this on a different wiki, use this wikitext:

      {{w:User:Evan0512/Template2}}
      
        Loading editor
    • Andrewds1021 wrote: Tupka217, "shouldn't" and "can't" aren't the same thing.

      Since your template is located here on CC, then you can transclude it on other wikis as Mendes2 mentioned. Let's say your template page here on CC is "Template:User:Evan0512/Template2". To transclude this on a different wiki, use this wikitext:

      {{w:User:Evan0512/Template2}}
      

      (Side question) Can you name a template like that? How would the interpreter differ it from transcluding a page in the User namespace?

        Loading editor
    • I don't know the details but the interpreter does distinguish between them. In order to transclude a page outside of the template namespace, you need to place and extra ":" either before or after the "w". For example

      {{:w:User:Evan0512/Template2}}
      {{w::User:Evan0512/Template2}}
      

      You would need to use either one of those to translude "User:Evan0512/Template2" instead of "Template:User:Evan0512/Template2". So, basically the syntax for scary tranclusion is as follows.

      {{w:Pagename}}
      {{w::Namepsace:Pagename}}
      {{:w:Namepsace:Pagename}}
      
        Loading editor
    • Interesting. But in regular transclution, not interwiki, you don't need theĀ : prefix when you specify a namespace, so how would it work then?

        Loading editor
    • The two types of transclusion are handled differently by MediaWiki. As I said, I don't know the details. All I know is that, due to the difference in how they are handled, this is the resulting difference in how you use them.


      Edit:

      I am not even sure if this is a result of MediaWiki's built-in interwiki transclusion or some Fandom-custom solution they made for their wikis. For instance, interwiki links are a built-in Mediawiki feature but the ability to use "w:c:domain" to link to other Fandom wikis is custom code only Fandom has; not even Gamepedia has it (yet).

        Loading editor
    • OK But I mean, forget about interwiki transclution for a moment. If I create a template named User:Andrewds1021, the expression {{User:Andrewds1021}} is now double-meaning.

        Loading editor
    • No it doesn't. Because "User" is a namespace, internal tranclusion will assume "User:Andrewds1021". If you want "Template:User:Andrewds1021", then you need to explicitly specify the template namespace by using {{Template:User:Andrewds1021}}.

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.