Difference between revisions of "Template:Callback"

From GRFSpecs
Jump to navigationJump to search
(fix the if)
(no parser extention, so live without for now)
Line 3: Line 3:
 
|'''Features'''||{{{features}}}
 
|'''Features'''||{{{features}}}
 
|-
 
|-
{{#if: {{{purchase}}} |
+
|'''Purchase list'''||{{{purchase|-}}}
  +
|-
{{!}}'''Purchase list'''{{!!}}{{{purchase}}}
 
{{!}}-
 
| }}
 
 
|'''Variable 10'''||{{{var10|undefined}}}
 
|'''Variable 10'''||{{{var10|undefined}}}
 
|-
 
|-

Revision as of 20:44, 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 -
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