Template:Callback: Difference between revisions

From GRFSpecs
Jump to navigation Jump to search
Content deleted Content added
better usage
shuffle examples
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
|'''Features'''||{{{features}}}
|'''Features'''||{{{features}}}
|-
|-
{{#if: {{{purchase}}} |
|'''Purchase list'''||{{{purchase|-}}}
|-
{{!}}'''Purchase list'''{{!!}}{{{purchase}}}
{{!}}-
}}
|'''Variable 10'''||{{{var10|undefined}}}
|'''Variable 10'''||{{{var10|undefined}}}
|-
|-
Line 19: Line 17:
<noinclude>
<noinclude>
==Usage==
==Usage==
===Example 1===
<pre>
{{Callback
|features=vehicles
|purchase=not called
|result=capacity (not subject to any further multipliers)
|failure=use callback 36 resp. properties
}}
</pre>
{{Callback
|features=vehicles
|purchase=not called
|result=capacity (not subject to any further multipliers)
|failure=use callback 36 resp. properties
}}

===Example 2: Additional lines===
<pre>
<pre>
{{Callback
{{Callback
|features=houses (1B), industy tiles (25)
|features=houses (1B), industy tiles (25)
|result=
|result=
Format: <tt>SSAA</tt>
SSAA
*SS: sound effect
*<tt>SS</tt>: sound effect
*AA: animation stage
*<tt>AA</tt>: animation stage
|failure=stay in current frame
|failure=stay in current frame
|other=
|other=
Line 37: Line 52:
|features=houses (1B), industy tiles (25)
|features=houses (1B), industy tiles (25)
|result=
|result=
Format: <tt>SSAA</tt>
SSAA
*SS: sound effect
*<tt>SS</tt>: sound effect
*AA: animation stage
*<tt>AA</tt>: animation stage
|failure=stay in current frame
|failure=stay in current frame
|other=
|other=
Line 46: Line 61:
{{!}}-
{{!}}-
{{!}}'''Variable 101 - 105'''{{!!}}text stack
{{!}}'''Variable 101 - 105'''{{!!}}text stack
}}

<pre>
{{Callback
|features=vehicles
|purchase=not called
|result=capacity (not subject to any further multipliers)
|failure=use callback 36 resp. properties
}}
</pre>
{{Callback
|features=vehicles
|purchase=not called
|result=capacity (not subject to any further multipliers)
|failure=use callback 36 resp. properties
}}
}}



Latest revision as of 20:48, 16 June 2011


Usage

Example 1

{{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


Example 2: Additional lines

{{Callback
|features=houses (1B), industy tiles (25)
|result=
Format: <tt>SSAA</tt>
*<tt>SS</tt>: sound effect
*<tt>AA</tt>: 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 Format: SSAA
  • SS: sound effect
  • AA: animation stage
Fail result means stay in current frame
Variable 100 additional result
Variable 101 - 105 text stack