Editing
Help:Templates
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Copying from one wiki to another== Templates often require [http://meta.wikimedia.org/wiki/Help:CSS CSS] or other templates, so users frequently have trouble copying templates from one wiki to another. The steps below should work for most templates. === MediaWiki code === If you have import rights on the new wiki: # Go to [[Special:Export]] on the original wiki, and download an .xml file with the complete history of all necessary templates, as follows: #* Enter the name of the template in the big text box, e.g. "Template:Welcome". Pay special attention to capitalization and special characters β if the template name isn't exactly correct, the export may still occur but the .xml file will not have the expected data. #* Check the box "Include templates". #* '''Uncheck''' the box "Include only the current revision". #* Click Export. # Go to [[Special:Import]] on the new wiki and upload the .xml file. If you don't have import rights on the new wiki: # Go to [[Special:Export]] on the original wiki, and download an .xml file with the latest version only of all necessary templates, as follows: #* Enter the name of the template in the big text box. #* Check the box "Include templates". #* '''Check''' the box "Include only the current revision". #* Click Export. #* Open the file in a text editor and replace certain [[w:en:XML entity|XML entities]] with the corresponding characters: &lt; β <, &gt; β >, &quot; β " and &amp; β &. Because of XML syntax rules, these entities appear in the XML file, but they should not appear in the edit box of the MediaWiki instance. #* Manually copy the text inside the <code><nowiki><text></nowiki></code> tag of each listed template into a similarly named template in your wiki. In the edit summary of each template, link to the original page for attribution. This will copy the entire code necessary, and will suffice for some templates. === Extensions === An extension often used in templates is ParserFunctions. Visit page {{mediawiki|Help:Extension:ParserFunctions|ParserFunctions}} and check if any of the functions listed there are used in the templates you've copied. If so, you have to install the {{mediawiki|Extension:ParserFunctions|ParserFunctions extension}}. To install it, you'll need system admin access to the server of your MediaWiki installation. === CSS and JavaScript code === Besides MediaWiki code, many templates make use of CSS and some rely on JavaScript to work fully. If the copied templates are not behaving as expected, this may be the cause. To copy the required CSS and JavaScript to your wiki you'll normally need to have admin priviledges, because you'll be editing system messages in the "MediaWiki:" namespace. # Look for the use of CSS classes (text like <code>class="foobar"</code>) in the template text. If those classes appear in "MediaWiki:Common.css" or "MediaWiki:Monobook.css" on the original wiki, copy them to "MediaWiki:Common.css" on the new wiki and check if the template is now fine. # If the copied template is still not working as expected, check if there is code in "MediaWiki:Common.js" or "MediaWiki:Monobook.js" on the original wiki. If so, you can try copying it to "MediaWiki:Common.js" on the new wiki. Normally, it is a good idea to only copy code from trusted sources, and first browsing the code to identify and select the parts that are relevant. You may find comments that can serve as clues to identify the functionality of each part.
Summary:
Please note that all contributions to Fanra's EverQuest Wiki are considered to be released under the Creative Commons Attribution Share Alike (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Help page
Discussion
English
Views
Read
Edit source
View history
More
Search
Main Menu
Main page
Sections
Classes and Races
Spells, Songs, Disciplines, and AAs
Items
Zones
NPCs
Quests
Raids
Tradeskills
User Interface
Tips and Guides
EQ Links
Wiki
Recent changes
Advanced search
Random page
Help
Contact Fanra
Tools
What links here
Related changes
Upload file
Special pages
Page information