From Brotato Wiki

(INITIAL \o/)
 
(INITIAL \o/ -- note: this data might be better suited on a new page, eg "Wiki Editing" or something)
Line 1: Line 1:
User page for Darkly77. View my contributions [[Special:Contributions/Darkly77|here]].
User page for Darkly77. View my contributions [[Special:Contributions/Darkly77|here]].
==Templates==
Quick reference list of useful templates. See also: [[Special:UncategorizedTemplates]]. For cleanup, see [[Special:UnusedTemplates]].
===Data===
Contains all data of the specified type. Used by tables, infoboxes, [[Template:Iconbox]], and more.
{| class="wikitable"
!Template
!Description
|-
|[[Template:Character_Data]]
|Contains all data for [[Characters]]
|-
|[[Template:Item_Data]]
|Contains all data for [[Items]]
|-
|[[Template:Weapon_Data]]
|Contains all data for [[Weapons]]
|-
|[[Template:Elite_Data]]
|Contains all data for [[Enemies#Elites (Danger 2+)|Elite Enemies]]
|-
|[[Template:WeaponSet]]
|Contains and shows stats for every [[Weapons#Weapon Sets|Weapon Set]]. Used by [[Template:WeaponSetWeapons]]
|}
===General===
Frequently used miscellaneous templates.
{| class="wikitable"
|+
!Template
!Description
|-
|[[Template:Iconbox]]
|Shows items/weapons in a box, with lots of options. '''Widely used.'''
|-
|[[Template:Color]]
|Colours text, eg. {{Color|color=green|text=green}}.
|-
|[[Template:StatIcon]]
|Stat icons, eg. {{StatIcon|Damage}} (Damage)
|-
|[[Template:NavBoxCharacters]]
|Navigation box, shown at the bottom of every [[Characters|Character]] page.
|-
|[[Template:WeaponSetWeapons]]
|Lists the weapons that belong to a specific [[Weapons#Weapon Set|Weapon Set]].
|}
===Infobox===
Adds a large section with lots of data. Shown on the right of the page.
{| class="wikitable"
!Template
!Description
|-
|[[Template:Infobox_Character]]
|Infobox for a single [[Characters|Character]]. ''Has a helper, listed below''
|-
|[[Template:Infobox_Item]]
|Infobox for a single [[Items|Item]]
|-
|[[Template:Infobox_Weapon]]
|Infobox for a single [[Weapons|Weapon]]
|-
|[[Template:Infobox_Elite]]
|Infobox for a single [[Enemies#Elites (Danger 2+)|Elite Enemy]]
|}
=== Infobox Helpers ===
Adds the specified infobox (as per the templates above), but pre-fills the options by using the current page name to get data from [[Template:Character_Data]].
{| class="wikitable"
!Template
!Description
|-
|[[Template:Infobox_Character]]
|Infobox for a single [[Characters|Character]]
|-
|[[Template:Infobox_Character_Helper]]
|Adds [[Template:Infobox_Character]] with pre-filled data, using the current page name.
|}
===Text===
Inserts pre-defined text that commonly appears on various page types.
{| class="wikitable"
!Template
!Usage
!Page Type
!Description
|-
|[[Template:Character]]
|<code><nowiki>{{Character}}</nowiki></code>
|[[Characters|Character]]
|Character page text. Intro for all [[characters]]
|-
|[[Template:CharacterUnlockedBy]]
|<code><nowiki>{{CharacterUnlockedBy}}</nowiki></code>
|[[Characters|Character]]
|Character page text. Shows how to unlock the character
|-
|[[Template:CharacterUnlocks]]
|<code><nowiki>{{CharacterUnlocks}}</nowiki></code>
|[[Characters|Character]]
|Character page text. Shows what item the character unlocks
|-
|[[Template:Item]]
|<code><nowiki>{{Item}}</nowiki></code>
|[[Items|Item]]
|Intro text
|-
|[[Template:Weapon]]
|<code><nowiki>{{Weapon}}</nowiki></code>
|[[Weapons|Weapon]]
|Intro text
|-
|[[Template:Melee]]
|<code><nowiki>{{Melee}}</nowiki></code>
|[[Weapons|Weapon]]
|Weapon type text ([[Weapons#Melee Weapons|Melee]])
|-
|[[Template:Ranged]]
|<code><nowiki>{{Ranged}}</nowiki></code>
|[[Weapons|Weapon]]
|Weapon type text ([[Weapons#Ranged Weapons|Ranged]])
|-
|[[Template:DefaultModInstall]]
|<code><nowiki>{{DefaultModInstall}}</nowiki></code>
|[[Modding|Mod]]
|Install instructions link
|-
|[[Template:ModDisclaimerText]]
|<code><nowiki>{{ModDisclaimerText}}</nowiki></code>
|[[Modding|Mod]]
|Disclaimer mentioning link safety
|}
===Tables===
Makes it easier to add tables and rows for specific data sets.
{| class="wikitable"
!Template
!Description
|-
|[[Template:TableHeaders]]
|Table row headers for all rows listed below
|-
|[[Template:TableRowCharacter]]
|Lists [[Characters]]
|-
|[[Template:TableRowItem]]
|Lists [[Items]]
|-
|[[Template:TableRowWeapon]]
|Lists [[Weapons]]
|-
|[[Template:TableRowSet]]
|Lists [[Weapons#Weapon Sets|Weapon Sets]]
|}
===Linked Icons===
Add an pre-sized icon with a link to the specified item/weapon/character (eg. see [[Shop#Modifiers|Shop > Modifiers]]).
''Most of these were widely used in common templates, prior to [[Template:Iconbox]] being updated with options that made them redundant for such use.''
{| class="wikitable"
!Template
!Example
!Preview
!Notes
|-
|[[Template:CharacterIcon]]
|<code><nowiki>{{CharacterIcon|Well Rounded}}</nowiki></code>
|{{CharacterIcon|name=Well Rounded}}
|
|-
|[[Template:ItemIcon]]
|<code><nowiki>{{ItemIcon|Acid}}</nowiki></code>
|{{ItemIcon|name=Acid}}
|
|-
|[[Template:WeaponIcon]]
|<code><nowiki>{{WeaponIcon|Cacti Club}}</nowiki></code>
|{{WeaponIcon|name=Cacti Club}}
|
|-
|[[Template:MiscIcon]]
|<code><nowiki>{{MiscIcon|Tree}}</nowiki></code>
|{{MiscIcon|name=Tree}}
|Using the specific type icon is preferable as it makes maintenance a bit easier.
|}

Revision as of 23:12, 6 November 2022

User page for Darkly77. View my contributions here.

Templates

Quick reference list of useful templates. See also: Special:UncategorizedTemplates. For cleanup, see Special:UnusedTemplates.

Data

Contains all data of the specified type. Used by tables, infoboxes, Template:Iconbox, and more.

Template Description
Template:Character_Data Contains all data for Characters
Template:Item_Data Contains all data for Items
Template:Weapon_Data Contains all data for Weapons
Template:Elite_Data Contains all data for Elite Enemies
Template:WeaponSet Contains and shows stats for every Weapon Set. Used by Template:WeaponSetWeapons

General

Frequently used miscellaneous templates.

Template Description
Template:Iconbox Shows items/weapons in a box, with lots of options. Widely used.
Template:Color Colours text, eg. green.
Template:StatIcon Stat icons, eg. Damage.png (Damage)
Template:NavBoxCharacters Navigation box, shown at the bottom of every Character page.
Template:WeaponSetWeapons Lists the weapons that belong to a specific Weapon Set.

Infobox

Adds a large section with lots of data. Shown on the right of the page.

Template Description
Template:Infobox_Character Infobox for a single Character. Has a helper, listed below
Template:Infobox_Item Infobox for a single Item
Template:Infobox_Weapon Infobox for a single Weapon
Template:Infobox_Elite Infobox for a single Elite Enemy

Infobox Helpers

Adds the specified infobox (as per the templates above), but pre-fills the options by using the current page name to get data from Template:Character_Data.

Template Description
Template:Infobox_Character Infobox for a single Character
Template:Infobox_Character_Helper Adds Template:Infobox_Character with pre-filled data, using the current page name.

Text

Inserts pre-defined text that commonly appears on various page types.

Template Usage Page Type Description
Template:Character {{Character}} Character Character page text. Intro for all characters
Template:CharacterUnlockedBy {{CharacterUnlockedBy}} Character Character page text. Shows how to unlock the character
Template:CharacterUnlocks {{CharacterUnlocks}} Character Character page text. Shows what item the character unlocks
Template:Item {{Item}} Item Intro text
Template:Weapon {{Weapon}} Weapon Intro text
Template:Melee {{Melee}} Weapon Weapon type text (Melee)
Template:Ranged {{Ranged}} Weapon Weapon type text (Ranged)
Template:DefaultModInstall {{DefaultModInstall}} Mod Install instructions link
Template:ModDisclaimerText {{ModDisclaimerText}} Mod Disclaimer mentioning link safety

Tables

Makes it easier to add tables and rows for specific data sets.

Template Description
Template:TableHeaders Table row headers for all rows listed below
Template:TableRowCharacter Lists Characters
Template:TableRowItem Lists Items
Template:TableRowWeapon Lists Weapons
Template:TableRowSet Lists Weapon Sets

Linked Icons

Add an pre-sized icon with a link to the specified item/weapon/character (eg. see Shop > Modifiers).

Most of these were widely used in common templates, prior to Template:Iconbox being updated with options that made them redundant for such use.

Template Example Preview Notes
Template:CharacterIcon {{CharacterIcon|Well Rounded}} Well Rounded.png Well Rounded
Template:ItemIcon {{ItemIcon|Acid}} Acid.png Acid
Template:WeaponIcon {{WeaponIcon|Cacti Club}} Cacti Club.png Cacti Club
Template:MiscIcon {{MiscIcon|Tree}} Tree.png Tree Using the specific type icon is preferable as it makes maintenance a bit easier.