Page 1 of 1

Creating a template for an edition page

Posted: Sun Dec 28, 2025 11:18 pm
by pengudosh
I've been creating an edition page (https://imslp.org/wiki/The_Valen_Societ ... C_Fartein)) using this guide:
https://imslp.org/wiki/IMSLP:Music_Publishers/Editions

I would like to create a template for the edition's publisher field, but am unsure how.
It would be awesome, if someone can explain it, or point me to a guide.

Thank you in advance.

Re: Creating a template for an edition page

Posted: Tue Jan 06, 2026 12:44 pm
by ScoreUpdater
I have created a template at Template:ValenSociety. I'll break down how I created it below:
<includeonly>[[The Valen Society Edition (Valen, Fartein)|''The Valen Society Edition'']], Vol.{{{1}}} {{#if:{{{4|}}}|(pp.{{{4}}})|}}<br>{{P|Harald Lyche|Harald Lyche & Co.|Oslo|{{{2|1950-1982}}}|{{{2|1982}}}||{{{3|??}}}}}{{IntMD|Pages={{{5}}}|Volume={{{1}}}}}</includeonly><noinclude>[[Category:Publication Templates]]</noinclude>
is the current content of the page.

Code: Select all

<includeonly>
[[The Valen Society Edition (Valen, Fartein)|''The Valen Society Edition'']], 
Vol.{{{1}}} 
{{#if:{{{4|}}}|(pp.{{{4}}})|}}
<br>
{{P|Harald Lyche|Harald Lyche & Co.|Oslo|{{{2|1950-1982}}}|{{{2|1982}}}||{{{3|??}}}}}
{{IntMD|Pages={{{5}}}|Volume={{{1}}}}}
</includeonly>
<noinclude>
[[Category:Publication Templates]]
</noinclude>
Lines 1 and 8, <includeonly> mean that the text and templates only appear on pages which contain the template (called transclusion), not the template page itself. This is predominantly an internal cataloguing reason which prevents template pages from appearing on automatically-generated publisher lists and category pages.

Line 2 links to the edition page.
Line 3 displays the volume number
Line 4 displays the page-range information, if provided; otherwise, it does not display.
Line 5 is a line break.
Line 6 displays all the publication information. Details of how this template works can be found here. There are fields which display publication year and plate number (I have added this field to your template description on the edition page).
Line 7 controls internal metadata.
Lines 9 and 11, <noinclude> mean that only the template itself is added to the category of publication templates, not all the works on which it is transcluded.

As far as I am aware, there is no guide to creating edition templates, so I hope the above explanation will be sufficient!

Regards,

Re: Creating a template for an edition page

Posted: Sat Jan 10, 2026 1:00 pm
by pengudosh
Thank you kindly for the help and for your explanation.
I’m pretty lost when it comes to coding and the like, so this is very helpful.

Best regards