Template talk:Reign
Overhauled, and basically a meta-template – maybe merge some stuff?
[edit]I've radically overhauled Template:Reign (with a little help from RexxS. At this point, it's a date range (and "range plus", e.g. "1995–2000, 2001" or even "1990, 1995–2000, 2001, 2005–2010, 2017") handler. I didn't realize through most of it that Template:Circa and Template:Floruit are basically the same original codebase.
I think at this point that what is at {{Reign}}
can be tweaked a little (to not emit that template's default "r. " label), and be moved to a meta-template like Template:Numrange or whatever, with all three other templates being wrappers that just pass it some pre-defined specifics. Various other templates could be built from the same codebase for other number-range needs. The code's been cleaned up enough that adding support for additional ranges would be easy. It could also be ported to WP:Lua for efficiency, though my work on it will cease after that because Lua gives me a headache.
— SMcCandlish ☏ ¢ >ʌⱷ҅ᴥⱷʌ< 04:39, 25 November 2017 (UTC)
- Just as a note (because I haven't read through the code here yet) I tried this already and was shot down. I think you have a good idea, and honestly if we did this "behind the scenes" no one is likely to notice, but TFD might be a better option for merging these. Primefac (talk) 15:03, 25 November 2017 (UTC)
- I find TfD tends to result in either resounding approval but no one willing to do the work, or definite opposition for WP:IDONTLIKEIT reasons if the work's not already done. LOL. I'll just keep making it more featureful and eventually move it to a meta-template and make this one a wrapper for it, and we can do the others later if people don't pitch a fit. Or I might just forget, and nothing further will happen for ages. — SMcCandlish ☏ ¢ >ʌⱷ҅ᴥⱷʌ< 18:25, 26 November 2017 (UTC)
- I think a meta template is the best (that was what I was originally shooting for), and I don't think we need to go the TFD route unless someone complains. Happy to help out if needed, just ping me. Primefac (talk) 20:07, 26 November 2017 (UTC)
- I find TfD tends to result in either resounding approval but no one willing to do the work, or definite opposition for WP:IDONTLIKEIT reasons if the work's not already done. LOL. I'll just keep making it more featureful and eventually move it to a meta-template and make this one a wrapper for it, and we can do the others later if people don't pitch a fit. Or I might just forget, and nothing further will happen for ages. — SMcCandlish ☏ ¢ >ʌⱷ҅ᴥⱷʌ< 18:25, 26 November 2017 (UTC)
Should not use spaced dash with all-BC dates
[edit]At Philhellenism#Philhellenes in antiquity there was {{reign|171|132 BC}}
, which renders as r. 171 – 132 BC. The spaces are contrary to MOS:DATE, so I replaced the template with manual markup. This shouldn't be necessary - this template should be changed to do the right thing (e.g. with an |era=
parameter, which would also extend to other eras where they are relevant). Hairy Dude (talk) 15:45, 24 March 2021 (UTC)