Template:InfoboxWeapons

From Picayune Dreams Wiki
Jump to navigation Jump to search

Usage:

{{InfoboxWeapons
|name=
|image=
|description=
|damage=
|knockback=
|cooldown=
|speed=
|code=
|affectbysize=
|affectbycooldown=
|affectbyprojspeed=
}}

NOTE: To properly pass the code value, you must use the special html character 
 when you want a newline! Failure to do so will result in improperly formatted code. You do not have to do this for the regular code template, but you must do it here as a workaround for weird quirks involving infobox format tags.

Use Template:X and Template:Check for binary values. Default is X.

Example:

{{InfoboxWeapons
|name=Angel Wings
|image=Angel_Wings.gif
|description=A powerful halo that only appears when the player stops moving.
|damage=30
|knockback=4
|cooldown=45
|code=if moving = false {

 for (var i = 0; i < version; i += 1)&#10;
 {&#10;
  e = instance_nth_nearest(obj_enemy,i+1);&#10;
  h = inst_create(e.x,e.y,obj_wep_justice);&#10;
  h.spd = 0;&#10;
  h.dmg = 30;&#10;
  h.knockback = 4;&#10;
 }&#10;
 countdown_awing = 45;&#10;
}&#10;
|affectbycooldown={{Check|size=12px}}
}}