Actions

Template

Difference between revisions of "DatePrice"

From Sonic Retro

(added reference fields)
(Undo revision 363724 by BSonirachi (talk): wasn't needed after all)
 
Line 1: Line 1:
<includeonly><div>{{#vardefine:date|{{#replace:{{{3|}}}|{{gte}}|}}}}{{#if:{{{1|}}}|{{#if:{{{nocountry|}}}||{{flag|{{{1}}}|border=none|date={{#var:date}}}} {{{1}}}:<nowiki> </nowiki>}}{{price|{{{2|}}}|region={{{1}}}|date={{#var:date}}|packageprice={{{packageprice|}}}}}}}{{#if:{{{priceref|}}}|{{{priceref|}}}|}} ({{{3|}}}{{#if:{{{dateref|}}}|{{{dateref|}}}|}})</div></includeonly><noinclude>
+
<includeonly><div>{{#vardefine:date|{{#replace:{{{3|}}}|{{gte}}|}}}}{{#if:{{{1|}}}|{{#if:{{{nocountry|}}}||{{flag|{{{1}}}|border=none|date={{#var:date}}}} {{{1}}}:<nowiki> </nowiki>}}{{price|{{{2|}}}|region={{{1}}}|date={{#var:date}}|packageprice={{{packageprice|}}}}}}} ({{{3|}}})</div></includeonly><noinclude>
{{SegaRetroTemplate}}
+
 
 
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|priceref={{ref|https://www.sega.com/}}|dateref={{ref|https://www.sega.com/}}}}
+
<pre>{{DatePrice|UK|4.99|1998-01-02}}</pre>
{{DatePrice|FR|4.99|1998-01-02}}</pre>
+
{{DatePrice|UK|4.99|1998-01-02}}
{{DatePrice|UK|4.99|1998-01-02|priceref={{ref|https://www.sega.com/}}|dateref={{ref|https://www.sega.com/}}}}
 
 
{{DatePrice|FR|4.99|1998-01-02}}
 
{{DatePrice|FR|4.99|1998-01-02}}
  

Latest revision as of 14:51, 19 September 2023


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

{{DatePrice|UK|4.99|1998-01-02}}
Flag UK.svg UK: £4.994.99 (1998-01-02)
Flag FR.svg FR: 4.99F4.99 (1998-01-02)
Flag ZA.svg ZA: R 100100 (1993)
Flag ZA.svg ZA: R 100100 (1995)
Flag BA.svg BA: (≥ 1994)
£4.994.99 (1998-01-02)