FANDOM


Title 2

This document is intended to be a Quick Tutorial. Please amend this description to reflect purpose of this document.

Sample Code

See the following example, taken from SCAR-L; trivia section. (2 Apr 2016)

==Trivia==
* Except the color, magazine size and the different caliber type, the SCAR-L model is the same as the [[SCAR-H]].
* SCAR-L has the 3rd person model of the Alpha M4.
* The SCAR-L has '''yellow''' skin to differentiate it from it's bigger brother, the [[SCAR-H]].
{{Navbox}}

We will be referring to this code segment in this document.


Note on Code Segment

This guide was originally written for mid-level players. The Alternate was written for low-level players, who are just starting out.


Preface

Most of the codes are of a basic format. Either double "{" and closed with double "}" (curly brackets) or double "[" closed with double "]" (square brackets) or single straight quotes " ' ". Some codes from HTML 5 do support Wikia. such as <center>.


Basic Formatting Codes

Basic formatting codes are simple instructions that tell the wiki you want more than plain text in a single paragraph. =D


Paragraphs

The extra line between paragraphs creates a new paragraph. If the line is removed, the two paragraphs will join. Two empty lines between paragraphs increases the space between paragraphs.

A colon ":" means indent, like so:

Indent / block paragraph.


Lists

The asterisk "*" at the beginning of a line (no space in front) means the wiki should insert a bullet like this:

  • bullet


A "#" (hash/pound) sign means a numbered list, like so:

# Item 1
# Item 2
  1. Item 1
  2. Item 2


You can combine paragraph code and list code thus:

::* Sub level
:::# Item 1, Sub 1
  • Sub level
  1. Item 1, Sub 1

or you can add indent by adding more list code:

* Title
**Sub-title
  • Title
    • Sub-title
#Media
##Photo
##Video
  1. Media
    1. Photo
    2. Video

Inserting a space (by pressing enter) before the start of your text is recommended and improves readability in the source code.

Italics & Boldface

''italics''
gives italics.


'''bold'''
gives bold.


'''''bold and italicized'''''

gives bold and italicized.

Heading

This code shows a main part of the topic such as the gun's history and trivia. Using this code creates a table of content. Which helps users to navigate throughout the page.
Head
Normal text

==Heading 2==

===Heading 3===

====Heading 4====

=====Heading 5=====

 preformatted 

Reference Code

This code's purpose is to show what data is gathered from another external page.

<ref>[[AN-94]] AN-94</ref>

gives

[1]

and to show all summary of reference quotes:

<references />

gives

  1. AN-94 AN-94


NOTE: This two codes must be performed or else an error will occur.


Internal Links

[[AN-94]]
gives AN-94. The square brackets mean you are trying to link to a page on the wiki. "AN-94" is the name of the page.

Note: If it didn't work as you expected, check your spelling and the capitalization. :)

You can also change the name of the link. But it will lead you to the same page:

[[AN-94|2-Burst Gun]]
gives 2-Burst Gun.

These are the basics. As you edit other work, you will learn more from other people's "codes".


Tables

Sometimes we use Tables to organize and summarize data, particularly when there is large amounts of it -- e.g., for Battle Maps.

Code segment for Tables follow:


 {| class="wikitable"
 |-
 ! Header 1
 ! Header 2
 ! Header 3
 |-
 | row 1, cell 1
 | row 1, cell 2
 | row 1, cell 3
 |-
 | row 2, cell 1
 | row 2, cell 2
 | row 2, cell 3
 |}

The preceding code produces:

Header 1 Header 2 Header 3
row 1, cell 1 row 1, cell 2 row 1, cell 3
row 2, cell 1 row 2, cell 2 row 2, cell 3

Code Definitions

{| and |} start and end tables respectively.

|- marks the beginning of a new row (a set of cells arranged in a horizontal manner.)

! marks the beginning of a new header cell (for titles - please do not use this as a lazy way to bold the contents of a cell)... Header cells may be assigned special functions, e.g., for sorting.

| at the beginning of a line is used to mark the beginning of a new cell. When this symbol is used elsewhere, it may be used to separate the cell formatting from its contents. E.g.,
| align="center" | centered contents


Wikipedia's Help:Table is a more complete in detail and includes advanced code &/ options if you need it.

Templates

Templates are documents written by (advanced) coders to allow Phantom Forces Wiki to have a consistent look throughout. The curly brackets really mean "insert this document here, with the following conditions." xD

Tabbers

Wikia has an extension called "Tabber". They give content and title on every tab; the purpose is to make the wiki more organized and more designed.

Content Tabbers

Content Tabbers are type of tabbers that require to write information inside the same page. The Content Tabber uses section headers as pseudo-links to open and navigate through the tabs.

<tabber>
Attachment=
Optics, Underbarrel, Barrel, Other
|-|
Weapons=
Primary, Secondary, Tertiary
</tabber>

gives

Optics, Underbarrel, Barrel, Other

Primary, Secondary, Tertiary

Div class named infobox-tabber can be used for using tabbers inside infoboxes. Adding this can be a step-upper for the tabbers, in order to make the tabs seamlessly clean.

<div class=infobox-tabber>
<tabber>
Attachment=
Optics, Underbarrel, Barrel, Other
|-|
Weapons=
Primary, Secondary, Tertiary
</tabber>
</div>

gives

Optics, Underbarrel, Barrel, Other

Primary, Secondary, Tertiary

Linked Tabbers

Unlike Content Tabbers, Linked Tabbers require to write information at separate pages. Tabs will link to separate page, where the written information is located. Hence, leave the visited page. For organization, Information are located with this following syntax:

{{PAGENAME}}/Sub-Article

Linked Tabber consists of three sub-templates: Tabs, Tabs/Active, and Tabs/Inactive.

  • 'Tabs' is the container of the tabber,
  • 'Tabs/Active' is the part of tab that is active when the tabber is used, which is mainly the page itself,
  • 'Tabs/Inactive' is the part of tab that is inactive when the tabber is used. This will be the other options the user will choose.
{{Tabs|
{{Tabs/Active|Tab 1}}
{{Tabs/Inactive|Tab 2}}
}}

gives

Tab 1
Tab 2

Sub-templates 'Active' and 'Inactive' are interchangeable. But note this, the active template is the PAGE itself.

{{Tabs|
{{Tabs/Inactive|Tab 1}}
{{Tabs/Active|Tab 2}}
}}

gives

Tab 1
Tab 2

Template "Weapon"

Main Page:Template:Weapon


Similar templates

These templates follow a similar styling method as well as having a similar layout.

Attachment 
For attachments.
WeaponMelee 
For melee weaponry.
WeaponGrenade 
For grenades and other throwables.
Map 
For maps and their related information.

CSS styling notes
For colors, use #3a3a3a for the main background, #202020 for all "header" boxes and data boxes, and set the border color of all hr elements to #444. The main box, weapon name box, overview box, and advanced/attachment boxes get a box-shadow of 0px 0px 2px 0px rgba(0,0,0,0.3).

To find a certain parameter, please press Ctrl+F.

For a ready-to-use template, please visit Ready to use Weapon template.


theme 
This provides a certain theme for the weapon name header. Valid options are: empty field, test, featured.
Footnote 
To denote weapons with special conditions. Type “new” if the weapon was recently added. Type “readded” if the weapon was once removed then readded to the game. Type “test” if the weapon has not been officially released and is in the test place. Type “featured” if the weapon is the current Featured Article. (Remove quotation marks.)
image 
Main weapon image. The recommended width is 255px maximum.
removed 

Overview
Type 
Use 1 for Primary and 2 for Secondary. Any non-matching character will display "N/A".
Class 
Use 1 for Assault Rifle, 2 for PDW, 3 for LMG, 4 for Sniper, 5 for Carbine, 6 for DMR, 7 for Battle Rifle, 8 for Shotgun, 9 for Pistol, 10 for Machine Pistol, 11 for Revolver and 12 for Others. Any non-matching character will display "N/A".
Buyable? 
Can this weapon be bought?
Level 
What level does the player unlock the weapon at?
maxdmg 
Maximum effective damage value.
mindmg 
Minimum effective damage value.
maxrng 
Maximum effectiveness range (i.e. where the weapon begins to have damage falloff.)
minrng 
Minimum effectiveness range (i.e. where the weapon no longer has any damage falloff.)
Acc 
The overall weapon accuracy value (use Advanced in game with no attachments.)
Hip 
The hipfire weapon accuracy value (use Advanced in game with no attachments.)
Aim 
The aimed-down-sights weapon accuracy value (use Advanced in game with no attachments.)
Magazine Size 
How many bullets does the magazine contain? Do not include round(s) chambered.
RoundInChamber(yes/no) 
Does the weapon feature the ability to chamber an extra round in the chamber? Defaults to yes.
Ammo Reserve =
How many bullets in reserve?
Fire Modes =
Semi, Auto or Burst.
Rate of Fire =
How fast does this weapon fire?

Weapon Ballistics
TTK 
The fastest time to kill. Varies on firing modes.
HeadMultiplier 
Default value is 1.4. Shows the headshot multiplier.
TorsoMultiplier 
Default value is 1. Shows the torso multiplier.
MuzzleVelocity 
Speed of the projectile when fired. Displayed in studs per second (studs/s).
Penetration 
How far the bullet travels through solid objects. Displayed in studs.
Suppression 
Amount of camera shaking when the bullet passes close to the player.

Accuracy
HipCamRecovery 
Hipfire Camera Recovery Speed
SightCamRecovery 
Sight/Aiming Camera Recovery Speed
WeaponRecoverySpeed 
Affects how fast the weapon recovers from recoil.
WeaponRecoilDamping 
Affects the "directness" of recoil impulses, making them slower to impact the player's aim severely.

Hip Accuracy
MinHIPCameraKick 
The minimum amount of camera shake while hipfiring.
MaxHIPCameraKick 
The maximum amount of camera shake while hipfiring.
MinHIPDisplacement 
The minimum amount of weapon displacement when hipfiring.
MaxHIPDisplacement 
The maximum amount of weapon displacement when hipfiring.
MinHIPRotation 
The minimum amount of weapon rotation when hipfiring.
MaxHIPRotation 
The minimum amount of weapon rotation when hipfiring.
HipfireSpreadFactor 
Affects artificial bullet spread from the barrel.
HipfireRecoverySpeed 
Dictates how fast the weapon recovers from recoil impulses while fired from the hip.
HipfireSpreadDamping 
Affects the "directness" of recoil impulses, making them slower to impact the player's aim severely.

Sight Accuracy
MinAIMCameraKick 
The minimum amount of camera shake while aiming.
MaxAIMCameraKick 
The maximum amount of camera shake while aiming.
MinAIMDisplacement 
The minimum amount of weapon displacement when aiming.
MaxAIMDisplacement 
The maximum amount of weapon displacement when aiming.
MinAIMRotation 
The minimum amount of weapon rotation when aiming.
MaxAIMRotation 
The maximum amount of weapon rotation when aiming.
SightMagnification 
FOV Magnification when aiming.

Weapon Handling
ReloadTime 
How long it takes to reload when the weapon is loaded (i.e. "wet" reload).
EmptyReloadTime 
How long it takes to reload when the weapon is empty (i.e. "dry" reload).
EquipSpeed 
How fast the weapon equips.
AimingSpeed 
How fast the weapon aims.
CrosshairSize 
Size of the crosshairs when standing still.
CrosshairSpreadRate 
Rate of crosshairs expansion when hipfiring.
CrosshairRecoverRate 
Rate of crosshairs contraction after hipfiring.

Miscellaneous
WeaponWalkspeed 
Walkspeed when walking.
AimingWalkspeed 
Walkspeed when aiming.
AmmoType 
The caliber of bullet that the weapon fires.
ShotSuppressionRange 
Range of suppression when fired.

Template "Attachment"

Main Page:Template:Attachment

Usage
|Type=
1 for Optics, 2 for Underbarrel, 3 for Barrel and 4 for Others. Any characters not match says "N/A".
|Kills= 
How many kills to unlock attachment
|Buy= 
How many credits to buy the gun (initial). Kills+200=Buy
|User= 
What weapon is available with this attachment?
Put down gun type. If there are exceptions, italicized the text.

Template "Ambox"

Main Page:Template:Ambox

Description and usage

This template is used to create article management templates. Note: This template requires sitewide CSS!

Use {{ambox|<...>}} on a template page, filling in the various options. The created template is then used at the top of various wiki pages to notify the user of issues.

Article management boxes should be used sparingly, as it can get in the way of content.

Named parameters

|image=
image for use on the left, defaults to File:Wiki.png. Takes full image code, e.g. [[File:Wiki.png|50px]]. The image box area has a limit of 60px width.
|type=
top line text
|info=
list of extra info
|border=
border colour (defaults to green)
red  
ambox-red (serious issue)
orange  
ambox-orange (important issue)
yellow  
ambox-yellow (mild issue)
green  
ambox-green (something good)
purple  
ambox-purple
blue  
ambox-blue
gray  
ambox-gray
|style=
extra style parameters (unlikely to be used)
|bg-color=
background color (default white)
|font-color=
font color (default grey)

Examples

Default

{{ambox
| type = I am type
| info = I am info
}}


Red + image

{{ambox
| image = [[File:Example.jpg|50px]]
| border = red
| type = I am type
| info =
* I am info
}}


Other colors

Yellow


Green


Purple


Blue


Orange


Gray


Notice Templates

Templates are used for giving notices above the page content. These templates do not require to fill-up information.

  • Template Stub
Stubs are used when a section of the page is partially finished or not yet added.
{{Stub}}
  • Template Underconstruction
From its name, the article is at its informal appearance and partially complete.
{{Underconstruction}}
  • Template Outdated
Template is used when the following information is not updated from the game changes.
{{Outdated}}


  • Template CTEScrapped
The following page contains information gathered from CTE place.
{{CTEScrapped}}


  • Template InTesting
The following page is currently testing at the new testing place and it will add to the game once the tweaks are final.
{{InTesting}}


  • Template RemovedContentTemp
The following page is temporarily removed and it has chance to be re-added to the future.
{{RemovedContentTemp}}


  • Template RemovedContentPerm
The following page is removed in the game for good. Yet, the information is archival.
{{RemovedContentPerm}}
  • Template Delete
This template's purpose is to mark a warning or a notice that the page is about to be deleted. Simply put the code
{{Delete}}

to use the template.

Navigation Templates

Templates are used for giving list of pages that are related to the visited page. Navboxes are usually located at the bottom of the article page.

  • Navbox
All Weaponry pages that are active and testing in the game are listed here.
{{Navbox}}
  • Navbox/attachment
All Attachment pages that active and testing in the game are listed here.
{{Navbox/attachment}}
  • Navbox/Knife
All Tertiary pages that are active, including the legendary rolls are listed here.
{{Navbox/Knife}}
  • Navbox/map
Maps, both removed and active, are listed here.
{{Navbox/map}}
  • Navbox/Removed
All game assets that are both temporarily and permanently removed in the game are listed here.
{{Navbox/Removed}}

Others

These are codes or templates that are not mainly used on editing an article page. These are commonly used for beauty of their profile page, etc.

Template Username

This template shows the client's username. The formatting of this template is simple. Just type in the code, place a pipe '|', then the placeholder name. This name will show in-case the visitor does not have an account.

Hello, {{Username|Visitor}}

shows

Hello, Visitor


Highlights

This is used on emphasis or attracts the word that is essential to the said topic. There are four highlights: Neon, Orange, Blue and Inverted.

<span class=hi>Neon</span>
<span class=hi-orange>Orange</span>
<span class=hi-blue>Blue</span>
<span class=hi-invert>Inverted</span>

gives
Neon Orange Blue Inverted. Sample code:

Highlights are avaiable on 
<span class=hi>Neon</span>, 
<span class=hi-orange>Orange</span> and 
<span class=hi-blue>Blue</span>. 
There is also <span class=hi-invert>Inverted</span> but I don't prefer it.

gives Highlights are avaiable on Neon, Orange and Blue. There is also Inverted but I don't prefer it.