Jump to content

Template talk:Listref

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Listref/doc)

This template is the bomb! But could be made even better

[edit]

I got into a heap of trouble (see intermediate edits) trying to improve the List of new religious movements with {{harv}} referencing. After a week of cleaning up, I ended up self-reverting to the beginning of that adventure. But the multi-page backlink ref clutter addressed here still bothered me, so I gave {{Listref}} a go, and it's the bomb! Especially with |liststyle=square using Harvard citations as id! Looks great! (I reckon) Now, it could be made even better, with the following upgrades:

  1. Accept more than 9 refs;
  2. Introduce |liststyle=Harvard, automatically generating Harvard style id's (e.g. [Smith 1990]),
    • using numbered instead of named arguments, e.g.:
      {{listref/reflist|liststyle=Harvard
      | {{cite book |last=Smith |year=1990}}
      | {{cite book |last=Wade |year 1980}}
      }}
      
    • with matching page format: {{listref|Smith 1990|p=123}}[Smith 1990, p.123] (instead of [Smith 1990]: 123 ; or alternatively [Smith 1990:123])

I may have a go at these in the sandbox, but wanted to give a heads up before I start meddling with the metal. — Guarapiranga  02:38, 11 August 2022 (UTC)[reply]

@Guarapiranga: There's an issue where this template creates broken references on mobile. I have a solution I think works in the sandbox templates. You can check it out on the testcases page. This likely has nothing to do with your edits; quirks on mobile caused a similar problem for {{ran}} & {{rma}}. I wanted to reach out to you before I push anything live though, because I don't understand the goal of "harv" type sources and therefore can't test to make sure they work. Is there an article that you could check out or link me to so that I know what the expected behavior (on desktop vector at least) should be? Rjjiii (talk) 06:31, 21 July 2023 (UTC)[reply]