Template talk:Sfnm/archive 1

Just a thought
Wow. I have no idea how you got this work, but fascinating that it works at all. I wonder if this should be called "sfns" so that it has a similar title to "harvs"? Just a thought. CharlesGillingham (talk) 16:44, 12 May 2011 (UTC)
 * See the code for how it works; I used a script to actually write the duplicate code for each individual ref, though. I'd be open to renaming it. I used "Sfnm" merely because I had to choose something and "Sfn, multiple" seemed as good a description as any. Ucucha 16:58, 12 May 2011 (UTC)

Problems with multiple authors
The script as written won't work if you have more than one author in a given reference and you use anonymous parameters (naming all the params is a hassle IMO). That's why you need to have a blank argument between references, so you know where one stops and one starts. One way to do this without enormous pain, given the sorry interface provided by the templates, is to use a subtemplate, i.e. the main template finds where the breaks are between references and then calls a subtemplate to format each reference.

See also my comments in, where I am writing a nicer template language along with a script that will automatically convert it to the ugly hard-to-read normal template language. This will support macros, which would avoid the need of you having to write a custom script just to generate all this crap. Benwing (talk) 01:42, 14 May 2011 (UTC)
 * If that is possible, it would be great. I've purpose given the parameters very short names, so naming some of them (you don't need to name all with the current template) is not too much of a hassle. Ucucha 01:49, 14 May 2011 (UTC)