Module:Documentation

From :: ChromeRivals Wiki ::
Revision as of 22:04, 2 March 2024 by Ranzu (talk | contribs)
Jump to navigation Jump to search

This page contains documentation for templates, styles, drafts and special pages. It is not a tutorial. Learn how media wiki works by yourself. Key words: Markup, MW Templates, HTML, CSS, JS, PHP.

Most useful information:

  • Deleted Pictures are cleared from DB at every Monday at 1 AM.
  • Styles are located in "MediaWiki:Common.css" (Global) page and "MediaWiki:Group-user.css" (Personal - logged users) page.
  • Java Script file is located in "MediaWiki:Common.js" page.
  • Pages used to test stuff: "Test Page", "Test Page 2".
  • Fast picture upload with BatchUpload extension: "Special:BatchUpload" page.
  • Editing the sidebar: "MediaWiki:Sidebar".
  • Recent Changes: "Special:RecentChanges"
  • Other: "Special:SpecialPages"
  • Google Analytics about this wiki is available for you to check, ask administrators to grand you acces.
  • Making full manual backup:
    • 1. Copy pages from "Special:LonelyPages".
    • 2. Go to Special:Export.
    • 3. Paste pages from "Special:LonelyPages" into the "Add pages manually" box.
    • 4. On new line add "Main Page".
    • 5. Select Include templates.
    • 6. Add some crazy number like 23424352 in "Include linked pages to a depth of" box.
    • 7. Export.
    • 8. Copy JS code to text editor of your choice.
    • 9. Copy CSS code to text editor of your choice.
    • 10. Copy CSS User code to text editor of your choice.
    • 10. You should successfully have 4 files: Main mediawiki code, JS code, CSS code, CSS User code, which are your manual backup. Store them safety.

Images backups are made by System Administrator.


~Ranzu

Templates

Color Templates

Color templates equivalent to game colors.


Used with E.g. {{/lblue}} or {{/blue}}, as closing tag.

Chat#Text_color

  • #B2BEFF {{lblue}} \a
  • #2C53FD {{blue}} \b
  • #00FFFF {{cyan}} \c
  • #777777 {{dgray}} \d
  • #F5B930 {{orange}} \e Enchant Manual
  • #00FF00 {{lime}} \g Enchant Fix
  • #F4891E{{dorange}} \h
  • #A64A0C {{brown}} \k
  • #00AAFF {{lapis}} \l
  • #FF00FF {{magenta}} \m
  • #77BB22 {{green}} \o
  • #FF66EE {{pink}} \p
  • #D0D0D0 {{lgray}} \q
  • #FF0000 {{red}} \r
  • #A135FF {{purple}} \u
  • #007400 {{dgreen}} \v
  • #FFFFFF {{white}} \w
  • #FFFF00 {{yellow}} \y

Toggle button

{{Toggle}}


Always include space or break before this template if you using Title.


Used with {{/Toggle}}, as closing tag.


{{Toggle|Title=Title_Goes_Here}}
Toggled_Content_Goes_Here
{{/Toggle}}


Used style selectors:

#ToggleButton
.ToggleContent 
.ToggleTitle


Preview:

Standard Enchanting Cards

Expand

Expand

Other

Hover to show

Hover over .HoverHide to show .hide


Used style selectors:

.HoverHide
.hide

Use width:max-content; for "button" hover only.


Preview:

Hover over this text
To see this

Custom Toggle

Used with: mw-customtoggle-myDivision1 mw-customcollapsible-myDivision1

(Changing myDivision1 to myDivision2, myDivision3 etc.)


Preview:

Click to toggle

Toggled Content

Drafts

Tabbers

Tabber Extension: https://www.mediawiki.org/wiki/Extension:TabberNeue

Always include space between title and content.

Used with td:nth-child(X) as column selector.


Simple tabber:

<tabber>
|-| B-Gear=

First tab content goes here.
|-| I-Gear=

Second tab content goes here.
|-| M-Gear=

Third tab content goes here.
|-| A-Gear=

Third tab content goes here.
</tabber>


Nested tabber:

<tabber>
|-| First Tab Title=
{{#tag:tabber|
Tab Title A=

Tab content A goes here.
{{!}}-{{!}}
Tab Title B=

Tab content B goes here.
{{!}}-{{!}}
Tab Title C=

Tab content C goes here.
}}
|-|Second Tab Title=
{{#tag:tabber|
Tab Title D=

Tab content D goes here.
{{!}}-{{!}}
Tab Title E=

Tab content E goes here.
{{!}}-{{!}}
Tab Title F=

Tab content F goes here.
}}
|-|Third Tab Title=
{{#tag:tabber|
Tab Title G=

Tab content G goes here.
{{!}}-{{!}}
Tab Title H=

Tab content H goes here.
{{!}}-{{!}}
Tab Title I=

Tab content I goes here.
}}
</tabber>


Used style selectors:

.tabber--live
.tabber__header
.tabber__indicator
.tabber__header__prev
.tabber__header__next
.tabber__section
.tabber__panel
.tabber__tab

Recipe Table

Table used to show recipes. Material count number needs to be the same as number of rows PICTURE_LINK_X.

Usable with color templates.


{| class="RecipeTable"
! colspan="MATERIAL_COUNT"| Materials
! style="width: 80px;"| Success
! Final
|-
| PICTURE_LINK_1 {{COLOR_1}}NAME_1{{/COLOR_1}} (x1)
| PICTURE_LINK_2 {{COLOR_2}}NAME_2{{/COLOR_2}} (x1)
| PICTURE_LINK_3 {{COLOR_3}}NAME_3{{/COLOR_3}} (x1)
| PICTURE_LINK_4 {{COLOR_4}}NAME_4{{/COLOR_4}} (x1)
| PICTURE_LINK_5 {{COLOR_5}}NAME_5{{/COLOR_5}} (x1)
| CHANCE_1
| PICTURE_FINAL {{FINAL_COLOR}}FINAL_NAME{{/FINAL_COLOR}} (x1)
|}


Preview:

Materials Success Final
3726917263.png Refined Boss Mineral (x1) 3737599993.png Boss Strengthening Card (x1) 50% 3726901631.png Reinforced Boss Transformation Card (x1)
3726917263.png Refined Boss Mineral (x1) 3737599993.png Boss Strengthening Card (x1) 3737557289.png Ancient Matter (x1) 60% 3726901631.png Reinforced Boss Transformation Card (x1)


Used style selectors:

.RecipeTable

Shops

Code to use when making shop tables


| [[File:Engine Icon.png|link=ITEM_LINK]]

| [[File:War Points Icon.png|link=]] 

| [[File:IconTransparent.png|link=OLINKO]]

<!--NO LINK-->


{| class="TableShops" style="text-align:left";
|-
| [ITEM_LINK PICTURE_LINK]
| ITEM_NAME
| ITEM_PRICE
|-
| [ITEM_LINK PICTURE_LINK]
| ITEM_NAME
| ITEM_PRICE
|-
| [ITEM_LINK PICTURE_LINK]
| ITEM_NAME
| ITEM_PRICE
|}

Currency icons:

  • War Points Icon.png
  • Phillon Token Icon.png
  • Pandea Token Icon.png
  • Revolt Ignition Token Icon.png
  • Killmark Icon.png
  • Gold Coin Small Icon.png
  • Cosmetic Token Icon.png
  • CRP Icon.png
  • SPI Icon.png
  • PVP Token Icon.png
  • Solar Orb Icon.png
  • Quasar Orb Icon.png
  • Galaxy Orb Icon.png
  • Supercluster Orb Icon.png
  • Pumpkin Seeds.png
  • Pumpkin Shell.png
  • Event Killmark Icon.png

Map buff

Draft for buffs that are applied on the map, like on FFA map or special maps.

{{MapBuffTable
|NAME= 
|FUNCTION_NAME_1= 
|FUNCTION_1= 
|FUNCTION_NAME_2= 
|FUNCTION_2= 
|FUNCTION_NAME_3= 
|FUNCTION_3= 
|FUNCTION_NAME_4= 
|FUNCTION_4= 
|FUNCTION_NAME_5= 
|FUNCTION_5= 
|FUNCTION_NAME_6= 
|FUNCTION_6= 
|FUNCTION_NAME_7= 
|FUNCTION_7= 
|FUNCTION_NAME_8= 
|FUNCTION_8= 
|FUNCTION_NAME_9= 
|FUNCTION_9= 
}}

Preview:

FFA MG Ragings
Weapon's Attack (min) (Std) +15%
Weapon's Attack (max) (Std) +15%
Weapon's Attack (min) (Adv) +15%

Frame

Table used to display thumb images.

{{Framed|IMAGE=
|CLICK= YES
|WIDTH= 420px
|TITLE-IN=
|TITLE-OUT=
}}


Preview:
























FlexWrap / FlexWrapName

Table used to nicely display item, weapons, armors. Usable with {{/FlexWrap}} / {{/FlexWrapName}} as closing tag

{{FlexWrap}}
  .ItemTable
{{/FlexWrap}}

{{FlexWrapName|NAME=Against defense targets}}
  .ItemTable with name
{{/FlexWrapName}}

{{FlexWrapName|NAME=Against evasion targets}}
  .ItemTable with name
{{/FlexWrapName}}

Preview:

Some CPU

3737571635.png

Vivace V-3 ['110]

Gear Type All GEARs
Requires Level [100]
Weight
Function
Attack Stat +20
Fuel Stat +18
Spirit Stat +12
Evasion Stat +50
Some other CPU

3737571635.png

Vivace V-3 ['110]

Gear Type All GEARs
Requires Level [100]
Weight
Function
Attack Stat +20
Fuel Stat +18
Spirit Stat +12
Evasion Stat +50

Missions

Table used to display quests on seasonal event page.

{{Mission
|NAME= Daily PVP Tier 1 Mission
|OBJECTIVES=
1x Name <br>
1x Name <br>
|REWARDS=
1x Name <br>
1x Name <br>
}}

Preview:

{{{TITLE}}}
Requirements
{{{REQ}}}

{{{VALUE}}}

Rewards

{{{REWARD}}}


Player Stats Template

Table used to display player stats on gear pages.. Use {{orange}}'''STAT'''{{/orange}} when stat reached 340 (max).

{{PlayerSkillTable
|ATTACK= 
|DEFENSE= 
|EVASION= 
|FUEL= 
|SPIRIT= 
|SHIELD= 
|S-PIERCE-STD= 
|S-PIERCE-ADV= 
|S-DEFENSE-STD= 
|S-DEFENSE-ADV= 
|S-EVASION-STD= 
|S-EVASION-ADV= 
}}

Preview:

Stats
Attack 340 Fuel 30
Defense 2 Spirit 15
Evasion 236 Shield 2
Attack
Standard Weapon Advance Weapon
Pierce: 55.00% Pierce: 55.00%
Defense Evasion
Standard Weapon: 1.30% Advance Weapon: 40.17%
Standard Weapon: 1.30% Advance Weapon: 40.17%

Quests Box Template

Table used to display quest boxes on seasonal event page. Not used.

{{QuestCapsule
|NAME= PVP Tier 1 Quest Box
|REWARDS=
1x Name <br>
1x Name <br>
}}

Boss Table

Table used to display Boss Icons + Info on Hover. Leave parameter blank (Maps, Tokens) if not used. Use 300x300px picture. Use RESPAWN_TIME_CRYSTAL if respawn time not set/boss spawns from crystals.

{{BossTable
|NAME= 
|IMAGE= 
|LINK= 
|MAP_ANI= 
|MAP_BCU= 
|MAP_NEUTRAL= 
|RESPAWN_TIME= 
|RESPAWN_TIME_CRYSTAL=
|PHILLON_TOKEN= 
|PANDEA_TOKEN= 
|REVOLT_IGN_TOKEN= 
}}

Preview:

File:Hornian Queen.png
2h
Hornian Queen
Map/Location:
Hornian King's Habitat
Respawn Time: 2h
Drops:
Phillon Token


Drafts - ItemTable

ItemTable - Item

Used to display Items, usable with {{E15}} and {{Color}} templates.

{{ItemTableITEM
|WIDTH= 			<!-- Not set. Use "em" units -->
|IMAGE= 			<!-- URL, {{E15}} -->
|NAME= 				<!-- Name, {{color}} -->
|GEAR_TYPE= 		<!-- B-Gear, I-Gear, M-Gear, A-Gear, BG MG IG, All GEARs -->
|LEVEL= 
|WEIGHT= 
|FUNCTION_NAME_1= 
|FUNCTION_1= 
|FUNCTION_NAME_2= 
|FUNCTION_2= 
|FUNCTION_NAME_3= 
|FUNCTION_3= 
|FUNCTION_NAME_4= 
|FUNCTION_4= 
|FUNCTION_NAME_5= 
|FUNCTION_5= 
|FUNCTION_NAME_6= 
|FUNCTION_6= 
|FUNCTION_NAME_7= 
|FUNCTION_7= 
|FUNCTION_NAME_8= 
|FUNCTION_8= 
|FUNCTION_NAME_9= 
|FUNCTION_9= 
}}

Used Selector Styles:

.ItemTable + .Item + .Title

Preview:

3737571635.png

Vivace V-3 ['110]

Gear Type All GEARs
Requires Level [100]
Weight
Function
Attack Stat +20
Fuel Stat +18
Spirit Stat +12
Evasion Stat +50

ItemTable - Armor

Used to display Armors, usable with {{Color}} templates.

{{ItemTableARMOR
|WIDTH=              <!-- Not set. Use "em" units -->
|IMAGE=              <!-- URL, {{E15}} -->
|NAME=               <!-- Name, {{color}} -->
|GEAR_TYPE=          <!-- B-Gear, I-Gear, M-Gear, A-Gear, BG MG IG, All GEARs -->
|REQUIRED_LEVEL= 
|WEIGHT= 
|ENERGY= 
|SHIELD= 
|DEFENSE_STD= 
|DEFENSE_ADV= 
|EVASION_STD= 
|EVASION_ADV= 
|ATTK_MIN_STD= 
|ATTK_MAX_STD= 
|ATTK_MIN_ADV= 
|ATTK_MAX_ADV= 
|STD_W_DISTANCE= 
|ADV_W_DISTANCE= 
|BOOSTER_OVERHEAT= 
|S_RECOVERY_RATE= 
|DROP_MONSTERS= 
|DEFENSE_MONSTERS= 
|EVASION_MONSTERS= 
|STD_ATTK_MONSTERS= 
|ADV_ATTK_MONSTERS= 
|ACCURACY_STD= 
|ACCURACY_ADV= 
|PIERCE_STD= 
|PIERCE_ADV= 
|CRAFT= <!-- [[File:Egma Schills Strength Icon.png|Egma Schills Strength|link=]]    [[File:A-Type Datacube (Red).png|A-Type Datacube (Red)|link=] -->
}}

Used Selector Styles:

.ItemTable + .Armor + .Title

Preview:

3738263045.png

Advanced Tackle Veil V3 [D]

GEAR Type B-Gear
Required Level [106]
Weight 700kg
Function
Energy (Capacity) +4315
Shield (Capacity) +4554
Defense (Std) +24.78%
Defense (Adv) +24.78%
Weapon's Attack (min) (Adv) +5%
Weapon's Attack (max) (Adv) +5%
Craft Egma Schills Strength    A-Type Datacube (Red)

ItemTable - Weapon

Used to display Weapon, usable with {{E15}} and {{Color}} templates.

{{ItemTableWEAPON
|WIDTH=                 <!-- Not set. Use "em" units -->
|IMAGE=                 <!-- URL, {{E15}} -->
|NAME=                  <!-- Name, {{color}} -->
|TYPE=                  <!-- Gatling Type, Rifle type, Vulcan type, Missile type, Cannon, Mass drive type -->
|GEAR_TYPE=             <!-- B-Gear, I-Gear, M-Gear, A-Gear, BG MG IG, All GEARs -->
|REQUIRED_LEVEL= XXX
|ATTACK_POWER= (X ~ X) X (X X X)
|ATTACK_POWER/s= XXX ~ XXX
|ACCURACY= XXX.XX%
|PIERCE= XX.XX%
|RANGE= XXXm
|REATTACK_TIME= X.XXs
|OVERHEAT_TIME=    <!-- XX.XXs - STD, Leave blank if not used -->
|VALID_ANGLE=      <!-- X°     - ADV, Leave blank if not used -->
|SPEED=            <!-- XXXm/s - ADV, Leave blank if not used -->
|INDUCTION _RATE=  <!-- XXX°/ - ADV, Leave blank if not used -->
|EXPLOSION_RADIUS= <!-- Xm     - ADV, Leave blank if not used -->
|WEIGHT= XXXkg
|CRAFT= <!-- [[File:Egma Schills Strength Icon.png|Egma Schills Strength|link=]]    [[File:A-Type Datacube (Red).png|A-Type Datacube (Red)|link=] -->
}}

Used Selector Styles:

.ItemTable + .Weapon + .Title

Preview

3738499811.png

Legend Needlestorm of Max

Type Missile type
GEAR Type BG MG IG
Required Level [115]
Attack Power (159 [+15%] ~ 203 [+15%]) X (4 X 1)
Attack Power/s 1046 ~ 1336
Accuracy 103.00% [+15%]
Pierce 2.50% [+20%]
Range 4000m
Reattack Time 1.40s [-20%] [-30%]
Valid Angle
Speed 550m/s
Explosion Radius 0m
Weight 310kg

ItemTable - Engine

Used to display Engines, usable with {{ItemTableEngineFunction}} written inside the template, {{E15}} and {{Color}} templates. Not use end units below Function.

{{ItemTableENGINE
|NAME= 
|GEAR_TYPE=		<!--B-Gear, I-Gear, M-Gear, A-Gear, BG MG IG, All GEARs-->
|REQUIRED_LEVEL= 
|DEMAND_STAT_ATTACK= 
|DEMAND_STAT_DEFENSE= 
|DEMAND_STAT_EVASION= 
|DEMAND_STAT_FUEL= 
|DEMAND_STAT_SPIRIT= 
|DEMAND_STAT_SHIELD= 
|ItemTableEngineFunction=   <!--Function. Delete or leave blank if not used-->
{{ItemTableEngineFunction
|ID= 69
|ID_2= 69
|ENERGY= 
|SHIELD= 
|DEFENSE-STD= 
|DEFENSE-ADV= 
|EVASION-STD= 
|EVASION-ADV= 
|ATTK-MIN-STD= 
|ATTK-MAX-STD= 
|ATTK-MIN-ADV= 
|ATTK-MAX-ADV= 
|STD-W-DISTANCE= 
|BOOSTER-OVERHEAT= 
|S-RECOVERY-RATE= 
|DROP-MONSTERS= 
|DEFENSE-MONSTERS= 
|EVASION-MONSTERS= 
|STD-ATTK-MONSTERS= 
|ADV-ATTK-MONSTERS= 
|ACCURACY-STD= 
|ACCURACY-ADV= 
|PIERCE-STD= 
|PIERCE-ADV= 
}} <!-- Not use end units below -->
|SPEED_MIN= 
|SPEED_MAX= 
|BOOSTER_SPEED= 
|GROUND_SPEED= 		<!--AG, Delete or leave blank if not used-->
|BOOSTER_TIME= 
|TURN_RATE= 
|TURN_RATE_BOOSTER= 
|LATERAL_SPEED= 
|WEIGHT= 
}}

Used Selector Styles:

.ItemTable + .Engine+ .Title + .Function


Preview

Accounter-M XI ['35] V-Attack

Gear Type M-Gear
Requires Level [25]
Demand stat Attack [246]
Defense [68]
Spirit [68]
Speed 150m/s ~ 190m/s
Booster speed 400m/s
Booster time 15s
Turn Rate 104°/s
Turn Rate (Booster) 86°/s
Lateral Speed 23m/s
Weight 240kg