Difference between revisions of "Template:Armor"

From Minetest Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}
+
<includeonly>
 +
{{ #vardefine: i | {{{1}}} }}
 +
 
 +
{{
 +
  #while:
 +
  | {{ #ifexpr: {{ #var: i }} < 15 | true }}
 +
  |<nowiki/>
 +
* test
 +
  {{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }}
 +
}}
 +
 
 +
{{Armor | 6.5}}
 +
 
 +
{{#switch: {{{1}}}
 
| 0  = [[File:Empty_armor.png]]
 
| 0  = [[File:Empty_armor.png]]
 
| 0.5 = [[File:Half_armor.png]]
 
| 0.5 = [[File:Half_armor.png]]
Line 19: Line 32:
 
| 6  = [[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]]
 
| 6  = [[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]]
 
| 6.0 = [[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]]
 
| 6.0 = [[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]]
| 6.5 = {{for loop||Armor.png|Armor.png|Armor.png|Armor.png|Armor.png|call=Insert_image}}
 
 
| 7  = [[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]]
 
| 7  = [[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]]
 
| 7.0 = [[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]]
 
| 7.0 = [[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]][[File:Armor.png]]

Revision as of 19:01, 13 August 2014


Examples

source output
{{Armor | 6.5}}

{{ #vardefine: i | 6.5 }}

{{

 #while:
Expression error: Unrecognized punctuation character "{".
  • test
 {{ #vardefine: i | Expression error: Unrecognized punctuation character "{". }}

}}

Template loop detected: Template:Armor

Armor.png