Template:ScoreInfo: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(whoops!)
(hopefully fixed this time....)
Line 1: Line 1:
<noinclude>{{prot-temp}}</noinclude>
'''Score information:''' {{{1}}}, {{{2}}} page{{switch|{{{2}}}
'''Score information:''' {{{1}}}, {{{2}}} page{{switch|{{{2}}}
|case: 1=,
|case: 1=,
|default=s,
|default=s,
}} {{{3}}} kbytes&nbsp;&nbsp;&nbsp;
}} {{{3}}} kbytes&nbsp;&nbsp;&nbsp;
<noinclude>[[Category:Templates|{{PAGENAME}}]]
<noinclude>{{prot-temp}}<br><div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<br><div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<center><big>'''Documentation'''</big></center>
<center><big>'''Documentation'''</big></center>


Line 17: Line 15:
: <tt><nowiki>'''Score information:''' A4, 2 pages, 20 kbytes</nowiki></tt>
: <tt><nowiki>'''Score information:''' A4, 2 pages, 20 kbytes</nowiki></tt>


The template is clever enough to only pluralise "page" when there is more than one page in the edition. Also, 3 forced spaces (&nbsp;<tt>{{etc|nbsp;}}{{etc|nbsp;}}{{etc|nbsp;}}</tt>&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 (&nbsp;<tt>{{etc|nbsp;}}{{etc|nbsp;}}{{etc|nbsp;}}</tt>&nbsp;) are added after "kbytes" so there is no need to add anything between this template and <tt>{{[[Template:Copy|Copy]]}}</tt>.</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
</div>
</noinclude>

Revision as of 02:06, 3 May 2008

Score information: {{{1}}}, {{{2}}} pages, {{{3}}} kbytes   


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>}}

Example:

{{ScoreInfo|A4|2|20}}

inserts

'''Score information:''' A4, 2 pages, 20 kbytes
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}}.