Template:Tscore/testcases
| This is the template test cases page for the sandbox of Template:Tscore. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Empty
[edit]{{Tscore}}
{{Tscore}}
Error: incorrect use of Tscore template: no score code
{{Tscore/sandbox}}
Error: incorrect use of Tscore template: no score code
Setting width
[edit]{{Tscore
|score = \new Staff { \time 4/4 \relative c { c4 d e f {{!}} g a b c {{!}} d e f g \bar "{{!}}." } }
|width = 60
}}
{{Tscore}}
{{Tscore/sandbox}}
No first line indentation
[edit]{{Tscore
|score = \new Staff { \time 4/4 \relative c { c4 d e f {{!}} g a b c {{!}} d e f g \bar "{{!}}." } }
|layout = indent = 0\cm
}}
{{Tscore}}
{{Tscore/sandbox}}
Using a variable
[edit]{{Tscore
|sThisIsMyVariable = c'4 d e f {{!}} g a b c {{!}} d e f g \bar "{{!}}."
|score = \new Staff { \time 4/4 \relative c \sThisIsMyVariable }
|layout = indent = 0\cm
}}
{{Tscore}}
{{Tscore/sandbox}}
More variables
[edit]{{Tscore
|sBeginning = c'4 d e f {{!}} g a b c {{!}}
|sVolta = d e f g
|sAltOne = a2 b
|sAltTwo = a,2 r
|sEnd = b4 c d r \bar "{{!}}."
|score = \new Staff { \time 4/4 \relative c { \sBeginning \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } }
|layout = indent = 0\cm
}}
{{Tscore}}
{{Tscore/sandbox}}
Merging
[edit]{{Tscore
|start=SomeMergedMusic
|next=page #2
|sBeginning = c'4 d e f {{!}} g a b c {{!}}
|sVolta =
|sAltOne =
|sAltTwo =
|sEnd =
|score = \new Staff { \time 4/4 \relative c { \sBeginning \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } }
|layout = indent = 0\cm
|debug=true
}}
{{Tscore
|cont=SomeMergedMusic
|sBeginning =
|sVolta = d e f g
|sAltOne = a2 b
|sAltTwo = a,2 r
|sEnd = b4 c d r \bar "{{!}}."
|score = \new Staff { \time 4/4 \override Staff.TimeSignature #'transparent = ##t \relative c'' { \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } }
|layout = indent = 0\cm
|debug=true
}}
{{Tscore}}
Error: incorrect use of Tscore template: no next page defined
sBeginning = { c'4 d e f | g a b c | }
next = { page #2 }
\paper { #(set-paper-size "a4") }
\header { tagline = ##f }
\version "2.22.0"
\score {
\midi { }
\layout { line-width = #180
indent = 0\cm}
\new Staff { \time 4/4 \relative c { \sBeginning \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } } }
{{Tscore/sandbox}}
Error: incorrect use of Tscore template: no next page defined
sBeginning = { c'4 d e f | g a b c | }
next = { page #2 }
\paper { #(set-paper-size "a4") }
\header { tagline = ##f }
\version "2.22.0"
\score {
\midi { }
\layout { line-width = #180
indent = 0\cm}
\new Staff { \time 4/4 \relative c { \sBeginning \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } } }