Template talk:Mem
| This is the talk page for discussing improvements to the Mem template. |
|
| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
| ||||||||
Sorting
editCan template sortname be made to work with this or can you add a sort capability for the name and year fields? — Rlevse • Talk • 11:01, 17 February 2009 (UTC)
- Yes, we could use {{sortname}} and add first and last parameters. Which subtemplate are looking at first? --—— Gadget850 (Ed) talk - 13:54, 17 February 2009 (UTC)
- The alum one I'm using for the Naval Academy list. See chat on my talk page too. — Rlevse • Talk • 14:06, 17 February 2009 (UTC)
- Done: see the documentation and Template:Mem/testcases. --—— Gadget850 (Ed) talk - 15:38, 17 February 2009 (UTC)
- Hmmm... something is not right. --—— Gadget850 (Ed) talk - 16:31, 17 February 2009 (UTC)
- OK- fixed it! --—— Gadget850 (Ed) talk - 17:35, 17 February 2009 (UTC)
- Hmmm... something is not right. --—— Gadget850 (Ed) talk - 16:31, 17 February 2009 (UTC)
- Done: see the documentation and Template:Mem/testcases. --—— Gadget850 (Ed) talk - 15:38, 17 February 2009 (UTC)
- The alum one I'm using for the Naval Academy list. See chat on my talk page too. — Rlevse • Talk • 14:06, 17 February 2009 (UTC)
VERY NICE! Thanks. — Rlevse • Talk • 03:24, 18 February 2009 (UTC)
Broken?
editThis template appears to be broken at List of Texas A&M University people#Texas A&M faculty and affiliates. The text 'style="text-align:center;" |' appears where it shouldn't. ubiquity (talk) 19:30, 24 February 2016 (UTC)
- Now fixed. When the class= attributes were added to Template:Mem/fa, a stray pipe symbol was left behind. — jmcgnh(talk) (contribs) 05:01, 22 January 2018 (UTC)
Approximate years: formatting vs sorting
editComing from Talk:List of Eagle Scouts#Formatting of "c." (circa) in achievement year column, that article passes data as {{mem/e|eagle=year}} and the resulting Year column is sortable. The problem is how to handle years that are approximate. MOS suggests we specify that as a {{circa}} prefix to the year, but that breaks sortability because "1944", "c. 1945", "1946" are not in order stringwise. Currently, the List article in question puts the circa as a suffix, which is non-standard. I tried using various {{val}} and {{nts}} tricks, but they all seem to require that every row-entry's value is tagged. That would work, but it would be cleaner if we only needed to specify something special when needed at all. Is there a feature of the templates to specify the a certain sort-key or some other trick I'm not seeing? DMacks (talk) 05:31, 7 April 2026 (UTC)