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

Template:Ship: Difference between revisions

Template page
No edit summary
No edit summary
Line 80: Line 80:
All the ship informations are stored in this page (wiki template article page) : [[Template:ShipDatabase]]
All the ship informations are stored in this page (wiki template article page) : [[Template:ShipDatabase]]
You won't see anything by just viewing to page, to actually see the database contents, you'll have to edit the page by clicking the Edit button on the top of the article. There are things you must understand before trying to make any changes to the database, first of all, the article structure itself.
You won't see anything by just viewing to page, to actually see the database contents, you'll have to edit the page by clicking the Edit button on the top of the article. There are things you must understand before trying to make any changes to the database, first of all, the article structure itself.
====Header Section====
====Database Sections : Where Should I Put The Data?====
This is the header section of the database, it is not modifiable and under no circumstances that you change any of the texts/codes in this section
The database article is divided in three sections,
<div style='background-color: #111111;border: 1px dashed #555555;color: #CCCCCC;line-height: 1.1em;padding: 1em;float: left;margin-bottom: 30px;'>
*<span style='color:red;'>Header Section</span>
<nowiki>{{Color box|color=darkred|border=white|'''SHIPS DATABASE'''<br><br>If you want to <u>add/edit/remove a ship information</u> so you and other people can use it, this is the place to do them. Just be careful while you do so, since the changes should <u>affect the entire ship information throughout the wiki</u>. Please consult [[Template:Ship|this page]] first if you want to make changes to the database.}}{{#switch:{{{1}}}</nowiki>
*<span style='color:green;'>Data Section</span>
*<span style='color:red;'>Footer Section</span>
<u>'''Under no circumstances should you change the Header or Footer Section!'''</u>, if you made a mistake on doing so, click on View History - Click Undo on the last work you've done until that point.
<div style='background-color: #111111;border: 1px dashed #555555;color: #CCCCCC;line-height: 1.1em;padding: 1em;'>
<span style='color:red;'><nowiki><!--HEADER SECTION START-->Header codes<!--HEADER SECTION END--></nowiki></span><br><br>
<span style='color:green;'><nowiki><!--DATA SECTION START--></nowiki><br><br><span style='color:white;'>
This is where we put all the ship datas, it's sorted alphabetically so if you wanted to add a new ship info, try placing them in the appropriate alphabetical section.
</span><br><br><nowiki><!--DATA SECTION END--></nowiki></span><br><br>
<span style='color:red;'><nowiki><!--FOOTER SECTION START-->Footer codes<!--FOOTER SECTION END--></nowiki></span>
</div><br>
====Ship Data : How Is It Written?====
Below is the basic format of an empty ship data, you could copy the codes and paste them on the appropriate data section on the database and change the values of the texts colored in <span style='color:yellow'>yellow</span>. <u>'''Do not change anything else!'''</u>
<div style='background-color: #111111;border: 1px dashed #555555;color: #CCCCCC;line-height: 1.1em;padding: 1em;'>
<nowiki>
|</nowiki><span style='color:yellow'>ship_name</span><nowiki>={{ShipSelector|mode={{{2}}}</nowiki><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|shipimg=</nowiki><span style='color:yellow'>ship_image_file</span><nowiki> </nowiki><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|caption=</nowiki><span style='color:yellow'>ship_name</span><nowiki> |shipname=</nowiki><span style='color:yellow'>ship_name</span><nowiki> |class=</nowiki><span style='color:yellow'>ship_class</span><nowiki></nowiki><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|highs=</nowiki><span style='color:yellow'>0</span><nowiki> |turrets=</nowiki><span style='color:yellow'>0</span><nowiki> |launchers=</nowiki><span style='color:yellow'>0</span><nowiki> |mediums=</nowiki><span style='color:yellow'>0</span><nowiki> |lows=</nowiki><span style='color:yellow'>0</span><nowiki></nowiki><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|cargohold=</nowiki><span style='color:yellow'>0 m3</span><nowiki> |dronebay=</nowiki><span style='color:yellow'>0 m3</span><nowiki> |bandwidth= </nowiki><span style='color:yellow'>0 Mbit/sec</span><nowiki></nowiki><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|roles=</nowiki><span style='color:yellow'>ship_general_role</span><nowiki></nowiki><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|variations=</nowiki><span style='color:yellow'>ship_variations</span><nowiki></nowiki><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|bonuses=</nowiki><span style='color:yellow'>ship_bonuses</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|info=</nowiki><span style='color:yellow'>ship_information_or_description</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|shieldhp=</nowiki><span style='color:yellow'>0</span><nowiki> |shieldem=</nowiki><span style='color:yellow'>0</span><nowiki> |shieldexp=</nowiki><span style='color:yellow'>0</span><nowiki> |shieldkin=</nowiki><span style='color:yellow'>0</span><nowiki> |shieldtherm=</nowiki><span style='color:yellow'>0</span><nowiki> </nowiki><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|armorhp=</nowiki><span style='color:yellow'>0</span><nowiki> |armorem=</nowiki><span style='color:yellow'>0</span><nowiki> |armorexp=</nowiki><span style='color:yellow'>0</span><nowiki> |armorkin=</nowiki><span style='color:yellow'>0</span><nowiki> |armortherm=</nowiki><span style='color:yellow'>0</span><nowiki></nowiki><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|targetrange=</nowiki><span style='color:yellow'>0 km</span><nowiki> |sigradius=</nowiki><span style='color:yellow'>0 m</span><nowiki> |maxvelocity=</nowiki><span style='color:yellow'>0 m/sec</span><nowiki></nowiki><br>
&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>|forumlinks=}}</nowiki>
</div>
</div>
You should replace each of the <span style='color:yellow'>yellow</span> texts to their appropriate values based on the name of texts. Each one correlates to different parts of the info box :
*<span style='color:yellow'>ship_name</span> = the ship's name, example : Drake
*<span style='color:yellow'>ship_image_file</span> = the ship's image file, if you're adding a new ship which has no image present on the wiki, you'll have to upload one yourself. example : Drake.jpg
*<span style='color:yellow'>ship_class</span> = the ship's class or hull class, example : Battlecruiser
*the highs, turrets, mediums and lows <span style='color:yellow'>0 values</span> = the number of the slots available for the ship, example : 7
*cargohold, dronebay and bandwith <span style='color:yellow'>0 values</span> = the values of each parameter, with their appropriate dimension/size, example : 150 m3 (for cargohold), 150 Mbit/sec (for bandwith)
*<span style='color:yellow'>ship_general_role</span> = the role of the ship, this was meant to be a basic guideline on what new players should see what the use for this ship, example : Missions, Tackler
*<span style='color:yellow'>ship_variations</span> = other variants of the ship, you can write them as links, separated by comma, example : <nowiki>[http://wiki.eveonline.com/en/wiki/Crow Crow], [http://wiki.eveonline.com/en/wiki/Raptor Raptor]</nowiki>
*<span style='color:yellow'>ship_bonuses</span> = the bonuses or role bonuses for the ship, please separate each new line with a <nowiki><br></nowiki> tag.
*<span style='color:yellow'>ship_information_or_description</span> = short (or long, if you prefer) description about the ship, you can write a short paragraph for the description.
*shieldhp, shieldem, shieldexp, shieldexp and shieldtherm <span style='color:yellow'>0 values</span> = shieldhp is the base shield hp value of the ship, while the other is the base shield resistance value of the ship, <u>use numerical values only WITHOUT percentage symbol!</u>
*armorhp, armorem, armorexp, armorexp and armortherm <span style='color:yellow'>0 values</span> = armorhp is the base armor hp value of the ship, while the other is the base armor resistance value of the ship, <u>use numerical values only WITHOUT percentage symbol!</u>
*targetrange, sigradius and maxvelocity <span style='color:yellow'>0 values</span> = the values of each parameter, with their appropriate dimension/size, example : 30 km (for targetrange), 500 m/sec (for maxvelocity)
*forumlinks = you can add forum links here or you can just leave them empty but if you decide to add more than one, you don't have to separate them using a <nowiki><br></nowiki> tag, just use comma.
<br>
{{Color box|color=#144f1d|border=#2f8f2f|If you're editing or adding a new ship information, please make sure that no symbols, starting/closing tags, punctuation is left behind. You'll see that if you made a mistake the ship information boxes on this page and others wont render correctly, if you encountered this problem, just undo your work from the View History on the Database page.}}
<br>
===Editing a Ship Details===
===Editing a Ship Details===
To edit a ship info/details/attributes, simply visit this article : [[Template:ShipDatabase]], and click on the edit button. For safety reasons, please copy the article to a notepad or other editor you prefer (i recommend Notepad++ or EditPlus), but never use word processor such as Ms Word etc. Then, search the ship you'd like to edit by scrolling down through its alphabetical section, for example Ferox should be located in the D-F section.


Rewrite/modify/add the things you want to edit, and make sure you did not accidentally erase or add additional tags such as <nowiki>{, }, |, &, [, ], etc.</nowiki>. If you feel something is wrong, undo your work, and start again.
<br>
==Notes==
==Notes==
This template is the main and entry point for the Ship Template & Database. The contents and behaviour of this template directly affected by contents of the following templates :
This template is the main and entry point for the Ship Template & Database. The contents and behaviour of this template directly affected by contents of the following templates :