Template:ShowEdition: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(test for NewWork facility) |
||
Line 8: | Line 8: | ||
<tt>orig = <view original (nonfilelink) data in edit mode></tt> | <tt>orig = <view original (nonfilelink) data in edit mode></tt> | ||
| {{#ifeq: {{{Status}}} | | {{#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]] | | 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]] | ||
| [[Edition:CPDL {{{EdNo}}}|<b>CPDL #<font color=green>{{{EdNo}}}</font>:</b>]] {{{filelinks|}}} }} | | {{switch|{{IsNew|{{{posted|1901-01-01}}}}} | ||
|case: yes={{filepath:NewScore.gif}} [[Category:New works| {{{posted|1901-01-01}}}]] {{switch|{{IsNew|{{{posted|1901-01-01}}}|range=30 days}} | |||
|case: yes=[[Category:Posted {{{posted|1901-01-01}}}]] | |||
|default= | |||
}} <small>(Posted {{{posted|1901-01-01}}})</small> | |||
|default= | |||
}} [[Edition:CPDL {{{EdNo}}}|<b>CPDL #<font color=green>{{{EdNo}}}</font>:</b>]] {{{filelinks|}}} }} | |||
{{{orig}}} | {{{orig}}} | ||
}}</includeonly><noinclude>This (preliminary) template displays an edition as it appears on a works page. | }}</includeonly><noinclude>This (preliminary) template displays an edition as it appears on a works page. | ||
[[Category:Templates|{{PAGENAME}}]]</noinclude> | [[Category:Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 01:50, 8 June 2012
This (preliminary) template displays an edition as it appears on a works page.