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

Delete Template

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.

Template "Weapon"

Main Page:Template:Weapon

Usage
To find certain parameter, please press 'Ctrl+F'.
|image= 
place an image. Only 225px and below.
|Type= 
Type 1 for Primary and 2 for Secondary. Any character dont match will show "N/A".
|Class= 
Type 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 character dont match will show "N/A".
|Level= 
What level to unlock the gun?
|Damage= 
How many damage per shot?
|Range= 
How many range it take?
|Accuracy= 
The NUMBER/AMOUNT of weapon accuracy
|Hip= 
The NUMBER/AMOUNT of hip accuracy
|Aim= 
The NUMBER/AMOUNT of aim accuracy
|Magazine Size= 
How many bullets on a gun. Not included chambered.
|Ammo Reserve= 
How many bullets in reserve.
|Fire Modes= 
Semi, Auto or Burst. Add RPM.
|Free?= 
Type yes or no. ITS CHARACTER SENSITIVE. It must be lower cased.
Advanced Stats
Weapon Ballistics Section
|TTK= 
The possible smallest time to kill. Varies on firing modes.
|HeadMultiplier= 
Default value is 1.4. Shows the multiplier at headshot.
|TorsoMultiplier= 
Default value is 1. Shows the multiplier at torso shot
|Suppressor= 
This is the queue of the suppressed info table. Type 'a' for weapons with ntegral sppressor (e.g. AS VAL), 'b' for secondary weapons (except Serbu Shotgun) and 'c' for shotguns.
|MuzzleVelocity= 
Speed of the projectile when fired. Unit of studs per second (studs/s).
|Penetration= 
Type the depth penetration of the bullet when hits a building. Unit of studs.
|Suppression= 
Amount of camera shaking when the bullet near misses the player.
Hip Accuracy Section
|MinHIPCameraKick= 
Lowest Camera Shaking when hipfiring.
|MaxHIPCameraKick= 
Highest Camera Shaking when hipfiring.
|MinHIPDisplacement= 
Minimum camera displacement when hipfiring.
|MaxHIPDisplacement= 
Maximum camera displacement when hipfiring.
|MinHIPRotation= 
Minimum Recoil Rotation when hipfiring.
|MaxHIPRotation= 
Maximum Recoil Rotation when hipfiring.
|HipfireSpreadFactor= ;Unknown
|HipfireRecoverySpeed= ;Unknown
|HipfireSpreadDamping= ;Unknown
Sight Accuracy Section
|MinAIMCameraKick= 
Lowest Camera Shaking when aiming.
|MaxAIMCameraKick= 
Highest Camera Shaking when aiming.
|MinAIMDisplacement= 
Minimum camera displacement when aiming.
|MaxAIMDisplacement= 
Maximum camera displacement when aiming.
|MinAIMRotation= 
Minimum Recoil Rotation when aiming.
|MaxAIMRotation= 
Maximum Recoil Rotation when aiming.
|SightMagnification= 
FOV Magnification when aiming.
Accuracy Section
|HipCamRecovery= 
Hipfire Camera Recovery Speed
|SightCameraRecovery= 
Sight/Aiming Camera Recovery Speed
|WeaponRecoilDamping= 
Unknown
Weapon Handling Section
|FOV= 
place the amount of Field of View when equipping weapon.
|ReloadTime= 
duration of reload when magazine is loaded.
|EmptyReloadTime= 
duration of reload when magazine is empty.
|EquipSpeed= 
How fast the weapon equips.
|AimingSpeed= 
How fast the weapon aims.
|CrosshairSize= 
Size of the crosshair while steadying.
|CrosshairSpreadRate= Rate of crosshair expansion when hipfiring.
|CrosshairRecoverRate= Rate of crosshair contraction after hipfiring.
Miscellaneous Section
|WeaponWalkspeed= 
Walkspeed when walking.
|WeaponAimspeed= 
Walkspeed when aiming.
|Ammo Type= 
Trivial, type of ammo used.
|SoundSuppressionRange= 
Range of suppression when fired.
|RoundinChamber(yes/no)= 
Add everything on the parameter. Added round in chamber when reloaded.

For ready-to-use template, please visit Ready_to_use_Weapon_template..


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.

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

gives

Optics, Underbarrel, Barrel, Other

Primary, Secondary, Tertiary


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


Other Templates

  • Template Stub
{{Stub}}
  • Template Underconstruction
{{Underconstruction}}
  • Outdated
{{Outdated}}
  • Navbox
{{Navbox}}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.