Editing Battlestar Wiki:Template List/XML Templates/Instructions
From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 3: | Line 3: | ||
== The XML Document == | == The XML Document == | ||
The XML document holds all the templates, sections ( | The XML document holds all the templates, sections (catagories), and any addistionial values that many be needed for the website in question, however there are only so many options that the Wikipedia Toolbar can handle. | ||
First of all, the XML document always starts with this line: | First of all, the XML document always starts with this line: | ||
| Line 37: | Line 37: | ||
* Type - The type of wiki that it operates. | * Type - The type of wiki that it operates. | ||
* Icon - For future | * Icon - For future | ||
* Lang - The | * Lang - The lanagues installed. Seperated by comma's (''','''). | ||
=== Lang Setup === | === Lang Setup === | ||
| Line 49: | Line 49: | ||
</pre> | </pre> | ||
The "overall" block for each | The "overall" block for each langauge is as follows: | ||
<pre> | <pre> | ||
| Line 84: | Line 84: | ||
* Label - Short Label of the Section | * Label - Short Label of the Section | ||
* Area - A '''''unique''''' ID for this section. | * Area - A '''''unique''''' ID for this section. | ||
* Parent - ''' | * Parent - '''Optionial'''; If this is set, this must equal something to <code>area</code> and must be placed after the orginal section is placed. (as shown above). | ||
== Templates == | == Templates == | ||
| Line 108: | Line 108: | ||
* Label - A short label. | * Label - A short label. | ||
* Text - The template itself. | * Text - The template itself. | ||
* Cat - ''' | * Cat - '''Optionial'''; What section it falls under. If this is not put in, it goes in the upper level section that holds the catagories in the first place. | ||
* Tooltip - ''' | * Tooltip - '''Optionial'''; What tooltip will shopw up if you hover your mouse over the template label. | ||
Another type of template settings are possaible. | Another type of template settings are possaible. | ||
| Line 129: | Line 129: | ||
</pre> | </pre> | ||
* Templatecode - The text that will be displayed in the input box that will popup telling the user, what to enter. The <code>|{r|o}</code> at the end stands for either '''r'''(equired) or '''o'''( | * Templatecode - The text that will be displayed in the input box that will popup telling the user, what to enter. The <code>|{r|o}</code> at the end stands for either '''r'''(equired) or '''o'''(ptionial) to tell the system on how this varabile can be treated. If this is missing, it is assumed that it is optionial. | ||
Having one "var" in the template creates a unique check system. If text is selected when selecting this template, that selected text will replace the var with no dialog poping up. If there is no text selected, a dialog would popup asking you to input text. | Having one "var" in the template creates a unique check system. If text is selected when selecting this template, that selected text will replace the var with no dialog poping up. If there is no text selected, a dialog would popup asking you to input text. | ||
A more complex "template" include ones that has | A more complex "template" include ones that has muilitiple var's and their could be differences making the required and optionial. | ||
<pre> | <pre> | ||