Difference between revisions of "Template:Version²"

From Industrial-Craft-Wiki
Jump to: navigation, search
m (Added 1.11 and 1.12 versions)
(Hopefully handle errors better)
Line 1: Line 1:
{{#get_web_data:
+
{{#vardefine:version|{{#iferror:{{#get_web_data:
 
url=http://jenkins.ic2.player.to/job/IC2_experimental/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
url=http://jenkins.ic2.player.to/job/IC2_experimental/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
|format=XML
 
|format=XML
|data=version=number}}{{#get_web_data:
+
|data=version=number}}|828|{{#external_value:version}}}}}}{{#vardefine:18version|{{#iferror:{{#get_web_data:
 
url=http://jenkins.ic2.player.to/job/IC2_18/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
url=http://jenkins.ic2.player.to/job/IC2_18/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
|format=XML
 
|format=XML
|data=18version=number}}{{#get_web_data:
+
|data=18version=number}}|263|{{#external_value:18version}}}}}}{{#vardefine:19version|{{#iferror:{{#get_web_data:
 
url=http://jenkins.ic2.player.to/job/IC2_19/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
url=http://jenkins.ic2.player.to/job/IC2_19/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
|format=XML
 
|format=XML
|data=19version=number}}{{#get_web_data:
+
|data=19version=number}}|63|{{#external_value:19version}}}}}}{{#vardefine:110version|{{#iferror:{{#get_web_data:
 
url=http://jenkins.ic2.player.to/job/IC2_110/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
url=http://jenkins.ic2.player.to/job/IC2_110/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
|format=XML
 
|format=XML
|data=110version=number}}{{#get_web_data:
+
|data=110version=number}}|252|{{#external_value:110version}}}}}}{{#vardefine:111version|{{#iferror:{{#get_web_data:
 
url=http://jenkins.ic2.player.to/job/IC2_111/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
url=http://jenkins.ic2.player.to/job/IC2_111/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
|format=XML
 
|format=XML
|data=111version=number}}{{#get_web_data:
+
|data=111version=number}}|81|{{#external_value:111version}}}}}}{{#vardefine:latestversion|{{#iferror:{{#get_web_data:
 
url=http://jenkins.ic2.player.to/job/IC2_112/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
url=http://jenkins.ic2.player.to/job/IC2_112/api/xml?wrapper=changes&exclude=//description&exclude=//displayname&exclude=//name&exclude=//action&exclude=//artifact&exclude=//building&exclude=//duration&exclude=//estimatedDuration&exclude=//fullDisplayName&exclude=//id&exclude=//keepLog&exclude=//result&exclude=//timestamp&exclude=//builtOn&exclude=//changeSet//item//affectedPath&exclude=//changeSet//item//commitId&exclude=//changeSet//item//author//absoluteUrl&exclude=//changeSet//item//msg&exclude=//changeSet//item//date&exclude=//changeSet//item//path&exclude=//culprit&exclude=//changeSet//kind&exclude=//url
 
|format=XML
 
|format=XML
|data=latestversion=number}}{{#switch:{{{1|}}}
+
|data=latestversion=number}}|111|{{#external_value:latestversion}}}}}}{{#switch:{{{1|}}}
   |112=2.8.{{#iferror:{{#external_value:latestversion}}|11|{{#external_value:latestversion}}}}
+
   |112=2.8.{{#var:latestversion}}
   |111=2.7.{{#iferror:{{#external_value:111version}}|77|{{#external_value:111version}}}}
+
   |111=2.7.{{#var:111version}}
   |110=2.6.{{#iferror:{{#external_value:110version}}|249|{{#external_value:110version}}}}
+
   |110=2.6.{{#var:110version}}
   |19=2.5.{{#iferror:{{#external_value:19version}}|63|{{#external_value:19version}}}}
+
   |19=2.5.{{#var:19version}}
   |new=[[Category:Pages using Version²'s new]]2.3.{{#iferror:{{#external_value:18version}}|263|{{#external_value:18version}}}}
+
   |new=[[Category:Pages using Version²'s new]]2.3.{{#var:18version}}
   |18=2.3.{{#iferror:{{#external_value:18version}}|263|{{#external_value:18version}}}}
+
   |18=2.3.{{#var:18version}}
 
   |17
 
   |17
   |old=2.2.{{#iferror:{{#external_value:version}}|828|{{#external_value:version}}}}
+
   |old=2.2.{{#var:version}}
   |#default={{#iferror:{{#external_value:latestversion}}|''V2.8.11''|'''V2.8.{{#external_value:latestversion}}'''}}
+
  |16=2.0.397
 +
   |#default='''V2.8.{{#var:latestversion}}'''
 
}}<noinclude><br/>'''THIS IS THE IC² VERSION! FOR THE IC1 VERSION SEE {{Tl|Version}}.'''</noinclude>
 
}}<noinclude><br/>'''THIS IS THE IC² VERSION! FOR THE IC1 VERSION SEE {{Tl|Version}}.'''</noinclude>

Revision as of 21:26, 22 February 2019

V2.8.221
THIS IS THE IC² VERSION! FOR THE IC1 VERSION SEE {{Version}}.