Template:LilyPond source
From Wikisource
Note: The full template is only visible on transclusion and hidden from view on this page.
[edit] []
Template documentation
This template is used to display the LilyPond source of images or Midi files in a semi-standardized way. To call it:
- {{LilyPond source}}
- <pre>
- source code
- </pre>
The default behavior is appropriate for LilyPond-generated images. If this template is used for a LilyPond-generated MIDI file, call {{LilyPond source|midi=1}}.
Note that the template generates its own top-level heading; it also places pages in Category:GNU LilyPond images or Category:GNU LilyPond Midi files, as appropriate.
[edit] Examples
| Template call | Result |
|---|---|
| {{LilyPond source}} | ==LilyPond source== |
| {{LilyPond source|midi=1}} | ==LilyPond source== |
| The above documentation is transcluded from Template:LilyPond source/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |