Jump to content

Template:Custom Equipment: Difference between revisions

From ZenithXI
imported>Spicyryan
Undo revision 689490 by Spicyryan (talk)
 
imported>Azukii
Fix empty/missing icon size prop
 
Line 1: Line 1:
<noinclude>
<noinclude>
For creating custom equipment tooltips, generally for [[:Category:Private Server]]s
For creating custom equipment tooltips, generally for [[:Category:Private Server]]s
*Icon Link can be left blank to remove linking.
* <code>Rare</code>, <code>Ex</code> and <code>Aug</code> are just blank or y.
*Rare or Ex are just blank or y.
* <code>Race</code> is optional, defaults All Races
*Race is optional, defaults All Races
* <code>DMG</code> is for weapons, leave blank to omit.
*DMG is for weapons, leave blank to omit.
* <code>Row #</code> goes up to 8, but Nyame's length of lines is 14. This can be changed later if needed.
*|Row # goes up to 7, but Nyame's length of lines is 14. This can be changed later if needed.
** Most of the time 5 or so should be sufficient.
**Most of the time 5 or so should be sufficient.
* <code>Tooltip ID</code> is optional, but can be defined to a unique value when you have the same item multiple times on a page, which can cause the tooltip to not work properly.
 
<pre>{{Custom Equipment
<pre>{{Custom Equipment
|Item Icon=
    |Item Icon=
|Icon Size=
    |Icon Size=
|Icon Link=
    |Text Name=
|Text Name=
    |Item Name=
|Item Name=
    |Tooltip ID=
|Rare=
    |Rare=
|Ex=
    |Ex=
|Aug=
    |Aug=
|Equipment Type=
    |Equipment Type=
|Race=
    |Race=
|DMG=
    |DMG=
|Delay=
    |Delay=
|Row 1=
    |Row 1=
|Row 2=
    |Row 2=
|Row 3=
    |Row 3=
|Row 4=
    |Row 4=
|Row 5=
    |Row 5=
|Level=
    |Level=
|Jobs=
    |Jobs=
}}</pre>
    }}
[[Category:Templates/Private Server|{{PAGENAME}}]]</noinclude><includeonly>[[File:{{{Item Icon}}} icon.png|{{#if:{{{Icon Size}}}|{{{Icon Size}}}|22}}px|link={{{Icon Link}}}]] {{tooltip|text=<span style="text-decoration: underline">{{{Text Name}}}</span>|tooltip=<div style="background: #EFEFEF; padding: 5px; border: 1px solid #59C1A9; min-width: 366px; max-width: 366px; text-align: left;">[[File:{{{Item Icon}}} icon.png|32px|link=]] '''{{{Item Name}}}'''<span style="float:right">{{#if:{{{Aug}}}|[[File:Augment-Icon.png|link=]]|}}{{#if:{{{Rare|}}}|[[File:Rare-Icon.gif|link=]]|}}{{#if:{{{Ex|}}}|[[File:Ex-Icon.gif|link=]]|}}</span><br><span style="padding-left: 35px">[{{{Equipment Type}}}]{{#if:{{{Race|}}}|{{{Race}}}|All Races}}</span>{{#if:{{{DMG|}}}|<br><span style="padding-left: 35px">DMG:{{{DMG}}} Delay:{{{Delay|}}}</span>|}}<br><span style="padding-left: 35px">{{{Row 1}}}</span>{{#if:{{{Row 2|}}}|<br><span style="padding-left: 35px">{{{Row 2}}}</span>|}}{{#if:{{{Row 3|}}}|<br><span style="padding-left: 35px">{{{Row 3}}}</span>|}}{{#if:{{{Row 4|}}}|<br><span style="padding-left: 35px">{{{Row 4}}}</span>|}}{{#if:{{{Row 5|}}}|<br><span style="padding-left: 35px">{{{Row 5}}}</span>|}}{{#if:{{{Row 6|}}}|<br><span style="padding-left: 35px">{{{Row 6}}}</span>|}}{{#if:{{{Row 7}}}|<br><span style="padding-left: 35px">{{{Row 7|}}}</span>|}}{{#if:{{{Row 8}}}|<br><span style="padding-left: 35px">{{{Row 8|}}}</span>|}}<br>Lv.{{{Level}}} {{{Jobs}}}</div>}}</includeonly>
</pre>
[[Category:Templates/Private Server|{{PAGENAME}}]]
 
Examples:
{{Custom Equipment
    |Item Icon=Cutlass
    |Icon Size=22
    |Icon Link=
    |Text Name=Stormblade
    |Item Name=Stormblade
    |Tooltip ID=Stormblade-custom-id
    |Aug=
    |Rare=y
    |Ex=y
    |Equipment Type=Sword
    |Race=
    |DMG=39
    |Delay=236
    |Row 1={{thunder}}+14
    |Row 2=Occasionally attacks twice
    |Row 3=Enhances "Dragon Killer" effect
    |Row 4=(Hidden: INT+3, Additional effect: Lightning)
    |Level=70
    |Jobs=WAR/THF/DRK/BST/BLU/COR
    }}
{{Custom Equipment
    |Text Name=Oneiros Knife
    |Item Name=Oneiros Knife
    |Item Icon=Oneiros Knife
    |Icon Link=
    |Rare=y
    |Ex=y
    |Aug=
    |Equipment Type=Dagger
    |Level=75
    |Race=
    |Jobs=RDM/THF/BRD/RNG/NIN/COR
    |DMG=27
    |Delay=150
    |Row 1=AGI+6 Critical Hit Damage +3%
}}
</noinclude>
<includeonly>{{tooltip|id={{#if:{{{Tooltip ID|}}}|{{{Tooltip ID|}}}|{{{Text Name}}}}}|text=[[File:{{{Item Icon}}} icon.png|{{#if:{{{Icon Size|}}}|{{{Icon Size}}}|22}}px|link=]] <span style="text-decoration: underline">{{{Text Name}}}</span>|tooltip=<div style="background: #EFEFEF; padding: 5px; border: 1px solid #59C1A9; min-width: 366px; max-width: 366px; text-align: left;">[[File:{{{Item Icon}}} icon.png|32px|link=]] '''{{{Item Name}}}'''<span style="float:right">{{#if:{{{Aug}}}|[[File:Augment-Icon.png|link=]]|}}{{#if:{{{Rare|}}}|[[File:Rare-Icon.gif|link=]]|}}{{#if:{{{Ex|}}}|[[File:Ex-Icon.gif|link=]]|}}</span><br><span style="padding-left: 35px">[{{{Equipment Type}}}]{{#if:{{{Race|}}}| {{{Race}}}| All Races}}</span>{{#if:{{{DMG|}}}|<br><span style="padding-left: 35px">DMG:{{{DMG}}} Delay:{{{Delay|}}}</span>|}}<br><span style="padding-left: 35px">{{{Row 1}}}</span>{{#if:{{{Row 2|}}}|<br><span style="padding-left: 35px">{{{Row 2}}}</span>|}}{{#if:{{{Row 3|}}}|<br><span style="padding-left: 35px">{{{Row 3}}}</span>|}}{{#if:{{{Row 4|}}}|<br><span style="padding-left: 35px">{{{Row 4}}}</span>|}}{{#if:{{{Row 5|}}}|<br><span style="padding-left: 35px">{{{Row 5}}}</span>|}}{{#if:{{{Row 6|}}}|<br><span style="padding-left: 35px">{{{Row 6}}}</span>|}}{{#if:{{{Row 7|}}}|<br><span style="padding-left: 35px">{{{Row 7}}}</span>|}}{{#if:{{{Row 8|}}}|<br><span style="padding-left: 35px">{{{Row 8}}}</span>|}}<br><span style="padding-left: 35px">Lv.{{{Level}}} {{{Jobs}}}</span></div>}}</includeonly>

Latest revision as of 11:03, 14 February 2026

For creating custom equipment tooltips, generally for Category:Private Servers

  • Rare, Ex and Aug are just blank or y.
  • Race is optional, defaults All Races
  • DMG is for weapons, leave blank to omit.
  • Row # goes up to 8, but Nyame's length of lines is 14. This can be changed later if needed.
    • Most of the time 5 or so should be sufficient.
  • Tooltip ID is optional, but can be defined to a unique value when you have the same item multiple times on a page, which can cause the tooltip to not work properly.
{{Custom Equipment
    |Item Icon=
    |Icon Size=
    |Text Name=
    |Item Name=
    |Tooltip ID=
    |Rare=
    |Ex=
    |Aug=
    |Equipment Type=
    |Race=
    |DMG=
    |Delay=
    |Row 1=
    |Row 2=
    |Row 3=
    |Row 4=
    |Row 5=
    |Level=
    |Jobs=
    }}

Examples:

File:Cutlass icon.png Stormblade

File:Oneiros Knife icon.png Oneiros Knife