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 with these links: |
Empty
[edit]{{Tscore}} |
---|
{{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}} |
---|
{{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}} |
---|
{{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}} |
---|
{{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}} |
---|
{{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}} |
---|
{{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
{{Tscore/sandbox}} Error: incorrect use of Tscore template: no next page defined |