FANDOM


(better)
(subsect)
Line 6: Line 6:
 
# Paste the wikitext code you copied in the edit box of the destination template on your wiki and press the <span class="button">Publish</span> button.
 
# Paste the wikitext code you copied in the edit box of the destination template on your wiki and press the <span class="button">Publish</span> button.
   
  +
=== Copying documentation ===
 
Many templates have a separate subpage for documentation about the template, but they almost never are needed for the template to function. Fortunately, the location is often standardized, so it is easy to copy the documentation as well. If you notice the template page you copied above does not look like the original, it is likely the documentation is on a separate subpage:
 
Many templates have a separate subpage for documentation about the template, but they almost never are needed for the template to function. Fortunately, the location is often standardized, so it is easy to copy the documentation as well. If you notice the template page you copied above does not look like the original, it is likely the documentation is on a separate subpage:
 
# Find the template doc page you want to copy (usually <tt>https://</tt>''wikiname''<tt>.wikia.com/wiki/Template:</tt>''templatename''<tt>/doc</tt>).
 
# Find the template doc page you want to copy (usually <tt>https://</tt>''wikiname''<tt>.wikia.com/wiki/Template:</tt>''templatename''<tt>/doc</tt>).

Revision as of 03:39, July 28, 2018

Instructions

How to copy a template (based on Help:Templates):

  1. Find the template you want to copy (usually https://wikiname.wikia.com/wiki/Template:templatename).
  2. Create a new template page on your community (https://yourwiki.wikia.com/wiki/Template:templatename?action=edit). If asked to select a template type, choose what seems logical or just pick "Data".
  3. Go back to template you want to copy, click the EDIT button, make sure to switch to source edit mode, select all of the wikitext, and copy it.
  4. Paste the wikitext code you copied in the edit box of the destination template on your wiki and press the Publish button.

Copying documentation

Many templates have a separate subpage for documentation about the template, but they almost never are needed for the template to function. Fortunately, the location is often standardized, so it is easy to copy the documentation as well. If you notice the template page you copied above does not look like the original, it is likely the documentation is on a separate subpage:

  1. Find the template doc page you want to copy (usually https://wikiname.wikia.com/wiki/Template:templatename/doc).
  2. Create a new template doc page on your community (https://yourwiki.wikia.com/wiki/Template:templatename/doc?action=edit). If asked to select a template type, choose "Non-article".
  3. Go back to template doc page you want to copy, click the EDIT button, make sure to switch to source edit mode, select all of the wikitext, and copy it.
  4. Paste the wikitext code you copied in the edit box of the destination template doc page on your wiki and press the Publish button.

See also

Community content is available under CC-BY-SA unless otherwise noted.