Template:BTD6 update info: Difference between revisions

Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
i think this now supports every possible release date timestamp
Line 6: Line 6:
<tr><td>[[File:{{{image}}}|250px]]</td></tr>
<tr><td>[[File:{{{image}}}|250px]]</td></tr>
</table>}}
</table>}}
|-
|
<table class="subtable">
<table class="subtable">
{{#if:{{{build|}}}|<tr><th>Build №</th><td colspan="2">{{{build}}}</td></tr>}}<!--
{{#if:{{{build|}}}|<tr><th>Build №</th><td colspan="2">{{{build}}}</td></tr>}}<!--
-->{{#if:{{{app store date|}}}{{{google play date|}}}{{{amazon appstore date|}}}{{{steam date|}}}{{{microsoft store date|}}}{{{apple arcade date|}}}{{{netflix date|}}}{{{epic games store date|}}}{{{epic games store mobile date|}}}|<tr><th colspan="3">Release dates</th></tr>}}<!--
-->{{#if:{{{app store date|}}}{{{google play date|}}}{{{amazon appstore date|}}}{{{steam windows date|{{{steam date|}}}}}}{{{steam macos date|}}}{{{microsoft store date|}}}{{{epic games store date|}}}{{{epic games store mobile date|}}}<!--
-->{{{apple arcade ios date|{{{apple arcade date|}}}}}}{{{apple arcade macos date|}}}{{{apple arcade visionos date|}}}<!--
-->{{{netflix app store date|{{{netflix date|}}}}}}{{{netflix google play date|}}}<!--
-->{{{xd app store date|}}}{{{xd taptap date|}}}|<!--
--><tr><th colspan="3">Release dates</th></tr>}}<!--
-->{{#if:{{{app store date|}}}|<tr><th>App Store</th><td colspan="2">{{{app store date}}}</td></tr>}}<!--
-->{{#if:{{{app store date|}}}|<tr><th>App Store</th><td colspan="2">{{{app store date}}}</td></tr>}}<!--
-->{{#if:{{{google play date|}}}|<tr><th>Google Play</th><td colspan="2">{{{google play date}}}</td></tr>}}<!--
-->{{#if:{{{google play date|}}}|<tr><th>Google Play</th><td colspan="2">{{{google play date}}}</td></tr>}}<!--
-->{{#if:{{{amazon appstore date|}}}|<tr><th>Amazon Appstore</th><td colspan="2">{{{amazon appstore date}}}</td></tr>}}<!--
-->{{#if:{{{amazon appstore date|}}}|<tr><th>Amazon Appstore</th><td colspan="2">{{{amazon appstore date}}}</td></tr>}}<!--
-->{{#if:{{{steam date|}}}|<tr><th>Steam</th><td colspan="2">{{{steam date}}}</td></tr>}}<!--
 
-->{{#if:{{{steam date|}}}|<tr><th>Steam</th><td colspan="2">{{{steam date}}}</td></tr>}}<!-- DEPRECATED
-->{{#if:{{{steam windows date|}}}|<tr><th>Steam (Windows)</th><td colspan="2">{{{steam windows date}}}</td></tr>}}<!--
-->{{#if:{{{steam macos date|}}}|<tr><th>Steam (macOS)</th><td colspan="2">{{{steam macos date}}}</td></tr>}}<!--
 
-->{{#if:{{{microsoft store date|}}}|<tr><th>Microsoft Store</th><td colspan="2">{{{microsoft store date}}}</td></tr>}}<!--
-->{{#if:{{{microsoft store date|}}}|<tr><th>Microsoft Store</th><td colspan="2">{{{microsoft store date}}}</td></tr>}}<!--
-->{{#if:{{{apple arcade date|}}}|<tr><th>[[Bloons TD 6+|Apple Arcade]]</th><td colspan="2">{{{apple arcade date}}}</td></tr>}}<!--
-->{{#if:{{{epic games store date|}}}|<tr><th>Epic Games Store (Windows)</th><td colspan="2">{{{epic games store date}}}</td></tr>}}<!--
-->{{#if:{{{netflix date|}}}|<tr><th>[[Bloons TD 6 NETFLIX|Netflix]]</th><td colspan="2">{{{netflix date}}}</td></tr>}}<!--
-->{{#if:{{{epic games store mobile date|}}}|<tr><th>Epic Games Store (mobile)</th><td colspan="2">{{{epic games store mobile date}}}</td></tr>}}<!--
-->{{#if:{{{epic games store date|}}}|<tr><th>Epic Games Store (PC)</th><td colspan="2">{{{epic games store date}}}</td></tr>}}<!--
 
-->{{#if:{{{epic games store mobile date|}}}|<tr><th>Epic Games Store (mobile)</th><td colspan="2">{{{epic games store mobile date}}}</td></tr>}}
-->{{#if:{{{apple arcade date|}}}|<tr><th>[[Bloons TD 6+|Apple Arcade]]</th><td colspan="2">{{{apple arcade date}}}</td></tr>}}<!-- DEPRECATED
-->{{#if:{{{apple arcade ios date|}}}|<tr><th>[[Bloons TD 6+|Apple Arcade]] (iOS)</th><td colspan="2">{{{apple arcade ios date}}}</td></tr>}}<!--
-->{{#if:{{{apple arcade macos date|}}}|<tr><th>[[Bloons TD 6+|Apple Arcade]] (macOS)</th><td colspan="2">{{{apple arcade macos date}}}</td></tr>}}<!--
-->{{#if:{{{apple arcade visionos date|}}}|<tr><th>[[Bloons TD 6+|Apple Arcade]] (visionOS)</th><td colspan="2">{{{apple arcade visionos date}}}</td></tr>}}<!--
 
-->{{#if:{{{netflix date|}}}|<tr><th>[[Bloons TD 6 NETFLIX|Netflix]]</th><td colspan="2">{{{netflix date}}}</td></tr>}}<!-- DEPRECATED
-->{{#if:{{{netflix app store date|}}}|<tr><th>[[Bloons TD 6 NETFLIX|Netflix]] (iOS)</th><td colspan="2">{{{netflix app store date}}}</td></tr>}}<!--
-->{{#if:{{{netflix google play date|}}}|<tr><th>[[Bloons TD 6 NETFLIX|Netflix]] (Android)</th><td colspan="2">{{{netflix google play date}}}</td></tr>}}<!--
 
-->{{#if:{{{xd app store date|}}}|<tr><th>[[Bloons TD 6 (Chinese)|Chinese]] (App Store)</th><td colspan="2">{{{xd app store date}}}</td></tr>}}<!--
-->{{#if:{{{xd taptap date|}}}|<tr><th>[[Bloons TD 6 (Chinese)|Chinese]] (TapTap)</th><td colspan="2">{{{xd taptap date}}}</td></tr>}}
</table>
</table>
|-
|-
Line 26: Line 42:
|version    ={{{version|}}}
|version    ={{{version|}}}
|version_code={{#invoke:pad version|main|{{{version|}}}}}
|version_code={{#invoke:pad version|main|{{{version|}}}}}
|build_number={{{build|}}}
|image      ={{{image|}}}
|image      ={{{image|}}}
|description ={{{description|}}}
|description ={{{description|}}}


|app_store_date={{#invoke:unstrip|kill_markers|{{{app store date|}}}}}
|app_store_date             ={{#invoke:unstrip|kill_markers|{{{app store date|}}}}}
|google_play_date={{#invoke:unstrip|kill_markers|{{{google play date|}}}}}
|google_play_date           ={{#invoke:unstrip|kill_markers|{{{google play date|}}}}}
|amazon_appstore_date={{#invoke:unstrip|kill_markers|{{{amazon appstore date|}}}}}
|amazon_appstore_date       ={{#invoke:unstrip|kill_markers|{{{amazon appstore date|}}}}}
|steam_date={{#invoke:unstrip|kill_markers|{{{steam date|}}}}}
|steam_windows_date          ={{#invoke:unstrip|kill_markers|{{{steam windows date|{{{steam date|}}}}}}}}
|microsoft_store_date={{#invoke:unstrip|kill_markers|{{{microsoft store date|}}}}}
|steam_macos_date            ={{#invoke:unstrip|kill_markers|{{{steam macos date|}}}}}
|apple_arcade_date={{#invoke:unstrip|kill_markers|{{{apple arcade date|}}}}}
|microsoft_store_date        ={{#invoke:unstrip|kill_markers|{{{microsoft store date|}}}}}
|netflix_date={{#invoke:unstrip|kill_markers|{{{netflix date|}}}}}
|epic_games_store_date       ={{#invoke:unstrip|kill_markers|{{{epic games store date|}}}}}
|epic_games_store_date={{#invoke:unstrip|kill_markers|{{{epic games store date|}}}}}
|epic_games_store_mobile_date={{#invoke:unstrip|kill_markers|{{{epic games store mobile date|}}}}}
|epic_games_store_mobile_date={{#invoke:unstrip|kill_markers|{{{epic games store mobile date|}}}}}
|xd_taptap_date={{#invoke:unstrip|kill_markers|{{{xd taptap date|}}}}}
 
|apple_arcade_ios_date    ={{#invoke:unstrip|kill_markers|{{{apple arcade ios date|{{{apple arcade date|}}}}}}}}
|apple_arcade_macos_date  ={{#invoke:unstrip|kill_markers|{{{apple arcade date|}}}}}
|apple_arcade_visionos_date={{#invoke:unstrip|kill_markers|{{{apple arcade date|}}}}}
 
|netflix_app_store_date  ={{#invoke:unstrip|kill_markers|{{{netflix app store date|{{{netflix date|}}}}}}}}
|netflix_google_play_date={{#invoke:unstrip|kill_markers|{{{netflix google play date|}}}}}
 
|xbox_one_date={{#invoke:unstrip|kill_markers|{{{xbox one date|}}}}}
|ps4_date    ={{#invoke:unstrip|kill_markers|{{{ps4 date|}}}}}
|switch_date  ={{#invoke:unstrip|kill_markers|{{{switch date|}}}}}
 
|xd_app_store_date={{#invoke:unstrip|kill_markers|{{{xd app store date|}}}}}
|xd_app_store_date={{#invoke:unstrip|kill_markers|{{{xd app store date|}}}}}
|build_number={{{build|}}}
|xd_taptap_date  ={{#invoke:unstrip|kill_markers|{{{xd taptap date|}}}}}
}}[[Category:BTD6 updates|{{#ifexpr:{{{version}}}<10|0}}{{{version}}}]]}}{{#seo:
}}[[Category:BTD6 updates|{{#ifexpr:{{{version}}}<10|0}}{{{version}}}]]}}{{#seo:
|image={{{image|}}}
|image={{{image|}}}
Line 47: Line 75:
|version    =String
|version    =String
|version_code=String
|version_code=String
|image       =File
|build_number=Integer
|description =Wikitext
 
|image     =File
|description=Wikitext


|app_store_date=Wikitext string
|app_store_date             =Wikitext string
|google_play_date=Wikitext string
|google_play_date           =Wikitext string
|amazon_appstore_date=Wikitext string
|amazon_appstore_date       =Wikitext string
|steam_date=Wikitext string
|steam_windows_date          =Wikitext string
|microsoft_store_date=Wikitext string
|steam_macos_date            =Wikitext string
|apple_arcade_date=Wikitext string
|microsoft_store_date        =Wikitext string
|netflix_date=Wikitext string
|epic_games_store_date       =Wikitext string
|epic_games_store_date=Wikitext string
|epic_games_store_mobile_date=Wikitext string
|epic_games_store_mobile_date=Wikitext string
|xd_taptap_date=Wikitext string
 
|apple_arcade_ios_date    =Wikitext string
|apple_arcade_macos_date  =Wikitext string
|apple_arcade_visionos_date=Wikitext string
 
|netflix_app_store_date  =Wikitext string
|netflix_google_play_date=Wikitext string
 
|xbox_one_date=Wikitext string
|ps4_date    =Wikitext string
|switch_date  =Wikitext string
 
|xd_app_store_date=Wikitext string
|xd_app_store_date=Wikitext string
|build_number=Integer
|xd_taptap_date  =Wikitext string
}}{{/doc}}</noinclude>
}}{{/doc}}</noinclude>