Template:NIWA News Release: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (Removed protection from "Template:NIWA News Release")
mNo edit summary
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{|</noinclude>{{#ifexpr:({{#time:U|{{{month|January}}} {{{day|1}}} {{#if:{{{year|}}}|{{{year}}}}}}}-{{#time:U}})/60/60/24 <= 60*{{{importance|1.0}}} and ({{#time:U|{{{month|January}}} {{{day|1}}} {{#if:{{{year|}}}|{{{year}}}}}}}-{{#time:U}})/60/60/24 >= -7*{{{importance|1.0}}}|
<noinclude>{|</noinclude>{{#ifexpr:({{#time:U|{{{month|January}}} {{{day|1}}} {{#if:{{{year|}}}|{{{year}}}}}}}-{{#time:U}})/60/60/24 <= 60*{{{importance|1.0}}} and ({{#time:U|{{{month|January}}} {{{day|1}}} {{#if:{{{year|}}}|{{{year}}}}}}}-{{#time:U}})/60/60/24 >= -7*{{{importance|1.0}}}|
{{!}}style="background:#{{{bgcol|{{InterwikiColour|-|bg}}}}};border:2px solid #{{{bordercol|{{InterwikiColour|-}}}}};"{{!}}[[File:{{{image|SpecialStagesSymbol.png}}}|30px|link={{{imagelink|}}}]]
{{!}}style="background:#{{{bgcol|{{InterwikiColour|-|bg}}}}};border:2px solid #{{{bordercol|{{InterwikiColour|-}}}}};"{{!}}[[File:{{{image|SpecialStagesSymbol.png}}}|30px|center|link={{{imagelink|}}}|class=invert-dark]]
{{!}}{{{month|January}}} {{{day|1}}}&nbsp;
{{!}}{{{month|January}}} {{{day|1}}}&nbsp;
{{!}}''[[{{{interwiki}}}:{{{game}}}|{{{alt|{{{game}}}}}}]]''{{#if:{{{flag|}}}|&nbsp;{{flag|{{{flag|Japan}}}}}}}}}<noinclude>
{{!}}''[[{{{interwiki}}}:{{{game}}}|{{{alt|{{{game}}}}}}]]'' {{{append|}}}{{#if:{{{flag|}}}|&nbsp;{{flag|{{{flag|Japan}}}}}}}}}<noinclude>
|}
|}



Latest revision as of 09:26, October 18, 2024

This template is for {{NIWA News}}. It allows us to add games to the template in advance and automatically shows them as they approach (two months in advance), then hides them again once they pass (after a week) so we can remove them.