Template talk:Year nav topic5

message: 09-Jan-2007: The box was narrowed (today) as "width: 290px;" after discovering that it had been allowed to expand to about 320px width, for about 7 months, due to a lack of testing against requirements and focus.  Conflicting issues had caused the option "more..." to be appended to the list of bottom topics, causing the box width to expand by over 7 characters wider than originally designed, perhaps 28px wider.  After months of use, the requirement to limit box width to 300px was reduced to recommending 290px for wider text and better n-words-per-line formatting.  Just the extra 10px from 300px to 290px seems to cross a critical-width threshold allowing many more words to fit within text-wrapping that formerly split as ragged right margins.  A similar critical-width threshold occurs in images that can be enlarged by perhaps 5% to become suddenly much clearer. -Wikid77 (talk) 04:17, 9 January 2008 (UTC)
thread_title: Narrowing box width

message: This template generates a link like 1700s for the first decade of a given century; however, this page and others like it are now disambiguation pages, because the title might refer to a decade or a century.  The link to the first decade of any given century needs to be formatted as 1700s.  This affects each link ending with "s]]" in the following section:
-- DECADES -->[[List of decades|…]] <!--
-->[[{{#expr: {{{1|1700}}} - {{{1|1700}}} mod 10 -30}}s]] • <!--
-->[[{{#expr: {{{1|1700}}} - {{{1|1700}}} mod 10 -20}}s]] • <!--
-->[[{{#expr: {{{1|1700}}} - {{{1|1700}}} mod 10 -10}}s]] <!--
-- THIS DECADE --> – [[{{#expr: {{{1|1700}}} - {{{1|1700}}} mod 10}}s]] – <!--
-->[[{{#expr: {{{1|1700}}} - {{{1|1700}}} mod 10 +10}}s]] • <!--
-->[[{{#expr: {{{1|1700}}} - {{{1|1700}}} mod 10 +20}}s]] • <!--
-->[[{{#expr: {{{1|1700}}} - {{{1|1700}}} mod 10 +30}}s]] [[List of decades|…]] <br><!--

The replacement code is far more complex, unfortunately, but here it is:
-- DECADES -->[[List of decades|…]] <!--
-->[[{{#ifeq:{{#expr:(({{{1|1700}}}-({{{1|1700}}} mod 10))-30) mod 100}} | 0 | {{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))-30}}–{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))-30+9}}{{!}}}}{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))-30}}s]] • <!--
-->[[{{#ifeq:{{#expr:(({{{1|1700}}}-({{{1|1700}}} mod 10))-20) mod 100}} | 0 | {{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))-20}}–{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))-20+9}}{{!}}}}{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))-20}}s]] • <!--
-->[[{{#ifeq:{{#expr:(({{{1|1700}}}-({{{1|1700}}} mod 10))-10) mod 100}} | 0 | {{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))-10}}–{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))-10+9}}{{!}}}}{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))-10}}s]] <!--
-- THIS DECADE --> – [[{{#ifeq:{{#expr:(({{{1|1700}}}-({{{1|1700}}} mod 10))) mod 100}} | 0 | {{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))}}–{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))+9}}{{!}}}}{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))}}s]] – <!--
-->[[{{#ifeq:{{#expr:(({{{1|1700}}}-({{{1|1700}}} mod 10))+10) mod 100}} | 0 | {{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))+10}}–{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))+10+9}}{{!}}}}{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))+10}}s]] • <!--
-->[[{{#ifeq:{{#expr:(({{{1|1700}}}-({{{1|1700}}} mod 10))+20) mod 100}} | 0 | {{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))+20}}–{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))+20+9}}{{!}}}}{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))+20}}s]] • <!--
-->[[{{#ifeq:{{#expr:(({{{1|1700}}}-({{{1|1700}}} mod 10))+30) mod 100}} | 0 | {{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))+30}}–{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))+30+9}}{{!}}}}{{#expr:({{{1|1700}}}-({{{1|1700}}} mod 10))+30}}s]] [[List of decades|…]] <br><!--

FWIW, I intentionally left expressions like "-30+9" in the code, rather than simplify them, to make future maintenance easier. --Russ (talk) 12:08, 19 October 2008 (UTC)
replies: text: . — Huntster (t • @ • c) 04:39, 31 October 2008 (UTC)
thread_title:  Edit request 

message: Per WP:HLIST, a group of editors, including me, are replacing pseudo-lists with proper HTML list markup. This is more complaint with HTML standards, and more accessible, especially for users of assistive technologies (such as blind people using  screen readers). There's an improved version in this template's sandbox now. Is everyone happy to switch over? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 23:04, 22 December 2011 (UTC)
replies: text: -- WOSlinker (talk) 20:45, 27 December 2011 (UTC)
thread_title:  New version 

message: I modified the sandbox here to have the template try to detect the year from the article title if the first parameter is missing. The template behavior doesn't change if the first parameter is there or if  doesn't find a 4-digit year in the article title.
Ahecht (TALKPAGE) 17:18, 8 June 2015 (UTC)
replies: text: A lot of calls to . Are there any concerns of loading times? Perhaps better to call it once and put the main code in a subtemplate? — Martin (MSGJ · talk) 21:38, 8 June 2015 (UTC)
replies: text: Good catch. I moved the bulk of the code to :Template:Year_nav_topic/sub to reduce  calls and updated the sandbox. --Ahecht (TALKPAGE) 14:38, 9 June 2015 (UTC)
replies: text: I had just come back because I realized that I forgot to pass the subject to the subtemplate, but User:Alakzi beat me to it. --Ahecht (TALKPAGE) 14:48, 9 June 2015 (UTC)

text: Tests pass, so  Done. Alakzi (talk) 14:58, 9 June 2015 (UTC)
thread_title:  Template-protected edit request on 8 June 2015