Diferencia entre revisiones de «Plantilla:EffectSprite»
| Línea 1: | Línea 1: | ||
| − | <includeonly>{{# | + | <includeonly>{{Sprite |
| − | | | + | |pos={{#switch: {{{1|}}} |
| + | |speed | ||
| + | |swiftness=1 | ||
| + | |slow | ||
| + | |slowness=2 | ||
| + | |haste=3 | ||
| + | |fatigue | ||
| + | |mining-fatigue=4 | ||
| + | |strength=5 | ||
| + | |weakness=6 | ||
| + | |poison=7 | ||
| + | |regeneration=8 | ||
| + | |||
| + | |invisibility=17 | ||
| + | |hunger=18 | ||
| + | |jump | ||
| + | |jump-boost=19 | ||
| + | |nausea=20 | ||
| + | |nightvision | ||
| + | |night-vision=21 | ||
| + | |blindness=22 | ||
| + | |defense | ||
| + | |resistance=23 | ||
| + | |fireresistance | ||
| + | |fire-resistance=24 | ||
| + | |||
| + | |waterbreathing | ||
| + | |water-breathing=33 | ||
| + | |wither=34 | ||
| + | |healthboost=35 | ||
| + | |absorption=35 | ||
| + | |||
| + | |||
| + | |particle-speed | ||
| + | |particle-swiftness=9 | ||
| + | |particle-slow | ||
| + | |particle-slowness=10 | ||
| + | |particle-haste=11 | ||
| + | |particle-fatigue | ||
| + | |particle-mining-fatigue=12 | ||
| + | |particle-strength=13 | ||
| + | |particle-weakness=14 | ||
| + | |particle-poison=15 | ||
| + | |particle-regeneration=16 | ||
| + | |||
| + | |particle-invisibility=25 | ||
| + | |particle-hunger=26 | ||
| + | |particle-jump | ||
| + | |particle-jump-boost=27 | ||
| + | |particle-nausea=28 | ||
| + | |particle-nightvision | ||
| + | |particle-night-vision=29 | ||
| + | |particle-blindness=30 | ||
| + | |particle-defense | ||
| + | |particle-resistance=31 | ||
| + | |particle-fireresistance | ||
| + | |particle-fire-resistance=32 | ||
| + | |||
| + | |particle-waterbreathing | ||
| + | |particle-water-breathing=41 | ||
| + | |particle-wither | ||
| + | |particle-wither=42 | ||
| + | |||
| + | |particle-health | ||
| + | |particle-healing=254 | ||
| + | |particle-harm | ||
| + | |particle-damage=255 | ||
| + | |particle-healthboost=43 | ||
| + | |particle-absorption=44 | ||
| + | |#default={{#if:{{#ifexpr:{{{1}}}}}|256|{{{1}}}}} | ||
| + | }} | ||
| + | |image=EffectsCSS.png | ||
| + | |size=18 | ||
| + | |sheetsize=288 | ||
| + | |align=text-top | ||
| + | |link={{{link|}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{/doc}} | {{/doc}} | ||
| − | |||
| − | |||
| − | |||
Revisión del 16:09 9 jul 2014
| Esta plantilla usa Módulo:Sprite, un script escrito en el lenguaje de programación Lua. Por favor lea mw:Lua y mw:Extension:Scribunto para saber más del lenguaje Lua. |
Esta plantilla muestra el sprite del efecto de poción/comida/faro de la siguiente hoja de sprites:
Parametros
| Nombre | Uso |
|---|---|
{{{1}}}
|
Establece el sprite. Los espacios dentro de este parámetro se reemplazan con guiones y las letras se hacen minúsculas. El valor puede ser un nombre o un número, aunque se prefieren nombres |
{{{link}}}
|
Establece el vínculo para el sprite y el texto opcional. Si no se define o se establece con none, no se añade ningún vínculoSoporta tanto enlaces internos como externos |
{{{text}}}
|
Si se establece, el valor se muestra como texto tras el sprite. |
Ejemplos
| Código | Resultado |
|---|---|
{{EffectSprite|slow}} |
|
{{EffectSprite|hunger}} |
|
{{EffectSprite|1}} |
Lista completa
Aquí esta la lista completa de efectos:
{{#widget:stylesheet|page=Sprite doc}}speedswiftnessvelocidadslowslownesslentitudhasteprisafatiguemining-fatiguefatigafatiga-de-picarfatiga-de-minarstrengthfuerzaweaknessdebilidadpoisonvenenoregenerationregeneracióninvisibilityinvisibilidadhungerhambrejumpjump-boostsaltosalto-elevadoincremento-de-saltonauseamareonightvisionnight-visionvisión-nocturnablindnesscegueradefenseresistanceresistenciaafireresistancefire-resistanceresistencia-al-fuegowaterbreathingwater-breathingrespiración-acuáticawitherrecuperaciónhealthboosthealth-boostabsorptionabsorciónold-absorptionantiguo-absorciónparticle-speedparticle-swiftnessparticle-slowparticle-slownessparticle-hasteparticle-fatigueparticle-mining-fatigueparticle-strengthparticle-weaknessparticle-poisonparticle-regenerationparticle-invisibilityparticle-hungerparticle-jumpparticle-jump-boostparticle-nauseaparticle-nightvisionparticle-night-visionparticle-blindnessparticle-defenseparticle-resistanceparticle-fireresistanceparticle-fire-resistanceparticle-waterbreathingparticle-water-breathingparticle-witherparticle-witherparticle-healthparticle-healingparticle-harmparticle-damageparticle-healthboostparticle-absorptionparticle-saturation
Véase también
- {{EffectLink}}
- {{BlockSprite}}
- {{EnvSprite}}
- {{ItemSprite}}
- {{MobSprite}}

