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)
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)
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)
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)