Template:ScoreInfo

From ChoralWiki
Revision as of 16:44, 11 December 2021 by BarryJ (talk | contribs)
Jump to navigation Jump to search


Documentation

This template is for use to add the page size, number of pages and size of PDF in the edition info on a score/works page. It normally appears after {{Editor}} and before {{Copy}}.

Syntax:

{{ScoreInfo|<page size>|<number of pages>|<size of PDF in kilobytes>}}

Parameters

  1. Page size. See table below, or enter another size.
  2. Number of pages, a positive integer.
  3. Size of PDF, a positive integer. Do not use thousand separator marks, e.g., "1357" not "1,357".

Example:

{{ScoreInfo|A4|2|20}}

inserts

'''Score information:''' A4, 2 pages, 20 kbytes

Parameters are automatically added by the AddWork form; the form reads header information for the PDF file you imported, and automatically adds number of pages and size of PDF file; page size is automatically added if it is one of the standard sizes. If the third parameter (size of file) is greater than 1024 (1 MB) then the number given will be converted to megabytes.

The template is clever enough to only pluralise "page" when there is more than one page in the edition. Also, 3 forced spaces ("&nbsp;&nbsp;&nbsp;") are added after "kbytes" so there is no need to add anything between this template and {{Copy}}.

Page sizes

Code Size, mm Size, in Type Comment