Content deleted Content added
→abbr=on violates MOS: new section |
|||
Line 447:
::What page? What module? Module:Age just gathers the parameters (date1 and date2) and calls [[Module:Date]] to get the numbers (10, 3, 19 in above example), then inserts the years/months/days text. Another module could do that too. Or, you could call age_generic and pass something that looks like a frame sufficiently well to do what age_generic needs as can be seen by inspecting its code. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 09:26, 18 November 2023 (UTC)
:::I want to localize [[:no:Module:Liste over eldste personer]] for Bulgarian. I did it for Belorussian, Serbian and Romanian, and Russian localization is also based on my Belorussian localization. Well, I can even derive months/days calculation from bulgarian template implementation, but I want to reuse existed Age module. [[User:A.sav|A.sav]] ([[User talk:A.sav|talk]]) 13:12, 18 November 2023 (UTC)
== abbr=on violates MOS ==
{{editprotected}}
Using <code>abbr=on</code> produces output like "1d 2h 3m 5s", which violates [[MOS:UNITS]] (see "expressing time durations"). The correct short format must have no-break spaces between numbers and units, and use "min" for [[minute]]s.
Namely, please add <code>sep = '&nbsp;',</code> and change <code>m = 'm',</code> to <code>m = 'min',</code> to <code>abbr_on</code> [[Module:Age#L-474--L-481|here]]. — [[User:Mikhail Ryazanov|Mikhail Ryazanov]] ([[User talk:Mikhail Ryazanov|talk]]) 05:10, 15 July 2024 (UTC)
|