Module:Documentation

From :: ChromeRivals Wiki ::
Revision as of 16:54, 5 December 2023 by Ranzu (talk | contribs) (Engine Table)
Jump to navigation Jump to search

This page contains documentation for templates, styles, drafts and special pages.

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

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 columns 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)
|}


Used style selectors:

.RecipeTable



Weapon Table / E15

Table used to show weapons. Change |WIDTH= (First collumn) and |WIDTH2= (Whole table) according to content.


Usable with color templates and {{E15}} template.


{{WeaponTable
|WIDTH1= <!-- 0 120 125 / First collumn width -->
|WIDTH2= <!-- 0 190 200 220 / Whole table width -->
|PICTURE=PICTURE
|NAME= {{COLOR}}NAME{{/COLOR}}
|TYPE=<!-- Missile, Budle or other! -->
|GEAR TYPE=<!-- B-Gear M-Gear I-Gear A-Gear BG MG IG -->
|REQUIRED LEVEL= XXX
|ATTACK POWER= (X ~ X) X (X X X)
|ATTACK POWER/s=XXX ~ XXX
|ACCURACY=XXX.XX%
|PIERCE=XX.XX%
|RANGE=XXX m
|REATTACK TIME=X.XX s
|WEAPON_TYPE=

{{STD Weapon
|OVERHEAT TIME=X.XX s
}}

{{ADV Weapon
|VALID ANGLE=X °
|SPEED=XXX m/s
|INDUCTION RATE=X °/s
|EXPLOSION RADIUS=X m
}}

|WEIGHT=XXX kg
}}


Preview (including {{E15}} template): Template:WeaponTable


Weapon Table used style selectors:

.WeaponTable

E15 used style selectors:

.containerE15
.overlayE15



Armor Table

Table used to show armors. Change |WIDTH= (First collumn) and |WIDTH2= (Whole table) according to content.

Always include table end (|}) at the end of this template.

Usable with color templates and {{E15}} template.


{{ArmorTable
|WIDTH1= <!-- 0 120 --> 
|WIDTH2= <!-- 0 --> 
|PICTURE=PICTURE_LINK
|NAME= {{COLOR}}ITEM_NAME{{/COLOR}}
|GEAR TYPE=B-Gear M-Gear I-Gear A-Gear BG MG IG
|REQUIRED LEVEL=LEVEL
|WEIGHT= WEIGHT kg
}}

{{FunctionENG_SHD
|ENERGY=+XXXX
|SHIELD=+XXXX
}}

{{FunctionDEF
|ADV=+XX.XX%
|STD=+XX.XX%
}}

{{FunctionEVA
|ADV=+XX.XX%
|STD=+XX.XX%
}}

{{FunctionMIN-MAX_ADV
|MIN=+X%
|MAX=+X%
}}

{{FunctionMIN-MAX_STD
|MIN=+X%
|MAX=+X%
}}

{{FunctionPIERCE-STD
|STD=+X%
}}

{{FunctionPIERCE-ADV
|ADV=+X%
}}

{{FunctionACCURACY-STD
|STD=+X%
}}

{{FunctionACCURACY-ADV
|ADV=+X%
}}

|}


Preview: Template:ArmorTable Template:FunctionENG SHD Template:FunctionDEF Template:FunctionMIN-MAX ADV Template:FunctionACCURACY-ADV Template:FunctionPIERCE-ADV

|}


Used style selectors:

.WeaponTable


Engine Table

Table used to show Engines.

Additional code to show Functions and Ag Ground Speed.

Usable with color templates. And Functions like:

FunctionACCURACY-ADV</code>

FunctionACCURACY-STD</code>

FunctionDEF</code> FunctionENG SHD FunctionEVA FunctionMIN-MAX ADV FunctionMIN-MAX STD FunctionPIERCE-ADV FunctionPIERCE-STD


{{EngineTable
|NAME={{COLOR}}'''NAME'''{{/COLOR}}
|GEAR TYPE=<!-- B-Gear M-Gear I-Gear A-Gear BG MG IG -->
|REQUIRED LEVEL= XXX
|DEMAND STAT= 
XXX [XXX] 

XXX [XXX] 

XXX [XXX]
|EngineTableFunction=
<!-- Function ----------------unnecessary---
{{EngineTableFunction
|ID=3
|ID2=3
}}

{{FunctionPIERCE-ADV
|ADV=-7%}}

{{FunctionPIERCE-STD
|STD=-7%}}

{{FunctionACCURACY-ADV
|ADV=-10%}}

{{FunctionACCURACY-STD
|STD=-10%}}
{{EngineTableFunctionEnd}}------------------
-->
|SPEED MIN= XXX
|SPEED MAX= XXX
|BOOSTER SPEED= XXX
|AG GROUND SPEED=
<!----------------------------unnecessary---
{{EngineTableGroundSpeed|         
GROUND SPEED=300
}}------------------------------------------
-->
|BOOSTER TIME= XXX
|TURN RATE= XXX
|TURN RATE BOOSTER= XXX
|LATERAL SPEED= XXX
|WEIGHT= XXX
}}


Preview: Template:EngineTable