Wikipedia:Wikipedia Signpost/Templates/Signpost-header: Difference between revisions

Content deleted Content added
what the fuck?
add invert
 
(10 intermediate revisions by one other user not shown)
Line 1:
<templatestyles src="Wikipedia:Wikipedia Signpost/Templates/Signpost-header/stylesmaster.css" /><!--
--><div class="signpost-header nomobile noprint"><!--
--><div class="signpost-header-heading"><!--
-->[[File:Signpost2.svg|center|alt=The Signpost|link=Wikipedia:Wikipedia Signpost|class=skin-invert]]</div>!--
--></div><!--
<div class="signpost-header-subheadings"><div class="signpost-header-volume">{{#if: {{{1}}} | {{{1}}} | [[Wikipedia:Wikipedia Signpost/Archives/{{#titleparts: {{BASEPAGENAMEE}} | 1 | 2 }}|&larr; Back to Contents]] }}</div><div class="signpost-header-issue">{{#if: {{{3}}} | {{{3}}} | [[Wikipedia:Wikipedia Signpost|View Latest Issue]] }}</div><span class="signpost-header-date">{{#if: {{{2}}} | {{{2}}} | <time class="dt-published" datetime="{{#titleparts: {{BASEPAGENAME}} | 1 | 2 }}">[[Wikipedia:Wikipedia Signpost/Archives/{{#titleparts: {{BASEPAGENAME}} | 1 | 2 }}|{{#formatdate:{{#titleparts: {{BASEPAGENAME}} | 1 | 2 }}|dmy}}]]</time> }}<br /></span></div></div>
--><div class="signpost-header-subheadings"><!--
--><div class="signpost-header-volume"><!--
-->{{#if: {{{1}}} | {{{1}}} | [[Wikipedia:Wikipedia Signpost/Archives/{{#titleparts: {{BASEPAGENAMEE}} | 1 | 2 }}|&larr; Back to Contents]] }}<!--
--></div><!--
--><div class="signpost-header-issue"><!--
-->{{#if: {{{3}}} | {{{3}}} | [[Wikipedia:Wikipedia Signpost|View Latest Issue]] }}<!--
--></div><!--
--><span class="signpost-header-date"><!--
<div class="signpost-header-subheadings"><div class="signpost-header-volume">{{#if: {{{1}}} | {{{1}}} | [[Wikipedia:Wikipedia Signpost/Archives/{{#titleparts: {{BASEPAGENAMEE}} | 1 | 2 }}|&larr; Back to Contents]] }}</div><div class="signpost-header-issue">{{#if: {{{3}}} | {{{3}}} | [[Wikipedia:Wikipedia Signpost|View Latest Issue]] }}</div><span class="signpost-header-date">{{#if: {{{2}}} | {{{2}}} | <time class="dt-published" datetime="{{#titleparts: {{BASEPAGENAME}} | 1 | 2 }}">[[Wikipedia:Wikipedia Signpost/Archives/{{#titleparts: {{BASEPAGENAME}} | 1 | 2 }}|{{#formatdate:{{#titleparts: {{BASEPAGENAME}} | 1 | 2 }}|dmy}}]]</time> }}<br /></span></div></div>!--
--><br /><!--
--></span><!--
--></div><!--
--><br /><!--
--><div class="signpost-header-subsubheadings"><!--
--></div><!--
--></div>
<includeonly><!--
 
Line 8 ⟶ 26:
--> | {{#if: {{{2|}}} <!-- If param #2 is supplied
--> | <!-- Don't categorise when there's a manual date/middle-title or if the page name is not in date format. Subpage title must begin "20", the first 2 chars of a year (note this is a future Y2100 bug ;)
--> | {{#ifeq:{{#invoke:String|sub|{{#titleparts:{{BASEPAGENAME}}| 1 | 2 }}|1|2}} | 20 | [[Category:Wikipedia Signpost archives {{#time: Y-m | {{#titleparts:{{BASEPAGENAME}}| 1 | 2 }} }} ]] <!-- include recent pages in rss feed category: --> {{#ifexpr: {{#time:U|now - 2 months}} < {{#time:U| {{#titleparts:{{BASEPAGENAME}}| 1 | 2 }} }} | [[Category:Wikipedia Signpost RSS feed]] }} <!-- match subpagename
{{#ifeq:{{SUBPAGENAME}}| Recent research |<!-- Removed research report category. Not enough time to figure the rest of this template out. This ifeq should probably be removed. -JPxG, 2023-01-07-->| <!--no subpagename match-->}} <!-- match subpagename
--> | <!--not a date-->}}<!--
-->}}<!-- End if param #2 supplied
-->}}<!-- End if in the Wikipedia namespace
 
--></includeonly><noinclude>{{Documentation}}
{{pp-template}}
[[Category:Wikipedia Signpost templates|{{SUBPAGENAME}}]]