Template:ScoreInfo: Difference between revisions
Jump to navigation
Jump to search
Documentation
(all 3 parameters were made optional) |
(formula to convert kB to MB) |
||
Line 1: | Line 1: | ||
<includeonly>'''Score information:''' {{#if: {{{1|}}}|{{{1}}}|Unknown}}{{#if: {{{2|}}}|, {{{2}}} {{#ifexpr: {{{2|0}}}=1|page|pages}}}}{{#if: {{{3|}}}|, {{{3}}} | <includeonly>'''Score information:''' {{#if: {{{1|}}}|{{{1}}}|Unknown}}{{#if: {{{2|}}}|, {{{2}}} {{#ifexpr: {{{2|0}}}=1|page|pages}}}}{{#if: {{{3|}}}|{{#ifexpr:{{{3}}}>1024|, {{#expr:{{{3}}}/1024 round2}} MB|, {{{3}}} kB}}}} </includeonly><noinclude> | ||
{{prot-temp}}<br> | {{prot-temp}}<br> | ||
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | <div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> |
Revision as of 07:25, 3 July 2012
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
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 (" ") are added after "kbytes" so there is no need to add anything between this template and {{Copy}}.