Difference between revisions of "Template:Callback"
From GRFSpecs
Jump to navigationJump to search (first try for callback summary template) |
(shuffle examples) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
|'''Features'''||{{{features}}} |
|'''Features'''||{{{features}}} |
||
|- |
|- |
||
| − | + | |'''Purchase list'''||{{{purchase|-}}} |
|
| + | |- |
||
| − | {{!}}'''Purchase list'''{{!!}}{{{purchase}}} |
||
| − | {{!}}-}} |
||
|'''Variable 10'''||{{{var10|undefined}}} |
|'''Variable 10'''||{{{var10|undefined}}} |
||
|- |
|- |
||
| Line 18: | Line 17: | ||
<noinclude> |
<noinclude> |
||
==Usage== |
==Usage== |
||
| + | ===Example 1=== |
||
<pre> |
<pre> |
||
{{Callback |
{{Callback |
||
| − | |features= |
+ | |features=vehicles |
|purchase=not called |
|purchase=not called |
||
| + | |result=capacity (not subject to any further multipliers) |
||
| + | |failure=use callback 36 resp. properties |
||
| + | }} |
||
| + | </pre> |
||
| + | {{Callback |
||
| + | |features=vehicles |
||
| ⚫ | |||
| + | |result=capacity (not subject to any further multipliers) |
||
| + | |failure=use callback 36 resp. properties |
||
| + | }} |
||
| + | |||
| + | ===Example 2: Additional lines=== |
||
| + | <pre> |
||
| + | {{Callback |
||
| + | |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= |
||
{{!}}- |
{{!}}- |
||
| − | {{!}}Variable 100{{!!}}additional result |
+ | {{!}}'''Variable 100'''{{!!}}additional result |
{{!}}- |
{{!}}- |
||
| − | {{!}}Variable 101-105{{!!}}text stack |
+ | {{!}}'''Variable 101 - 105'''{{!!}}text stack |
}} |
}} |
||
</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= |
||
{{!}}- |
{{!}}- |
||
| − | {{!}}Variable 100{{!!}}additional result |
+ | {{!}}'''Variable 100'''{{!!}}additional result |
{{!}}- |
{{!}}- |
||
| − | {{!}}Variable 101-105{{!!}}text stack |
+ | {{!}}'''Variable 101 - 105'''{{!!}}text stack |
}} |
}} |
||
| + | |||
</noinclude> |
</noinclude> |
||
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
|
| Fail result means | stay in current frame |
| Variable 100 | additional result |
| Variable 101 - 105 | text stack |