close
Jump to content

Template talk:As of

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 24 days ago by MSGJ in topic Hide year

lc parameter without a value

[edit]

The documentation says that the lc parameter gives lower case for any value of the parameter, but what is confusing is that it gives lower case even without a value.

See the following examples:

  • {{As of|2019|02|24|lc=y}} as of 24 February 2019
  • {{As of|2019|02|24|lc=}} As of 24 February 2019
  • {{As of|2019|02|24}} As of 24 February 2019

--David Biddulph (talk) 16:12, 24 February 2019 (UTC)Reply

That is confusing, having two default parameters. Could we have a quicker way to set the case? I'm thinking {{ASOF|2018}} and {{asof|2018}} as aliases. HLHJ (talk) 23:43, 19 September 2021 (UTC)Reply
I would still really like this functionality. I try to put a sentence's core info first, and "as of X" is usually supplementary info the reader doesn't care about, or understand the meaning of, until they know what the main fact is. So I usually put it last, and typing "|lc=y" is a pain. Does anyone have objections?
Separately, "as of mid-March" (late, early) also returns an error. HLHJ (talk) 19:19, 17 March 2023 (UTC)Reply

date formatting

[edit]

I ask without judgment because I know next-to-nothing about template programming, but why doesn't {{as of}} check for a time and date maintenance template (e.g. {{use mdy dates}}) for automatic formatting of the date (similar to citation templates)? — Fourthords | =Λ= | 15:55, 9 April 2023 (UTC)Reply

I just came here to ask the same thing.
{{Use mdy dates}} tags pages with a maintenance category, and templates can modify behavior depending on page categories (see e.g. {{if in category}}), so it should be possible. The categories are parameterized by month (Category:Use mdy dates from October 2024 instead of just Category:Use mdy dates), so it'd probably require some custom Lua, or additions to Module:If in category to optionally walk the category tree. DefaultFree (talk) 21:55, 18 October 2024 (UTC)Reply

Edit request 12 May 2025

[edit]

Description of suggested change: add nocap as an alternative for lc. RodRabelo7 (talk) 02:01, 12 May 2025 (UTC)Reply

@RodRabelo7: Is there a specific reason for this change? Is it for consistency with another template? or was it discussed somewhere? Est. 2021 (talk · contribs) 04:43, 12 May 2025 (UTC)Reply

Hide year

[edit]

Would it be possible to hide the year from display? I appreciate its functional need, but there are instances where including the year in "as of 9 August 2026" is unnecessary as previous sentences have established a year and the template is being used in the context of a smaller time frame. MIDI (talk) 11:52, 6 March 2026 (UTC)Reply

Maybe via adding support for an additional date format |df=dm? I'll point out for any passers-by that it's currently possible to achieve this even without specialised support for it using |alt=:
{{As of|2026|05|21|alt=As of 21 May}}
As of 21 May
galvanick lucipher (she/her, talk) 08:00, 21 May 2026 (UTC)Reply

Please make the edits shown in this diff: . This will enable the use of date format values "dm" and "md" to show the date without a year, in standard and US format respectively, as requested by User:Galvanick Lucipher above, without affecting existing behavior. The effect of the edits is demonstrated at User:Space mission guy/sandbox2. Thanks! Space mission guy (talk) 17:01, 1 July 2026 (UTC)Reply

This change would add a lot of code spaghetti for limited benefit, since |alt= already exists. Please give five examples, by linking to sections of articles, of where this new option would be used. – Jonesey95 (talk) 20:33, 1 July 2026 (UTC)Reply
Disabled request due to lack of response  Martin (MSGJ · talk) 11:07, 15 July 2026 (UTC)Reply