This site is supported by donations to The OEIS Foundation.
Template talk:Abbr
Inverting order of arguments
Instead of
- {{abbr|unabbreviated text|abbreviation}}
I'd rather have
- {{abbr|abbreviation|unabbreviated text}}
since it is more natural to have optional parameters at the end (otherwise it gets ugly, as you can see, although it works), especially when using
- {{abbr|abbreviation}}
where the unabbreviated text is extracted from
- {{abbr/list}}.
If given the OK to do so, I will of course check "What links here?" to fix all the broken calls to {{abbr}}! — Daniel Forgues 06:54, 28 June 2012 (UTC)
- I don't quite understand your reasoning (which is not to say it is incorrect). The only reason I chose this particular order was that it matched the order that would be used in HTML:
-
FN
-
- If the argument is merely to support the new template, I'm not sure what to say; the main purpose is surely to disambiguate between two possible full forms for a single abbreviation?
- Of course there's no reason that you couldn't have both: {{abbr|axiom of choice|AC}} as well as {{abbr|AC}}.
- Charles R Greathouse IV 17:11, 29 June 2012 (UTC)
- Now, when the unabbreviated text is extracted from {{abbr/list}}, I've implemented both ways
- {{abbr||AC}} which yields AC (note the empty string as first argument)
- or
- {{abbr|AC}} which yields AC (only one argument)
- I guess I should leave it as is, since we have it both ways.
- Of course, I've left the behavior of {{abbr|axiom of choice|AC}} (which yields AC) unchanged. — Daniel Forgues 02:25, 30 June 2012 (UTC)
database?
Where is the database? Is it possible to read and/or edit it? Is it mandatory/desirable not to have non-mathematical (at least some of the most frequent) abbrev's in it? Having, e.g., { {abbr|IMHO} }, { {abbr|RIFO} } and/or some others would seem quite handy and useful to me, both for authors and for readers - unless auto-wikification as for A-numbers could be implemented. — M. F. Hasler 13:48, 7 March 2013 (UTC)
- The "database table" for abbreviations used in science (mostly mathematics, computer science, physics, ...) is in the {{Abbr/list}} template and you may read and/or edit it. I'm not sure whether or not we should have common abbreviations like IMHO, BTW, etc. (I'd prefer not... so I modified the {{abbr/list}} template to refer to http://www.abbreviations.com when the "database table" doesn't have an entry for an abbreviation.)
- http://www.abbreviations.com/RIFO (I couln't find online what RIFO means!)
- http://www.abbreviations.com/AFAICS
- http://www.abbreviations.com/AFAIK
- http://www.abbreviations.com/BTW
- http://www.abbreviations.com/IMHO
- — Daniel Forgues 15:48, 7 March 2013 (UTC)