Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing Battlestar Wiki:Template List/XML Templates/Instructions

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
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.
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 (categories), and any additional values that many be needed for the website in question, however there are only so many options that the Wikipedia Toolbar can handle.
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 languages installed. Separated by comma's (''',''').
* Lang - The lanagues installed. Seperated by comma's (''',''').


=== Lang Setup ===
=== Lang Setup ===
Line 49: Line 49:
</pre>
</pre>


The "overall" block for each language is as follows:
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 - '''Optional'''; 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).
* 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 - '''Optional'''; 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.
* 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 - '''Optional'''; What tooltip will shopw up if you hover your mouse over the template label.
* 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'''(ptional) to tell the system on how this variable can be treated. If this is missing, it is assumed that it is optional.
* 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 muiltiple var's and their could be differences making the required and optionial.
A more complex "template" include ones that has muilitiple var's and their could be differences making the required and optionial.


<pre>
<pre>

To edit this page, please enter the words that appear below in the box (more info):

Refresh
Cancel Editing help (opens in new window)

  [] · [[]] · [[|]] · {{}} · · “” ‘’ «» ‹› „“ ‚‘ · ~ | ° &nbsp; · ± × ÷ ² ³ ½ · §
     [[Category:]] · [[:File:]] · [[Special:MyLanguage/]] · <code></code> · <nowiki></nowiki> <code><nowiki></nowiki></code> · <syntaxhighlight></syntaxhighlight> · <includeonly></includeonly> · <noinclude></noinclude> · #REDIRECT[[]] · <translate></translate> · <languages/> · {{#translation:}} · <tvar|></> · {{DEFAULTSORT:}} · <categorytree></categorytree> · <div style="clear:both;"></div> <s></s>


Your changes will be visible immediately.
  • For testing, please use the sandbox instead.
  • On talk pages, please sign your comment by typing four tildes (~~~~).