Template:Weapon Infobox: Difference between revisions
From Tiny Rogues Wiki
No edit summary |
Tag: Undo |
||
(57 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{#cargo_declare:_table=Weapon_Infobox | <noinclude>{{#cargo_declare:_table=Weapon_Infobox | ||
|Weapon_Type = Wikitext | |Weapon_Type = Wikitext | ||
|Weapon_Subtype = Wikitext | |||
|Rarity = Wikitext | |Rarity = Wikitext | ||
|Hand = Wikitext | |Hand = Wikitext | ||
|Damage_Range = Wikitext | |Damage_Range = Wikitext | ||
|APS = | |APS = String | ||
|ManaDrain = | |ManaDrain = String | ||
|AttackRange = Wikitext | |AttackRange = Wikitext | ||
|Effect = Wikitext | |Effect = Wikitext | ||
Line 11: | Line 12: | ||
|ProfDEX = String | |ProfDEX = String | ||
|ProfINT = String | |ProfINT = String | ||
|Tags = Wikitext | |||
}}</noinclude><includeonly>{{#cargo_store:_table=Weapon_Infobox}} | }}</noinclude><includeonly>{{#cargo_store:_table=Weapon_Infobox}} | ||
<infobox> | <infobox> | ||
<title source="name"> | <title source="name"> | ||
<default><center><p style="color:{{#switch: {{{Rarity}}} | | <default><center><p style="color:{{#switch: {{{Rarity}}} | 1 = #7b7c85 | 2 = #61ceee | 3 = #e1c969 | 4 = #b100fc | 5 = #f64e00 | Grey }};height:5px;font-size: {{#if: {{{HeaderSize|}}} | {{{HeaderSize}}} | 1.1em }};margin-bottom:20px; margin-top:20px" >{{PAGENAME}}</p></center></default> | ||
</title> | </title> | ||
<image source="image"><default> | <image source="image"><default>{{PAGENAMEE}}.png</default></image> | ||
<group> | <group> | ||
<data source="Weapon_Type"><label><span style="color:#82838e; font-weight:bold">Type:</span></label></data> | <data source="Weapon_Type"><label><span style="color:#82838e; font-weight:bold">Type:</span></label></data> | ||
<data source="Rarity"><label><span style="color:#82838e; font-weight:bold">Rarity:</span></label><format>{{#ifeq: {{{Rarity}}} | | <data source="Weapon_Subtype"><label><span style="color:#82838e; font-weight:bold">Subtype:</span></label></data> | ||
<data source="Rarity"><label><span style="color:#82838e; font-weight:bold">Rarity:</span></label><format>{{#ifeq: {{{Rarity}}} | 1 | {{Common}} |}}{{#ifeq: {{{Rarity}}} | 2 | {{Uncommon}} |}}{{#ifeq: {{{Rarity}}} | 3 | {{Rare}} |}}{{#ifeq: {{{Rarity}}} | 4 | {{Epic}}|}}{{#ifeq: {{{Rarity}}} | 5 | {{Legendary}}|}}</format></data> | |||
<data source="Hand"> <label><span style="color:#82838e; font-weight:bold">Hand:</span></label> <format>{{#ifeq: {{{Hand}}} | 1 | {{One-Handed}} |}} {{#ifeq: {{{Hand}}} | 2 | {{KW|2H}}|}}</format></data> | <data source="Hand"> <label><span style="color:#82838e; font-weight:bold">Hand:</span></label> <format>{{#ifeq: {{{Hand}}} | 1 | {{One-Handed}} |}} {{#ifeq: {{{Hand}}} | 2 | {{KW|2H}}|}}</format></data> | ||
<data source="ManaDrain"> <label><span style="color:#1dc1ee; font-weight:bold">Mana Drain:</span></label><format><span style="color:#1dc1ee; font-weight:bold">{{tt|{{{ManaDrain}}} | <data source="ManaDrain"> <label><span style="color:#1dc1ee; font-weight:bold">Mana Drain:</span></label><format><span style="color:#1dc1ee; font-weight:bold">{{tt|{{{ManaDrain}}}[[File:IconMana.png|15px|link=]]|{{KW/Mana}} }}</span></format></data> | ||
<data source="AttackRange"><label><span style="color:#82838e; font-weight:bold">Range:</span></label></data> | <data source="AttackRange"><label><span style="color:#82838e; font-weight:bold">Range:</span></label></data> | ||
<data source="Damage_Range"><label><span style="color:#82838e; font-weight:bold">Damage:</span></label></data> | <data source="Damage_Range"><label><span style="color:#82838e; font-weight:bold">Damage:</span></label></data> | ||
<data source="APS"><label> <span style="color:#82838e; font-weight:bold">APS:</span></label></data> | |||
<data source="Effect"><label><span style="color:#82838e; font-weight:bold">Effect:</span></label><format><p style=" padding-bottom:10px; padding-top:10px"><span style="text-align:center; font-size:13px; font-weight:bold;">{{{Effect}}}</p></format></data> | <data source="Effect"><label><span style="color:#82838e; font-weight:bold">Effect:</span></label><format><p style=" padding-bottom:10px; padding-top:10px"><span style="text-align:center; font-size:13px; font-weight:bold;">{{{Effect}}}</p></format></data> | ||
<data source="Tags"><label><span style="color:#82838e; font-weight:bold">Tags:</span></label><format><p style=" padding-bottom:10px; padding-top:10px"><span style="text-align:center; font-size:13px; font-weight:bold;">{{{Tags}}}</p></format></data> | |||
</group> | </group> | ||
<group layout="horizontal" row-items="3"> | <group layout="horizontal" row-items="3"> | ||
Line 32: | Line 36: | ||
<data source="ProfINT"><label><p style="color:#1bc4f0">INT</p></label><default>-</default><format><span style="color:#1bc4f0; font-weight:bold; font-size: 15px">{{{ProfINT}}}</span></format></data> | <data source="ProfINT"><label><p style="color:#1bc4f0">INT</p></label><default>-</default><format><span style="color:#1bc4f0; font-weight:bold; font-size: 15px">{{{ProfINT}}}</span></format></data> | ||
</group> | </group> | ||
<image source="Image"><default> | <image source="Image"><default>{{#setmainimage:{{PAGENAMEE}}.gif}}</default></image> | ||
</infobox> | </infobox> | ||
</includeonly> | </includeonly><includeonly>[[Category: Weapon]]</includeonly>{{#switch: {{{Rarity}}} | ||
<includeonly>[[Category: Weapon]]</includeonly> | | 1 = {{#css:.portable-infobox {border-color: #7b7c85;} }} | ||
| 2 = {{#css:.portable-infobox {border-color: #61ceee;} }} | |||
| 3 = {{#css:.portable-infobox {border-color: #e1c969;} }} | |||
| 4 = {{#css:.portable-infobox {border-color: #b100fc;} }} | |||
| 5 = {{#css:.portable-infobox {border-color: #f64e00;} }}}} |
Latest revision as of 19:02, 24 August 2024
This template defines the table "Weapon_Infobox". View table.