Module:Documentation: Difference between revisions
(→Drafts) |
|||
Line 235: | Line 235: | ||
---- | ---- | ||
Table used to show recipes. | Table used to show recipes. | ||
Material count number needs to be the same as number of rows | Material count number needs to be the same as number of rows. | ||
Usable with color templates. | Usable with color templates. | ||
Line 241: | Line 241: | ||
<pre> | <pre> | ||
{| | {{RecipeTablePRE|5}} | ||
{{RecipeTable|5 | |||
|R1= | |||
|R2= | |||
| | |R3= | ||
| | |R4= | ||
| | |R5= | ||
| | |CHANCE= | ||
| | |FINAL= | ||
}} | |||
{{RecipeTestPOST}} | |||
</pre> | </pre> | ||
'''Preview:''' | '''Preview:''' | ||
{| | {{RecipeTablePRE|3}} | ||
{{RecipeTable|3 | |||
|R1= https://download.chromerivals.net/resources/items_images/standard/3726917263.png {{cyan}}Refined Boss Mineral{{/cyan}} (x1) | |||
|R2= https://download.chromerivals.net/resources/items_images/standard/3737599993.png {{magenta}}Boss Strengthening Card{{/magenta}} (x1) | |||
|CHANCE= 50% | |||
| https://download.chromerivals.net/resources/items_images/standard/3726917263.png {{cyan}}Refined Boss Mineral{{/cyan}} (x1) | |FINAL= https://download.chromerivals.net/resources/items_images/standard/3726901631.png {{blue}}Reinforced Boss Transformation Card{{/blue}} (x1) | ||
| https://download.chromerivals.net/resources/items_images/standard/3737599993.png {{magenta}}Boss Strengthening Card{{/magenta}} (x1) | }} | ||
| | {{RecipeTable|3 | ||
|R1= https://download.chromerivals.net/resources/items_images/standard/3726917263.png {{cyan}}Refined Boss Mineral{{/cyan}} (x1) | |||
| https://download.chromerivals.net/resources/items_images/standard/3726901631.png {{blue}}Reinforced Boss Transformation Card{{/blue}} (x1) | |R2= https://download.chromerivals.net/resources/items_images/standard/3737599993.png {{magenta}}Boss Strengthening Card{{/magenta}} (x1) | ||
| | |R3= https://download.chromerivals.net/resources/items_images/standard/3737557289.png {{cyan}}Ancient Matter{{/cyan}} (x1) | ||
| https://download.chromerivals.net/resources/items_images/standard/3726917263.png {{cyan}}Refined Boss Mineral{{/cyan}} (x1) | |CHANCE= 60% | ||
| https://download.chromerivals.net/resources/items_images/standard/3737599993.png {{magenta}}Boss Strengthening Card{{/magenta}} (x1) | |FINAL= https://download.chromerivals.net/resources/items_images/standard/3726901631.png {{blue}}Reinforced Boss Transformation Card{{/blue}} (x1) | ||
| https://download.chromerivals.net/resources/items_images/standard/3737557289.png {{cyan}}Ancient Matter{{/cyan}} (x1) | }} | ||
| 60% | {{RecipeTestPOST}} | ||
| https://download.chromerivals.net/resources/items_images/standard/3726901631.png {{blue}}Reinforced Boss Transformation Card{{/blue}} (x1) | |||
Revision as of 14:14, 17 April 2024
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", "Test Page 3".
- 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.
Written by Ranzu. Last Updated 25 March 2024.
Templates
Color Templates
Color templates equivalent to game colors.
Used with E.g. {{/lblue}}
or {{/blue}}
, as closing tag.
- #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
Energy Card |
Std. Attack Card |
Adv. Attack Card |
Std. Reat Card |
Adv. Reat Card |
Std. Accuracy Card |
Adv. Accuracy Card |
Std. Pierce Card |
Adv. Pierce Card |
Defense Card |
Evasion Card |
Energy Card |
Std. Attack Card |
Adv. Attack Card |
Std. Reat Card |
Adv. Reat Card |
Std. Accuracy Card |
Adv. Accuracy Card |
Std. Pierce Card |
Adv. Pierce Card |
Defense Card |
Evasion Card |
Toggle button - table
r-collapsible-table
- Class added to the table that you want to collapse/expand.r-collapsed
- Class added to the table that you want to be collapsed by default.r-collapsible-title
- Class added to the table header (or first row) that you want to be displayer when collapsed.
MT-Global
- Mission Table class, not required.
{| class="MT-Global r-collapsible-table r-collapsed" ! class="MT-Title r-collapsible-title" | Title |- | Content |}
Preview:
Title |
---|
Content |
Other
Meta Tags
We use Wiki SEO Extension to add meta tags, like description or images (those will show under link in discord for example) to the header of the page.
Most common use would be (B-Gear page):
{{#seo: |description= This page contains all useful equipment and some guides about the B-Gear. |image= BG_Main_m.png |image_width= 420px |image_height= 420px }}
Not using |image=
or leaving the parameter blank, will result in default CR Wiki Logo picture.
Hover to show
Hover over .HoverHide
to show .hide
Used style selectors:
.HoverHide .hide
Use width:max-content;
for "button" hover only.
Preview:
Custom Toggle
Used with:
mw-customtoggle-myDivision1
mw-customcollapsible-myDivision1
(Changing myDivision1
to myDivision2
, myDivision3
etc.)
Preview:
Click to toggle |
Toggled Content
Drafts
Tabs (Old tabber)
Used to display multiple tabs, like with shops and 4 gears.
Note the <ta b
. Added this space to actually see the syntax colors. Move it back to normal after finishing the job.
<ta bs>{{Limit-Height|H= 60em}}<ta b name="B-Gear">{{Shops-PRE}} <!--------------------------------------------------------- B-Gear --> Content B-Gear {{Shops-POST}}{{/Limit-Height}}</tab>{{Limit-Height|H= 60em}}<ta b name="I-Gear">{{Shops-PRE}} <!--------------------------------------------------------- I-Gear --> Content I-Gear {{Shops-POST}}{{/Limit-Height}}</tab>{{Limit-Height|H= 60em}}<ta b name="M-Gear">{{Shops-PRE}} <!--------------------------------------------------------- M-Gear --> Content M-Gear {{Shops-POST}}{{/Limit-Height}}</tab>{{Limit-Height|H= 60em}}<ta b name="A-Gear">{{Shops-PRE}} <!--------------------------------------------------------- A-Gear --> Content A-Gear {{Shops-POST}}{{/Limit-Height}}</tab></tabs>
Recipe Table
Table used to show recipes. Material count number needs to be the same as number of rows.
Usable with color templates.
{{RecipeTablePRE|5}} {{RecipeTable|5 |R1= |R2= |R3= |R4= |R5= |CHANCE= |FINAL= }} {{RecipeTestPOST}}
Preview: