×
Create a new article
Write your page title here:
We currently have 2,649 articles on Yume Nikki Fangames Wiki. Type your article name above or click on one of the titles below and start writing!



Yume Nikki Fangames Wiki

Template:ReleaseDate: Difference between revisions

No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Sets the release date of a game. For use with [[Template:Gamebox]].
Sets the release date of a game. For use with [[Template:Gamebox]]. Adds a category pointing to the year the game is released, if a date is given, or adds [[:Category:Unknown Release Date]] if none is given.
{{ReleaseDate|2012-1-2 (foo);January 1, 2013 (bar)}}
{{ReleaseDate|2012-1-2}}
{{ReleaseDate|2012-01-02}}
{{ReleaseDate|TBA}}
{{ReleaseDate|Abandoned}}
{{ReleaseDate|N/A}}
</noinclude>
</noinclude>
{{#if:{{{1|}}}|[[Category:Released in {{#time:Y|{{{1}}}}}]]{{#set:Has release date={{{1}}}}}{{Date|{{{1}}}}}|{{#ifeq:{{NAMESPACE}}|0|[[Category:Unknown Release Date]]|}}[[:Category:Unknown Release Date|Unknown]]}}
{{#if:{{{1|}}}|
    {{#if:{{#pos:{{{1|}}}|;}}|
        {{#arraymap:{{{1}}}|;|entry|{{#set:Has release dates={{#sub:entry|0|{{#pos:entry|(}} }};{{#sub:entry|{{#expr: {{#pos:entry|(}} + 1}}| {{#expr: {{#expr: {{#rpos:entry|)}} - 1 }} - {{#pos:entry|(}} }} }} }} {{Date|{{#sub:entry|0|{{#pos:entry|(}} }}}} ({{#sub:entry|{{#expr: {{#pos:entry|(}} + 1}}| {{#expr: {{#expr: {{#rpos:entry|)}} - 1 }} - {{#pos:entry|(}} }} }})  |
            <br>
        }}|
        {{#switch:{{{1}}}
        |TBA=[[:Category:Work In Progress Fangames|TBA]]
        |Abandoned=[[:Category:Abandoned/Unreleased Fangames|Abandoned]]
        |N/A={{{1}}}
        |#default={{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Released in {{#time:Y|{{{1}}}}}]]|}}{{#set:Has release date={{{1}}}}}{{Date|{{{1}}}}}
        }}
    }}
    |{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Unknown Release Date]]|}}[[:Category:Unknown Release Date|Unknown]]
}}

Latest revision as of 07:54, 31 August 2023

Sets the release date of a game. For use with Template:Gamebox. Adds a category pointing to the year the game is released, if a date is given, or adds Category:Unknown Release Date if none is given.

January 2, 2012 (foo)
January 1, 2013 (bar)

January 2, 2012

January 2, 2012

TBA

Abandoned

N/A

Unknown