Difference between revisions of "Template:Ottd"

From GRFSpecs
Jump to navigationJump to search
(Improve appearance of border)
(second optional argument for a detailed version / revision number)
Line 1: Line 1:
<includeonly><span style="padding: 1px;white-space:nowrap;background-color:lightblue; outline:1px solid {{#ifeq:{{{1|??}}}|no|red|black}}">{{#ifeq:{{{1|??}}}|no|[[File:Openttd_icon_crossed.png|Not supported by OpenTTD]]|[[File:Openttd_icon.png|Supported by OpenTTD]]'''{{{1|??}}}'''}}</span></includeonly><noinclude>
+
<includeonly><span style="padding: 1px;white-space:nowrap;background-color:lightblue; outline:1px solid {{#ifeq:{{{1|??}}}|no|red|black}}">{{#ifeq:{{{1|??}}}|no|[[File:Openttd_icon_crossed.png|Not supported by OpenTTD]]|[[File:Openttd_icon.png|Supported by OpenTTD {{{1|??}}}{{#ifeq:{{{2| }}}| | |({{{2|}}})}}]]'''{{{1|??}}}'''}}</span></includeonly><noinclude>
 
Template for a small icon indicating support by OpenTTD or not.
 
Template for a small icon indicating support by OpenTTD or not.
 
{| |-
 
{| |-
Line 14: Line 14:
 
| ⩾ 1.1 || <nowiki>{{ottd|1.1}}</nowiki> || {{ottd|1.1}}
 
| ⩾ 1.1 || <nowiki>{{ottd|1.1}}</nowiki> || {{ottd|1.1}}
 
|-
 
|-
| ⩾ 1.2 || <nowiki>{{ottd|1.2}}</nowiki> || {{ottd|1.2}}
+
| ⩾ 1.2 || <nowiki>{{ottd|1.2|r21432}}</nowiki> || {{ottd|1.2|r21432}}
 
|-
 
|-
 
|}
 
|}
Please only use version number of stable releases. You can put explicit revision numbers in the detailed description, but not in the icon. Also, never use the term "nightly", use the expected number of the next release for features which are not yet part of a stable release.
+
Please only use version number of stable releases. You can put explicit revision numbers optionally in the second argument. It will only show in the hoover text of the image though. Also, never use the term "nightly", use the expected number of the next release for features which are not yet part of a stable release.
   
 
Note, that NewGRF support before version 0.6 had misbehaviours in a general sense, which makes it hard to decide whether something was supported, or only worked in some cases. Thus we just do not document anything that might also have worked before 0.6.
 
Note, that NewGRF support before version 0.6 had misbehaviours in a general sense, which makes it hard to decide whether something was supported, or only worked in some cases. Thus we just do not document anything that might also have worked before 0.6.

Revision as of 10:59, 23 July 2011

Template for a small icon indicating support by OpenTTD or not.

No support {{ottd|no}} Not supported by OpenTTD
Support, version unknown {{ottd}} Supported by OpenTTD ????
⩾ 0.6 {{ottd|0.6}} Supported by OpenTTD 0.60.6
⩾ 0.7 {{ottd|0.7}} Supported by OpenTTD 0.70.7
⩾ 1.0 {{ottd|1.0}} Supported by OpenTTD 1.01.0
⩾ 1.1 {{ottd|1.1}} Supported by OpenTTD 1.11.1
⩾ 1.2 {{ottd|1.2|r21432}} Supported by OpenTTD 1.2(r21432)1.2

Please only use version number of stable releases. You can put explicit revision numbers optionally in the second argument. It will only show in the hoover text of the image though. Also, never use the term "nightly", use the expected number of the next release for features which are not yet part of a stable release.

Note, that NewGRF support before version 0.6 had misbehaviours in a general sense, which makes it hard to decide whether something was supported, or only worked in some cases. Thus we just do not document anything that might also have worked before 0.6.