Help:Contents

From X3 Wiki
Jump to: navigation, search

An Editing Cheat Sheet with information on Discussion pages, links, headings(sections), and more references.

Links[edit]

Specific to this wiki the letters h-t-t-p are filtered to combat automated link spam. the local workaround is the template {{linky}} which adds h-t-t-p://. hopefully botters won't script it into their programs just to spam this site.

apologies for the inconvenience.

Excel to wiki table converter[edit]

Just paste the output on our wiki =)

http://excel2wiki.net/index.php

General HTML information[edit]

w3sch-ools homepage:
ht-tp://www.w3sc-hools.com/html/default.asp

table page:
ht-tp://www.w3sc-hools.com/html/html_tables.asp

CSS tutorial main page:
ht-tp://www.w3sc-hools.com/css/default.asp

for css i'd recommend learning the keywords like: background-color. code formatting ie:
<th style="background-color:black;color:white;>"

but take the examples with a grain of salt since they seem to formatted more for a header and less as inline usage as you'll probably be employing here.

a color palette: http://www.webreference.com/html/reference/color/websafe.html#HEAD-3

Picking new page names[edit]

You may want to select the singular version of the topic you're writing about, this will simplify linking it in the future. so naming a page dock instead of docking will permit linking by [[dock]]ing similarly for ship vs. ships. general wikipedia style suggests the opposite, but that may be subject to change. doing it the other way requires use of aliasing to create the right link with the desired text.

Some basic commands[edit]

links put your text between [[text]] to link it to the page with the same name. Afterwords you can create that page by clicking the link.
You can use different text than the linked page by adding a bar like:[[text|different text]] which would link to text but display different text.

Best thing for stuff like ships etc is to put it in a sortable table. This way you can sort it on race price or anything else. With this it is also possible to sort (for example) argon m4 ships.


Create new table example Please not that every column of a row starts with a | and the title of a column with !! at the top. You only need to add the names ones and can then keep adding rows.

  1. {| class="prettytable sortable" border="1" cellpadding="5" cellspacing="0"
  2. |+ All Ships
  3.  ! Name !! Race !! class !! Max shields !! Num shields !! Shield type !! Turrets !! Weapon generator !! Shield generator !! Max #speed !! Max cargo !! Cargo type !! Hangar !! Price
  1. |- style="background:white; color:black"
  2. | Mammoth
  3. | Argon
  4. | TL
  5. | 1000000
  6. | 5
  7. | 200MJ
  8. | 4
  9. | 17100
  10. | 3300
  11. | 87
  12. | 60000
  13. | ST
  14. | 5
  15. | 28497125
  1. |}


To only add a row you would only need this Where every | is the new column:

  1. |- style="background:white; color:black"
  2. | Mammoth
  3. | Argon
  4. | TL
  5. | 1000000
  6. | 5
  7. | 200MJ
  8. | 4
  9. | 17100
  10. | 3300
  11. | 87
  12. | 60000
  13. | ST
  14. | 5
  15. | 28497125

styles cascade so you can apply a general style in the table open tag.
for more directions on wikitables: http://en.wikipedia.org/wiki/Table_markup

Templates[edit]

To quote the wikipedia help article: "A template is a page created explicitly for transclusion – the process of including the contents of one page within another page."

templates are handy for standardizing a regularly reused display- of information.

a complete list of pages can be found Special:PrefixIndex and a complete list of templates can be found by selecting "Templates"

templates are generally invoked like: {{M1class}}
Which will generate output like: M1 Carrier

When writing new templates you can control what gets output in a call with <includeonly> and <noinclude> tags includeonly will cause the contained content to only appear when the template itself is called. noinclude will only show the contained content when the template is viewed directly.

This is useful when making documentation for your templates. it is also useful when you're trying to do things with categories.

try to avoid extra line spacing in includes. the spaces improve readability, but remember that they also appear where included, in infoboxes this will often leave unsightly gaps above the table,

more on this subject on the wikipedia help articles: http://en.wikipedia.org/wiki/Help:Templates

advanced templates:
http://meta.wikimedia.org/wiki/Help:Advanced_templates
pay particular attention to the "Branching techniques without ParserFunctions" section if you're interested in if-then type scenarios. tricky though and requires some precision in usage.

Categories[edit]

categories use some tagging feature built into wikipedia, it's not required to use and will require some consensus when or where to implement them. http://en.wikipedia.org/wiki/Wikipedia:Categorization

pages can be categorized by adding [[Category:(category name)]]
If there is no existant category page you may create one which will provide textual context for the list of links.
you may refer to these pages by adding a semicolon before the category tag like: [[:Category:(category name)]]
http://en.wikipedia.org/wiki/Help:Category