Template:ShowEdition: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Replaced Template:IsNew with equivalent code) |
||
(52 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq: {{PAGENAME}} | Edition:CPDL {{{EdNo}}}| |< | <includeonly>{{#ifeq: {{PAGENAME}} | Edition:CPDL {{{EdNo}}} | ||
[[Category: | | [[Category:Edition records|{{{EdNo}}}]][[Category:CPDL {{#sub:{{{EdNo}}}|0|3}}xy|{{#sub:{{{EdNo}}}|3}}]]{{#ifeq: {{{Status}}} | withdrawn | [[Category:Withdrawn editions|{{{EdNo}}}]] }} | ||
<tt>EdNo = </tt><b>{{{EdNo}}}</b><br> | |||
<tt>Status = </tt>{{{Status|}}}<br> | |||
<tt>PageTitle = </tt>{{{PageTitle|}}}<br> | |||
<tt>posted = </tt>{{{posted|}}}<br> | |||
<tt>filelinks = </tt>{{{filelinks|}}}<br> | |||
<tt>orig = <view original (nonfilelink) data in edit mode></tt> | |||
| {{#ifeq: {{{Status}}} | |||
| withdrawn | [[Edition:CPDL {{{EdNo}}}|<b>CPDL #<font color=gray>{{{EdNo}}}</font>:</b>]] ''This edition has been '''withdrawn''' {{{reason|at the request of the {{{contributor|editor}}}}}}.''[[Category:Works with withdrawn editions]] | |||
| {{#ifexpr:{{#time:Ymd|now-31 days}}<{{#time:Ymd|{{{1|}}}}}|{{filepath:NewScore.gif}} [[Category:New works| {{{posted|1901-01-01}}}]] {{#ifexpr:{{#time:Ymd|now-31 days}}<{{#time:Ymd|{{{1|}}}}}|{{{posted|1901-01-01}}}}} | |||
|yes|[[Category:Posted {{{posted|1901-01-01}}}]]}} <small>(Posted {{{posted|1901-01-01}}})</small> }} [[Edition:CPDL {{{EdNo}}}|<b>CPDL #<font color=green>{{{EdNo}}}</font>:</b>]] {{{filelinks|}}} }} | |||
{{{orig}}} | |||
}}</includeonly><noinclude>This (preliminary) template displays an edition as it appears on a works page. Before use, it should be modified to remove Category:New works. | |||
[[Category:Experimental templates]]</noinclude> |
Latest revision as of 16:23, 31 July 2020
This (preliminary) template displays an edition as it appears on a works page. Before use, it should be modified to remove Category:New works.