Module:Documentation: Difference between revisions

From :: ChromeRivals Wiki ::
Jump to navigation Jump to search
Ranzu (talk | contribs)
Ranzu (talk | contribs)
No edit summary
Line 4: Line 4:
===Color Templates===
===Color Templates===
Color templates equivalent to game colors.
Color templates equivalent to game colors.
<br>
 
 
Used with E.g. <code><nowiki>{{/lblue}}</nowiki></code> or <code><nowiki>{{/blue}}</nowiki></code>, as closing tag.
Used with E.g. <code><nowiki>{{/lblue}}</nowiki></code> or <code><nowiki>{{/blue}}</nowiki></code>, as closing tag.


Line 30: Line 31:
===Toggle button===
===Toggle button===
<code><nowiki>{{Toggle}}</nowiki></code>
<code><nowiki>{{Toggle}}</nowiki></code>
<br>
 
<br>
 
Always include space or break before this template if you using <code>Title</code>.
Always include space or break before this template if you using <code>Title</code>.
<br>
 
 
Used with <code><nowiki>{{/Toggle}}</nowiki></code>, as closing tag.
Used with <code><nowiki>{{/Toggle}}</nowiki></code>, as closing tag.
<pre>
<pre>
{{Toggle|Title=Title_Goes_Here}}
{{Toggle|Title=Title_Goes_Here}}
Line 224: Line 228:
.tabber__tab
.tabber__tab
</pre>
</pre>


----
----
====Recipe Table====
====Recipe Table====
Table used to show recipes.
Table used to show recipes.
Material count number needs to be the same as number of columns <code><nowiki>PICTURE_LINK_X</nowiki></code>. Usable with color templates.
Material count number needs to be the same as number of columns <code><nowiki>PICTURE_LINK_X</nowiki></code>.  
 
Usable with color templates.
 


<pre>
<pre>
Line 251: Line 259:
.RecipeTable
.RecipeTable
</pre>
</pre>


----
----
====Weapon Table / E15====
====Weapon Table / E15====
Table used to show weapons. Change <code><nowiki>|WIDTH=</nowiki></code> (First collumn) and <code><nowiki>|WIDTH2=</nowiki></code> (Whole table) according to content.
Table used to show weapons. Change <code><nowiki>|WIDTH=</nowiki></code> (First collumn) and <code><nowiki>|WIDTH2=</nowiki></code> (Whole table) according to content.


Usable with color templates and <code><nowiki>{{E15}}</nowiki></code> template.
Usable with color templates and <code><nowiki>{{E15}}</nowiki></code> template.


<pre>
<pre>
Line 312: Line 323:
|WEIGHT=120kg
|WEIGHT=120kg
}}
}}


Weapon Table used style selectors:
Weapon Table used style selectors:
Line 322: Line 334:
.overlayE15
.overlayE15
</pre>
</pre>


----
----
====Armor Table====
Table used to show armors. Change <code><nowiki>|WIDTH=</nowiki></code> (First collumn) and <code><nowiki>|WIDTH2=</nowiki></code> (Whole table) according to content.


====Armor Table====
Always include table end (<code><nowiki>|}</nowiki></code>) at the end of this template.
Table used to show armors. Change <code><nowiki>|WIDTH=</nowiki></code> (First collumn) and <code><nowiki>|WIDTH2=</nowiki></code> (Whole table) according to content. Always include table end (<code><nowiki>|}</nowiki></code>) at the end of this template.


Usable with color templates and <code><nowiki>{{E15}}</nowiki></code> template.
Usable with color templates and <code><nowiki>{{E15}}</nowiki></code> template.


<pre>
<pre>
Line 416: Line 431:


|}
|}
Used style selectors:
<pre>
.WeaponTable
</pre>

Revision as of 15:36, 5 December 2023

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