Template:ArchivedVersionTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifexist:File:{{{archivedPdf|}}}|<!-- no uploaded file -->
{{#ifexist:File:{{{archivedPdf|}}}|<!-- uploaded file exists -->
No uploaded pdf for model {{{archivedModel|}}} version {{{archivedVersion|}}}!
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 on this archive:
Line 20: Line 22:
{{#set:IsArchivedVersionOfModel={{{archivedModel|}}}
{{#set:IsArchivedVersionOfModel={{{archivedModel|}}}
|IsArchivedVersion={{{archivedVersion|}}}
|IsArchivedVersion={{{archivedVersion|}}}
|HasArchivePdf={{{archivedPdf|}}}
|HasArchiveComment={{{comment|}}}
|HasArchiveComment={{{comment|}}}
}}
|HasArchiveDate={{#show:File:{{{archivedPdf|}}}|?Modification date}}
| <!-- uploaded file exists -->
}}
An archive of {{{archivedModel|}}} version {{{archivedVersion|}}} has been uploaded on {{#show:File:{{{archivedPdf|}}}|?Modification date}} (system date of uploaded model archive)
| <!-- no uploaded file -->
 
No uploaded pdf for model {{{archivedModel|}}} version {{{archivedVersion|}}}!
Open pdf: [[Media:{{{archivedPdf|}}} | {{{archivedPdf|}}} ]]


Comment on this archive:
Comment on this archive:
Line 33: Line 35:
{{#set:IsArchivedVersionOfModel={{{archivedModel|}}}
{{#set:IsArchivedVersionOfModel={{{archivedModel|}}}
|IsArchivedVersion={{{archivedVersion|}}}
|IsArchivedVersion={{{archivedVersion|}}}
|HasArchivePdf={{{archivedPdf|}}}
|HasArchiveComment={{{comment|}}}
|HasArchiveComment={{{comment|}}}
|HasArchiveDate={{#show:File:{{{archivedPdf|}}}|?Modification date}}
}}
}}
|  
}}<!-- end of #ifeq -->
}}<!-- end of #ifexist -->
[[Category:Archived version]]</includeonly>
[[Category:Archived version]]</includeonly>

Revision as of 16:31, 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.