Jump to content

Template talk:Drep

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

911

[edit]

Please change each occurrence of

  • #ifexpr:{{{1}}} > 0 and {{{1}}} <= 100

to

  • #ifexpr:({{{1}}} > 0 and {{{1}}} <= 100) or {{{1}}} = 911

Reasoning: The year article 911 has been moved to 911 (year), but AD 911 will work. This needed to be done before the move, but, we might as well fix it now. — Arthur Rubin (talk) 05:03, 9 July 2019 (UTC)[reply]

@Arthur Rubin: I updated the sandbox and made test cases for this, but I'm not convinced this is a good idea. We don't do this for other numbers such as 22 , 42 , or 2235, and I'm a fan of making special logic in a general use template for individual pages - can you elaborate some more on the need for an exception? — xaosflux Talk 13:49, 9 July 2019 (UTC)[reply]
@Xaosflux: The template {{year nav}} (used in year articles) calls {{dr}} which calls {{dr-make}} which calls {{drep}}. If you look at the page 912, the third entry in the year row, 911, points to 911, which is now a disambiguation page. It should point to the article on the year 911.
I'm proposing restructuring these templates, so this logic would occur in only one line, but I haven't put together a detailed proposal yet. Still drafting the proposals at WT:YEARS. — Arthur Rubin (talk) 18:35, 9 July 2019 (UTC)[reply]

 Not done: Changes will need to be made in {{year nav}}: {{#ifexpr: {{PAGENAME}} <= 7 |ysa|ys}}}} will fail if the parenthetical " (year)" isn't stripped from the PAGENAME before evaluating the #ifexpr. See the updated template documentation; I added the 911 (year) use case at the bottom. We just need to pass good parameters into this template; it can already handle this situation. – wbm1058 (talk) 00:15, 10 July 2019 (UTC)[reply]

{{dr-make}} needs to pass in the third parameter with the correct link. Template talk:Dr-make#Special case. – wbm1058 (talk) 04:47, 10 July 2019 (UTC)[reply]

Although it's wise to avoid acting hastily, something should be done. Please make any solution as flexible as possible, perhaps by using a {{Year article}} subtemplate along these lines wherever it is needed. The conventional wisdom that terms such as "123" have a year as their primary topic is starting to be questioned. 999 looks to be going the way of 911, and other years such as 420 may follow. Certes (talk) 12:05, 2 August 2019 (UTC)[reply]
...and 404. Certes (talk) 20:54, 3 August 2019 (UTC)[reply]