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 1: | Line 1: | ||
{{inuse|'Typing Intructions'|Shane}} | |||
To help you through the editing of this process this page breaks down the sections of the XML document, and how everything should be formated. | To help you through the editing of this process this page breaks down the sections of the XML document, and how everything should be formated. | ||
== 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 39: | ||
* 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 51: | ||
</pre> | </pre> | ||
The "overall" block for each | The "overall" block for each langauge is as follows: | ||
<pre> | <pre> | ||
| Line 84: | Line 86: | ||
* 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 110: | ||
* 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 131: | ||
</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. | ||