Difference between revisions of "Template:News/displayonly"

From PCGamingWiki, the wiki about fixing PC games
m (correction)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><li class="news_li plainlinks"><!--
+
<includeonly>{{#vardefine: current date | {{#time:F j|{{{Date}}}}} }}<!--
-->'''{{#time:F j|{{{Date}}}}}''' · {{{Title}}} <!--
+
-->{{#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"><!--
 +
-->'''{{#var: current date }}'''
 +
}}<!--
 +
--> · {{{Title}}}<!--
 
-->{{#if:{{{Link1}}}|<span class="news_ref">[{{{Link1}}} &#91;1&#93;]</span>|}}<!--
 
-->{{#if:{{{Link1}}}|<span class="news_ref">[{{{Link1}}} &#91;1&#93;]</span>|}}<!--
 
-->{{#if:{{{Link2}}}|<span class="news_ref">[{{{Link2}}} &#91;2&#93;]</span>|}}<!--
 
-->{{#if:{{{Link2}}}|<span class="news_ref">[{{{Link2}}} &#91;2&#93;]</span>|}}<!--
Line 6: Line 10:
 
-->{{#if:{{{Notes}}}|<span class="news_ref">&#91;{{Abbr|Notes|{{{Notes}}}}}&#93;</span>}}<!--
 
-->{{#if:{{{Notes}}}|<span class="news_ref">&#91;{{Abbr|Notes|{{{Notes}}}}}&#93;</span>}}<!--
 
-->{{#if:{{{Community}}}|<span class="news_ref">&#91;[{{{Community}}} Thread]&#93;</span>|}}<!--
 
-->{{#if:{{{Community}}}|<span class="news_ref">&#91;[{{{Community}}} Thread]&#93;</span>|}}<!--
--></li></includeonly>
+
-->{{#vardefine: previous date | {{#var: current date }} }}</includeonly>

Latest revision as of 08:53, 20 June 2020