Wiki Guide Basics
Revision as of 19:21, 18 May 2024 | Latest revision as of 22:26, 19 May 2024 | |||
Line 220: | Line 220: | |||
* '''Table of Content''' menus (TOC) are created based on page section titles. | * '''Table of Content''' menus (TOC) are created based on page section titles. | |||
* Force a Table of Contents menu with:<nowiki>__TOC__</nowiki> This is a wiki [https://www.mediawiki.org/wiki/Help:Magic_words Magic Word] | * Force a Table of Contents menu with:<nowiki>__TOC__</nowiki> This is a wiki [https://www.mediawiki.org/wiki/Help:Magic_words Magic Word] | |||
? | * Force No Table of Contents menu with: <nowiki>__NOTOC__</nowiki> (A page with | + | * Force No Table of Contents menu with: <nowiki>__NOTOC__</nowiki> (A page with 4 or more section titles will automatically get a TOC if <nowiki>__NOTOC__</nowiki> is not defined. | |
* Position the TOC on the right side of the page: <nowiki><div style="float:right;">__TOC__</div></nowiki> | * Position the TOC on the right side of the page: <nowiki><div style="float:right;">__TOC__</div></nowiki> | |||
<br> | <br> |
Latest revision as of 22:26, 19 May 2024
Contents
- 1 WIKI CODING BASICS
- 1.1 Bold Text
- 1.2 Italic Text
- 1.3 Italic and Bold Text
- 1.4 Strikeout Text
- 1.5 Underline Text
- 1.6 Line Breaks
- 1.7 Line Spaces
- 1.8 Source Comments
- 1.9 Tables
- 1.10 Links
- 1.11 Images
- 1.12 Lists
- 1.13 Bulletpoint Lists
- 1.14 Numbered Lists
- 1.15 AnnoWiki
- 1.16 Breadcrumbs
- 1.17 Table of Content (TOC) & Section Titles
- 2 Level 1 "big" Title
WIKI CODING BASICS
Bold Text
- To make text appear in bold: use 3 apostrophes → '''text''' → text
Italic Text
- To make text appear in italic: use 2 apostrophes → ''text'' → text
Italic and Bold Text
- To make text Italic and Bold: use 5 apostrophes → '''''Italic and Bold''''' → Italic and Bold
Strikeout Text
- To strikeout text → <s>Strikeout</s> →
Strikeout
Underline Text
- To underline text → <u>Underline</u> → Underline
Line Breaks
- Break is a digital carriage return. These all have the same effect: <br /> <br/> <br>
a
line
and now
multiple ones.
Line Spaces
- Force a space with:
- 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...
Carriers make the game great.
However if you use "Aircraft
Carriers", the collapse point will be forced to keep "Aircraft Carriers" on the same line:
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:
-->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]]
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]
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 →
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 →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
- First
- Second
- Third
- Fourth
- May The Fourth...
- ...Be With You...
- ...Always.
- Fifth
- Second
Each : or * that is added moves the sub list a bit further to the right.
Numbered Lists
To make lists with numbers → #text
- That's number one
- This, however, is number two.
- And that is obviously number three.
AnnoWiki
To add an independent text box in the page → {{AnnoWiki|content=text}}
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====
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.