Template:Tracker sprite status

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
m
m (reverted, there was no need for the aditional functionalty)
Line 1: Line 1:
<!--
+
<includeonly><table style="background:transparent; width:100%; text-align: center;"><tr>
 
+
--- Whatever you type table --- -->
+
<includeonly>{{#ifeq: {{{1|}}}|label|<table style="background:transparent; width:100%;"><tr>
+
<td>z0: {{#If: {{{z0|}}}|{{{z0}}}|UnClaimed}}</td>
+
<td>z1: {{#If: {{{z1|}}}|{{{z1}}}|UnClaimed}}</td>
+
<td>z2: {{#If: {{{z2|}}}|{{{z2}}}|UnClaimed}}</td>
+
</tr></table>|<!--
+
 
+
 
+
--- z0,z1,z2 Color table Index, probably will be better in rows than columns ---      -->
+
{{#ifeq: {{{1|}}}|index|<table style="background:transparent; width:300px; text-align: center;"><tr>
+
<td style="background:#FFEE88;">WIP</td>
+
<td style="background:#006600;">Done</td>
+
<td style="background:#888888;">UnClaimed</td>
+
</tr></table>|<!--
+
 
+
 
+
--- z0,z1,z2 Color table--- -->
+
<table style="background:transparent; width:100%; text-align: center;"><tr>
+
 
<td style="background:{{#switch: {{{z0|}}}
 
<td style="background:{{#switch: {{{z0|}}}
 
| wip      =#FFEE88;
 
| wip      =#FFEE88;
Line 34: Line 15:
 
| #default =#888888;
 
| #default =#888888;
 
}}">z2</td>
 
}}">z2</td>
</tr></table>}}}}</includeonly><noinclude>
+
</tr></table></includeonly><noinclude>
  
 
==Usage==
 
==Usage==
Line 43: Line 24:
 
|z1 = Status
 
|z1 = Status
 
|z2 = Status
 
|z2 = Status
}}</pre>
+
}}
 +
 
 
OR
 
OR
<pre>{{Tracker sprite status| z0 = Status | z1 = Status | z2 = Status }}</pre>
 
  
When 'status' can be one of those: '''wip''', '''done''' or '''unclaimed'''  
+
{{Tracker sprite status| z0 = Status | z1 = Status | z2 = Status }}
 +
</pre>
 +
When status can either: '''wip''','''done''' or '''unclaimed'''
  
 +
 +
{| width=200|
 +
|
 
{{Tracker sprite status
 
{{Tracker sprite status
 
|z0 = unclaimed
 
|z0 = unclaimed
Line 54: Line 40:
 
|z2 = done
 
|z2 = done
 
}}
 
}}
 +
|}
  
and typing <code>&#123;&#123;Tracker sprite status|index&#125;&#125;</code> will produce a static index table, example:
 
{{Tracker sprite status|index}}
 
 
 
another option is a labeled table, works the same with only the added '''label'''
 
 
<pre>{{Tracker sprite status|label
 
|z0 = unclaimed
 
|z1 = wip
 
|z2 = done
 
}}</pre>
 
OR
 
<pre>{{Tracker sprite status| z0 = Status | z1 = Status | z2 = Status }}</pre>
 
 
When 'status' can be one of those: '''wip''', '''done''' or '''unclaimed'''
 
 
{{Tracker sprite status|label
 
|z0 = unclaimed
 
|z1 = wip
 
|z2 = done
 
}}
 
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 06:10, 6 February 2010


Usage

Type inside a table cell:

{{Tracker sprite status
|z0 = Status
|z1 = Status
|z2 = Status
}}

OR

{{Tracker sprite status| z0 = Status | z1 = Status | z2 = Status }}

When status can either: wip,done or unclaimed


z0 z1 z2
Personal tools