Difference between revisions of "Template:Callback"

From GRFSpecs
Jump to navigationJump to search
(better usage)
(fix the if)
Line 6: Line 6:
 
{{!}}'''Purchase list'''{{!!}}{{{purchase}}}
 
{{!}}'''Purchase list'''{{!!}}{{{purchase}}}
 
{{!}}-
 
{{!}}-
}}
+
| }}
 
|'''Variable 10'''||{{{var10|undefined}}}
 
|'''Variable 10'''||{{{var10|undefined}}}
 
|-
 
|-
Line 19: Line 19:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
  +
===Example 1: Additional lines===
 
<pre>
 
<pre>
 
{{Callback
 
{{Callback
Line 48: Line 49:
 
}}
 
}}
   
  +
===Example 2: Purchase list field===
 
<pre>
 
<pre>
 
{{Callback
 
{{Callback

Revision as of 20:39, 16 June 2011


Usage

Example 1: Additional lines

{{Callback
|features=houses (1B), industy tiles (25)
|result=
 SSAA
*SS: sound effect
*AA: animation stage
|failure=stay in current frame
|other=
{{!}}-
{{!}}'''Variable 100'''{{!!}}additional result
{{!}}-
{{!}}'''Variable 101 - 105'''{{!!}}text stack
}}
Features houses (1B), industy tiles (25)
Purchase list {{{purchase}}}
Variable 10 undefined
Variable 18 undefined
Result SSAA
  • SS: sound effect
  • AA: animation stage
Fail result means stay in current frame
Variable 100 additional result
Variable 101 - 105 text stack


Example 2: Purchase list field

{{Callback
|features=vehicles
|purchase=not called
|result=capacity (not subject to any further multipliers)
|failure=use callback 36 resp. properties
}}
Features vehicles
Purchase list not called
Variable 10 undefined
Variable 18 undefined
Result capacity (not subject to any further multipliers)
Fail result means use callback 36 resp. properties