Welcome to Wargaming.net Wiki!
Variants
/
/
Wiki Guide Basics

Wiki Guide Basics

Jump to: navigation, search

WIKI CODING BASICS

Bold Text

  • To make text appear in bold: use 3 apostrophes → '''text''' → text
Example: Arizona is a Tier V premium battleship.

Italic Text

  • To make text appear in italic: use 2 apostrophes → ''text'' → text
Example: Edinburgh is a Tier VII tech-tree cruiser.

Italic and Bold Text

  • To make text Italic and Bold: use 5 apostrophes → '''''Italic and Bold''''' → Italic and Bold
Example: Edinburgh is a Tier VII tech-tree cruiser.

Strikeout Text

  • To strikeout text → <s>Strikeout</s> → Strikeout
Example: French American cruisers are awesome!

Underline Text

  • To underline text → <u>Underline</u> → Underline
Example: American cruisers are awesome!

Line Breaks

  • Break is a digital carriage return. These all have the same effect: <br /> <br/> <br>
Example: I am skipping
a
line

and now

multiple ones.

Line Spaces

  • Force a space with: &nbsp;
  • This is a non-breaking space, meaning smaller screens (mobile) will not use this space to collapse a line break.

For Example: the text "Aircraft Carriers" could collapse like this...

Aircraft
Carriers make the game great.

However if you use "Aircraft&nbsp;Carriers", the collapse point will be forced to keep "Aircraft Carriers" on the same line:

Aircraft Carriers
make the game great, said nobody!

Source Comments

  • Anything between Comment tags is ignored when the page is rendered to the user, but viewable as notes in the source:
Example 1: <!-- This text will not display on the page -->
Example 2: The wiki page processing will ignore the following carriage return<!--
-->because it is "commented out" which is important for some template processing functions

Tables

Tables: using Wiki Markup tags

  • Open Table: {|
  • Heading Row: |-
  • Heading Data: !
  • Table Row: |-
  • Row Data: |
  • Close Table: |}


Table Example w/ wiki tags:

{| class="wikitable"
|-
! Header text1 !! Header text2 !! Header text3
|-
| Example 1-1 || Example 1-2 || Example 1-3
|-
| Example 2-1 || Example 2-2 || Example 2-3
|-
| Example 3-1 || Example 2-3 || Example 3-3
|}
Header text1 Header text2 Header text3
Example 1-1 Example 1-2 Example 1-3
Example 2-1 Example 2-2 Example 2-3
Example 3-1 Example 3-2 Example 3-3


Tables: using html tags

  • Many of the Legends Wiki pages use html tags for tables vs native wiki markup. This can be helpful when tables are created from templates.
  • Start end table: <table></table>
  • Start end table row: <tr></tr>
  • Start end header data: <th></th>
  • Start end table data: <td></tb>


Table w/ html tags:

<table>
<tr>
<th style="border: 1px solid black; padding: 3px;"> Header text1 </th>
<th style="border: 1px solid black; padding: 3px;"> Header text2 </th>
<th style="border: 1px solid black; padding: 3px;"> Header text3 </th>
</tr>
<tr>
<td style="border: 1px solid black; padding: 3px;"> Example 1-1 </td>
<td style="border: 1px solid black; padding: 3px;"> Example 1-2 </td>
<td style="border: 1px solid black; padding: 3px;"> Example 1-3 </td>
</tr>
<tr>
<td style="border: 1px solid black; padding: 3px;"> Example 2-1 </td>
<td style="border: 1px solid black; padding: 3px;"> Example 2-2 </td>
<td style="border: 1px solid black; padding: 3px;"> Example 2-3 </td>
</tr>
<tr>
<td style="border: 1px solid black; padding: 3px;"> Example 3-1 </td>
<td style="border: 1px solid black; padding: 3px;"> Example 3-2 </td>
<td style="border: 1px solid black; padding: 3px;"> Example 3-3 </td>
</tr>
</table>
Header text1 Header text2 Header text3
Example 1-1 Example 1-2 Example 1-3
Example 2-1 Example 2-2 Example 2-3
Example 3-1 Example 3-2 Example 3-3

Links

To make a link towards another Wiki page → [[Navy:page_link|text]]

This display_text is the best out of them all.

Be careful not to confuse Navy: and Ship: tags in the links. Navy: links are for all Legends pages, while Ship: links are WoWs PC.

To make a link towards a different website → [URL display_text]

Example: As always, remember to read the patch notes.

Images

To insert an image → [[File:Image_Name.png|(sizeonpage)px|link=]]

Example: [[File:Legends_Repair_Party.png|70px|link=Navy:Consumables#Repair_Party]] will make → Legends_Repair_Party.png

Putting a link is not obligatory. Do not fill the part after the Link= if you don't want to link a page to the image.

To insert an image to the right of the screen with a description below it → [[File:Image_Name.png|thumb|text]]

Example: [[File:Legends_Renown_Icon.png|thumb|Renown, campaign currency]] will make →
Renown, campaign currency

Lists

Bulletpoint Lists

To make lists with little bulletpoints (such as what can be seen in the Section Titles section below) → *text

To make a "sub-list" with these same pins → :*text OR **text

Example:

  • First
  • Second
    • Third
  • Fourth
  • May The Fourth...
  • ...Be With You...
  • ...Always.
    • Fifth

Each : or * that is added moves the sub list a bit further to the right.

Numbered Lists

To make lists with numbers → #text

Example:

  1. That's number one
  2. This, however, is number two.
  3. And that is obviously number three.


AnnoWiki

To add an independent text box in the page → {{AnnoWiki|content=text}}

Example: This text is currently in the type of box we're talking about here.


Breadcrumbs

To make the page link to the Legends main page at the top of the screen → {{#gw_breadcrumbs:WoWS_Legends}}

Always put this section at the very top of the page when editing (look at this page's coding if you're not sure what this means).

Table of Content (TOC) & Section Titles

  • Table of Content menus (TOC) are created based on page section titles.
  • Force a Table of Contents menu with:__TOC__ This is a wiki Magic Word
  • Force No Table of Contents menu with: __NOTOC__ (A page with 4 or more section titles will automatically get a TOC if __NOTOC__ is not defined.
  • Position the TOC on the right side of the page: <div style="float:right;">__TOC__</div>


  • Section Titles are shown in the TOC as page links:
  • =Level 1 "big" Title=
  • ==Level 2 "medium" Title==
  • ===Level 3 "smaller" Title===
  • ====Level 4 "even smaller" Title====
Example:

Level 1 "big" Title

Level 2 "medium" Title

Level 3 "smaller" Title

Level 4 "even smaller" Title

 

To activate the table of content (TOC) → __TOC__

To disable the table of content (TOC) → __NOTOC__

This makes it so that the little box called "Contents" at the top of the page shows or not. Take a look at this page's coding to see where to put it.