Difference between revisions of "Template:News/displayonly"

From PCGamingWiki, the wiki about fixing PC games
m (hide the date for subsequent news of the same day)
m (hide hidden date on home page)
Line 1: Line 1:
 
<includeonly>{{#vardefine: current date | {{#time:F j|{{{Date}}}}} }}<!--
 
<includeonly>{{#vardefine: current date | {{#time:F j|{{{Date}}}}} }}<!--
-->{{#ifeq: {{#var: current date }} | {{#var: previous date }} | <br><span style="color: #FFF">'''{{#var: current date }}'''</span> | {{#if: {{#var: previous date }} |</li>}}
+
-->{{#ifeq: {{#var: current date }} | {{#var: previous date }} | <br>{{#ifeq: {{PAGENAME}} | Home | {{{<span style="color: #FFF">'''{{#var: current date }}'''</span> }} | {{#if: {{#var: previous date }} |</li>}}
 
<li class="news_li {{#ifeq: {{{Pin}}} | true | news_icon_pin | news_icon_info }} plainlinks"><!--
 
<li class="news_li {{#ifeq: {{{Pin}}} | true | news_icon_pin | news_icon_info }} plainlinks"><!--
 
-->'''{{#var: current date }}'''
 
-->'''{{#var: current date }}'''

Revision as of 08:52, 20 June 2020