Difference between revisions of "DatePrice"

From Sega Retro

(ooh that's interesting)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div>{{#if:{{{1|}}}|{{flag|{{{1}}}|border=silver}} {{{1}}}: {{price|{{{2|}}}|region={{{1}}}|date={{{3|}}}}}}} ({{{3|}}}){{{ref|}}}</div></includeonly><noinclude>
+
<includeonly><div>{{#vardefine:date|{{#replace:{{{3|}}}|{{gte}}|}}}}{{#if:{{{1|}}}|{{#if:{{{nocountry|}}}||{{flag|{{{1}}}|border=silver|date={{#var:date}}}} {{{1}}}:<nowiki> </nowiki>}}{{price|{{{2|}}}|region={{{1}}}|date={{#var:date}}|packageprice={{{packageprice|}}}}}}} ({{{3|}}})</div></includeonly><noinclude>
  
 
Template make dates and prices look better in [[Template:AccessoryRelease]], [[Template:ConsoleRelease]] etc.  
 
Template make dates and prices look better in [[Template:AccessoryRelease]], [[Template:ConsoleRelease]] etc.  
  
<pre>{{DatePrice|UK|4.99|1998-01-02|ref=}}</pre>
+
<pre>{{DatePrice|UK|4.99|1998-01-02}}</pre>
 
{{DatePrice|UK|4.99|1998-01-02}}
 
{{DatePrice|UK|4.99|1998-01-02}}
 
{{DatePrice|FR|4.99|1998-01-02}}
 
{{DatePrice|FR|4.99|1998-01-02}}
 +
 +
{{DatePrice|ZA|100|1993}}
 +
{{DatePrice|ZA|100|1995}}
 +
 +
{{DatePrice|BA||{{gte}} 1994}}
 +
{{DatePrice|UK|4.99|1998-01-02|nocountry=yes}}
 +
 +
{{DatePrice|SA|1234|{{gte}} 1991-02-03}}
 
[[Category:Releases templates]]</noinclude>
 
[[Category:Releases templates]]</noinclude>

Latest revision as of 11:35, 27 January 2024


Template make dates and prices look better in Template:AccessoryRelease, Template:ConsoleRelease etc.

{{DatePrice|UK|4.99|1998-01-02}}
United Kingdom UK: £4.994.99 (1998-01-02)
France FR: 4.99F4.99 (1998-01-02)
South Africa ZA: R 100100 (1993)
South Africa ZA: R 100100 (1995)
Bosnia and Herzegovina BA: (≥ 1994)
£4.994.99 (1998-01-02)
Saudi Arabia SA: 1234‎﷼‎1234 (≥ 1991-02-03)