Template:ScoreInfo: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
'''Syntax:'''
'''Syntax:'''
: <tt><nowiki>{{ScoreInfo|<page size>|<number of pages>|<size of PDF in kilobytes>}}</nowiki></tt>
: <tt><nowiki>{{ScoreInfo|<page size>|<number of pages>|<size of PDF in kilobytes>}}</nowiki></tt>
<b><u>Parameters</u></b>
# Page size. See table below, or enter another size.
# Number of pages, a positive integer.
# Size of PDF, a positive integer. Do not use thousand separator marks, ''e.g.'', "1357" not "1,357".
'''Example:'''
'''Example:'''
: <tt><nowiki>{{ScoreInfo|A4|2|20}}</nowiki></tt>
: <tt><nowiki>{{ScoreInfo|A4|2|20}}</nowiki></tt>
Line 13: Line 18:
: <tt><nowiki>'''Score information:''' A4, 2 pages, 20 kbytes</nowiki></tt>
: <tt><nowiki>'''Score information:''' A4, 2 pages, 20 kbytes</nowiki></tt>


If the third parameter (size of file) is greater than 1024 (1 MB) then the number given will be converted to megabytes.
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 ("{{etc|nbsp;}}{{etc|nbsp;}}{{etc|nbsp;}}") are added after "kbytes" so there is no need to add anything between this template and <tt>{{[[Template:Copy|Copy]]}}</tt>.
The template is clever enough to only pluralise "page" when there is more than one page in the edition. Also, 3 forced spaces ("{{etc|nbsp;}}{{etc|nbsp;}}{{etc|nbsp;}}") are added after "kbytes" so there is no need to add anything between this template and <tt>{{[[Template:Copy|Copy]]}}</tt>.
</div>
</div>
==Page sizes==
{|class="wikitable sortable"
!Code
!Size, mm
!Size, in
!Type
!Comment
|-
|-
|}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 16:44, 11 December 2021


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