Template:ArchivedVersionTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifeq:{{{archivedPdf|}}}||<!-- no uploaded file -->
{{#ifeq:{{{archivedPdf|}}}||<!-- no uploaded file -->
No uploaded pdf for model {{{archivedModel|}}} version {{{archivedVersion|}}}!
|
 
Comment on this archive:
 
''{{{comment|}}}''
 
{{#set:IsArchivedVersionOfModel={{{archivedModel|}}}
|IsArchivedVersion={{{archivedVersion|}}}
|HasArchiveComment={{{comment|}}}
}}
| <!-- uploaded file exists -->
An archive of {{{archivedModel|}}} version {{{archivedVersion|}}} has been uploaded on {{#show:File:{{{archivedPdf|}}}|?Modification date}} (system date of uploaded model archive)
 
Open pdf: [[Media:{{{archivedPdf|}}} | {{{archivedPdf|}}} ]] |}}
 
Comment on this archive:
 
''{{{comment|}}}''
 
{{#set:IsArchivedVersionOfModel={{{archivedModel|}}}
|IsArchivedVersion={{{archivedVersion|}}}
|HasArchivePdf={{{archivedPdf|}}}
|HasArchiveComment={{{comment|}}}
|HasArchiveDate={{#show:File:{{{archivedPdf|}}}|?Modification date}}
}}
}}<!-- end of #ifeq -->
}}<!-- end of #ifeq -->
[[Category:Archived version]]</includeonly>
[[Category:Archived version]]</includeonly>

Revision as of 16:21, 8 August 2020

This is the "ArchivedVersionTemplate" template. It should be called in the following format:

{{ArchivedVersionTemplate
|archivedModel
|archivedVersion
|archivedPdf
}}

Edit the page to see the template text.