From Brotato Wiki

(add Template:MiniModIconbox)
(moved templates to a new page, "Wiki Editing")
Tag: Replaced
Line 3: Line 3:
I work on templates, data mining, standardisation and CSS/layout stuff. I am also active on the Spells & Guns [https://discord.gg/XakDgvQPMN Discord] (<code>Darkly77#0316</code>).
I work on templates, data mining, standardisation and CSS/layout stuff. I am also active on the Spells & Guns [https://discord.gg/XakDgvQPMN Discord] (<code>Darkly77#0316</code>).


==Templates==
View all templates here: [[Wiki_Editing]]
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:WeaponClass]]
|Contains and shows stats for every [[Weapons#Weapon Classes|Weapon Class]]
|}
 
===General===
Frequently used miscellaneous templates.
{| class="wikitable"
!Template
!Description
|-
|[[Template:Iconbox]]
|Shows items/weapons in a box, with lots of options. '''Widely used.'''
|-
|[[Template:MiniIconbox]]
|Mini version of Iconbox, meant for use within content.
|-
|[[Template:MiniModIconbox]]
|Mini icon box with a custom image an no link, intended for mod pages.
|-
|[[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.
|}
 
===Infobox===
Adds a large section with lots of data. Shown on the right of the page. Some have helpers (see next section).
{| class="wikitable"
!Template
!Description
|-
|[[Template:Infobox_Character]]
|Infobox for a single [[Characters|Character]]. ''Has a helper, listed below''
|-
|[[Template:Infobox_Character_Helper]]
|Adds [[Template:Infobox_Character]] with pre-filled data, using the current page name.
|-
|[[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]]
|}
 
===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:Unique]]
|<code><nowiki>{{Unique}}</nowiki></code>
|[[Items|Item]]
|States that the item is unique
|-
|[[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:WeaponPageClassText]]
|<code><nowiki>{{WeaponPageClassText}}</nowiki></code>
|[[Weapons|Weapon]]
|Weapon [[Weapons#Weapon Classes|class]] text
|-
|[[Template:WeaponClassIntroText]]
|<code><nowiki>{{WeaponClassIntroText}}</nowiki></code>
|[[Weapons#Weapon Classes|Weapon Class]]
|Intro for single weapon class page
|-
|[[Template:ItemTagText]]
|<code><nowiki>{{ItemTagText|Exploration}}</nowiki></code>
|Many
|Full sentence stating the characters attributed to the specified [[Items#Item Tags|item tag]]
|-
|[[Template:DefaultModInstall]]
|<code><nowiki>{{DefaultModInstall}}</nowiki></code>
|[[Modding|Mod]]
|Mod install instructions link
|-
|[[Template:ModDisclaimerText]]
|<code><nowiki>{{ModDisclaimerText}}</nowiki></code>
|[[Modding|Mod]]
|Mod disclaimer mentioning link safety
|}
 
=== Text Lists ===
Lists data.
{| class="wikitable"
!Template
!Description
|-
|[[Template:WeaponClassWeapons]]
|Lists the [[Weapons]] that belong to a specific [[Weapons#Weapon Classes|Weapon Class]].
|-
|[[Template:ItemTagCharacters]]
|Lists the [[Characters]] that belong to a specific [[Items#Item Tags|Item Tag]].
|}
 
===Tables===
Makes it easier to add tables and rows for specific data sets. The page for [[Template:TableHeaders]] shows examples for every template.
{| 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:TableRowWeaponClass]]
|Lists [[Weapons#Weapon Classes|Weapon Classes]]
|}
 
===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 one of the 3 icon templates in the rows above is preferable, as it makes maintenance a bit easier.
|}
 
=== Functions ===
Helper functions, used to get data with minimal template logic.
{| class="wikitable"
!Template
!Description
|-
|[[Template:GetType]]
|Gets the type for the provided thing (item, weapon, character)
|-
|[[Template:GetRarity]]
|Gets the rarity for the provided item/weapon
|}
 
=== Deprecated ===
Templates that have been replaced with new/renamed versions.
{| class="wikitable"
!Deprecated Template
!New Template
!Reason
|-
|[[Template:WeaponSet]]
|[[Template:WeaponClass]]
| rowspan="3" |Renamed "weapon set" to "weapon class" after data mining showed "class" to be the official name
|-
|[[Template:WeaponSetWeapons]]
|[[Template:WeaponClassWeapons]]
|-
|[[Template:TableRowSet]]
|[[Template:TableRowWeaponClass]]
|}

Revision as of 17:51, 30 November 2022

User page for Darkly77. View contributions here.

I work on templates, data mining, standardisation and CSS/layout stuff. I am also active on the Spells & Guns Discord (Darkly77#0316).

View all templates here: Wiki_Editing