The Church of Jesus Christ of Latter-day Saints

Alphabetical lists

Ask questions and discuss topics of interest related to the FamilySearch wiki found at http://wiki.familysearch.org.

Moderator: ForbesMM

Alphabetical lists

#1Postby The_Earl » Fri Mar 14, 2008 8:37 am

Copied from Extensions thread:
Thomas_Lerman wrote:I found several pages with an alphabetic listings of words. More word lists are probably available.
https://wiki.familysearch.org/en/Czech_Word_List
https://wiki.familysearch.org/en/Afrikaans_Word_List
https://wiki.familysearch.org/en/Hungarian_Word_List

This one has the headings for each letter making the regular TOC huge.
https://wiki.familysearch.org/en/Icelandic_Word_List

To me, this type of page to way too long and it would be much nicer if were done differently. For example, the current page with a link over to a separate page with the alpha TOC and the long list of words. I have not found a way to have two TOCs on it, one at the top (as is now) and a separate one (alpha) in the middle of a page (with the current editing functionality, headings, etc. but not in the regular TOC). Okay, I would guess it one could probably be created, but it sure seems like it would be a pain.

I think it would also be nice to be able to have the words in columns to cause the page to be shorter. However, I would not want to cause someone to have to keep moving the column break to make the columns fairly balanced.
The_Earl
Member
 
Posts: 275
Joined: Wed Mar 21, 2007 8:12 am

Reflist multi-column template

#2Postby The_Earl » Fri Mar 14, 2008 8:41 am

http://en.wikipedia.org/wiki/Template:Reflist

Template:Reflist can automagically multi-column a list of things. The template is pretty complex, and I could not get it working over on FS, but it might give you some ideas for auto-formatting of multi column lists.

Thanks
The Earl
The_Earl
Member
 
Posts: 275
Joined: Wed Mar 21, 2007 8:12 am

#3Postby Thomas_Lerman » Fri Mar 14, 2008 9:27 am

I also found a template that has not worked for me even on their site:
http://en.wikipedia.org/wiki/Template:Top2
Thomas_Lerman
Member
 
Posts: 165
Joined: Thu Mar 13, 2008 8:54 am

#4Postby Thomas_Lerman » Fri Mar 14, 2008 9:38 am

Here was another long list of alphabetized lists from my original posting in the other topic:
https://wiki.familysearch.org/en/Traditional_Nicknames_in_Old_Documents_-_A_Wiki_List

I probably do not have time to go through the reference list to take it apart, figure out what it is doing, and implement a new list template (and/or extension). Will have to see though. I actually do not remember seeing anyone use the multi-column reference list.
Thomas_Lerman
Member
 
Posts: 165
Joined: Thu Mar 13, 2008 8:54 am

#5Postby Thomas_Lerman » Fri Mar 14, 2008 9:42 am

Sorry, I took a quick look at the source of Template:Reflist and it appears that it uses the same styles that are used in Template:Top2. I had found this a few days ago and never could get it to work. I do not know if it only works on certain browsers, if the style is missing, or what?
Thomas_Lerman
Member
 
Posts: 165
Joined: Thu Mar 13, 2008 8:54 am

Browsers

#6Postby The_Earl » Fri Mar 14, 2008 11:08 am

Thomas_Lerman wrote:Sorry, I took a quick look at the source of Template:Reflist and it appears that it uses the same styles that are used in Template:Top2. I had found this a few days ago and never could get it to work. I do not know if it only works on certain browsers, if the style is missing, or what?


The reflist page says it only works with CSS3 compatible browsers, namely Mozilla and friends. Likely it does not work with IE6. I do not know if it works w/ IE7.

At the bottom of the page is more documentation on the CSS spec and how to use it. I have not had a chance to look at it.

REFLIST works for me in Firefox on MediaWiki, but I couldn't follow the template structure to get it implemented on FS. You can still see my horrible attempt at my user page.

When I go at it again, I will probably go to the CSS spec and start from there, rather than try to decipher the templates at wikipedia.
The_Earl
Member
 
Posts: 275
Joined: Wed Mar 21, 2007 8:12 am

#7Postby Thomas_Lerman » Fri Mar 14, 2008 11:28 am

Ah, I did not read the template pages close enough to read about the compatibility. If it does not work for most people, should we implement this kind of thing? I suppose that it will start working on some version of IE. If I remember correctly, these templates (and I would guess the styles) only worked with lists as defined with UL or OL and not just breaks between lines.
Thomas_Lerman
Member
 
Posts: 165
Joined: Thu Mar 13, 2008 8:54 am

#8Postby The_Earl » Fri Mar 14, 2008 11:49 am

Thomas_Lerman wrote:Ah, I did not read the template pages close enough to read about the compatibility. If it does not work for most people, should we implement this kind of thing? I suppose that it will start working on some version of IE. If I remember correctly, these templates (and I would guess the styles) only worked with lists as defined with UL or OL and not just breaks between lines.


Templates work sort of as Regular Expression parsers. Most of the list processing I have seen works with line breaks, and are not specifically written for OL or UL lists.

I think reflist builds lists, but it just throws the UL tag at the top (or OL with a starting number) and then adds * or # to the items in the list to get the <LI> tag. I think reflist handles OL / UL, but is not specific for it.

As for implementing the list stuff that only Firefox users can see, I don't really have an opinion. The templates on Wikipedia seem to fail gracefully for IE, so they really don't cause problems. It is a bit of extra complexity that is not needed by most, so it might make sense to spend time elsewhere, rather than pretty multi-col lists that only a few people will ever see.

The Earl
The_Earl
Member
 
Posts: 275
Joined: Wed Mar 21, 2007 8:12 am

#9Postby Thomas_Lerman » Fri Mar 14, 2008 12:16 pm

You are correct about the templates being a parser through a type of scripting. However, the multi-column templates are handled by styles as you also mentioned and not by the parsing with the templates. The styles that are use are listed below. I refer to Template:Top2 as that is the simplist implementation of multiple columns. Template:RefList also uses the same styles, but has many other things too.
  • moz-column-count
  • webkit-column-count
  • column-count

I would have to do some research on these and maybe try it on FF instead of IE. When I tried it on IE, it put lines that I separated with a return (maybe the editor did not actually do a BR between the lines), it put everything on one line instead of a list.
Thomas_Lerman
Member
 
Posts: 165
Joined: Thu Mar 13, 2008 8:54 am

#10Postby mkmurray » Fri Mar 14, 2008 1:26 pm

Thomas_Lerman wrote:I suppose that it will start working on some version of IE.

IE 8 will be totally standards compliant. At the Mix08 conference, they showed how Safari, Firefox, and IE8 were all able to view the website the exact same way (different from IE 7). In fact, they showed a web site that correctly rendered in IE 7 (because it wasn't standards compliant), but not in IE 8, Firefox, and Safari.

IE 8 will have a standards mode and a backwards compatibility mode as well, so I don't know how that will play out.

http://www.readwriteweb.com/archives/internet_explorer_8_has_arrived.php
User avatar
mkmurray
Senior Member
 
Posts: 3213
Joined: Tue Jan 23, 2007 9:56 pm
Location: Utah

Next

Return to FamilySearch Wiki

Who is online

Users browsing this forum: No registered users and 0 guests