Talk:List of Artifacts/Archive

From GodWiki
< Talk:List of Artifacts
Revision as of 10:01, 2 April 2019 by FeRDNYC (talk | contribs) (Archiving old discussions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Page generator

Will get to here too... Have additions, know that there were uniques... Will make a page generator for here too (I thought I had that done, may have overwritten it :S).

  • Also note that you aren't parsing UNICODE correctly: "“Avoiding Dummies for Dummies” book" should be "“Avoiding Dummies for Dummies” book". I saw some changes that had been manually done to " or ', though may have been original.
  • Also note that you removed the legend key and the anchors.

Felai (talk) 07:18, 28 October 2013 (GMT)


Spurious hyphen

Fixed.png Fixed

I restored the Artifact Types legend-table to this page, from an old 2013 revision before it was lost to the mists of time. In the process, I added section headings and did a little formatting cleanup.

Observant readers will notice a spurious hyphen between the Artifacts heading and the table below it. That hyphen has actually been occurring on the page for some time, although the section heading certainly serves to shine a big spotlight on it.

It must be coming from somewhere in the wikitable code below, though for the life of me I can't figure out where. Anyone who manages to spot the source of said hyphen and kill it wins bragging rights for a good week or two. (Some restrictions apply. Offer void where lame.) – FeRDNYC (talk) 04:01, 22 July 2015 (UTC)

I finally managed to whack this! I ended up making a copy of the code to a sandbox page, then splitting the table up into smaller and smaller chunks by inserting duplicated section and table headings above the existing alpha-sort headers. That allowed me to find the location of the hyphen by observing which section the hyphen stayed with.
Once I'd narrowed it down to the "S" section of the table, it was easy enough to read through that code and spot the extraneous character. -- FeRDNYC (talk) 08:56, 12 May 2016 (UTC)



Tick.png Done

I found a method to make our no-column-headers list tables sortable from the index row (the natural place to perform sorts), and am applying that to all of the relevant "List of..." articles. However, for lists like this one to be properly sortable the data will require extensive further changes.

The problem comes from all of the rows which begin with a special character. The default wiki sorting will sort those rows by that character, when it should't. So, for instance, "Do Disturb" sign will be sorted directly after "Crash Testing for Dummies" book at the very beginning of the table, in an ascending sort, because by default the wiki sorts in ASCII order and the first three printable characters in ASCII are SPACE, !, and ".

Confusingly, by contrast, entries that use "smart quotes" ( and ) will sort to the bottom, because is a high-order symbol in the character table. It's not actually part of the ASCII character set at all, rather (for our purposes) it's Unicode glyph U+201C.

This can be fixed, by adding a data-sort-value="" parameter to each row that needs its sort order adjusted. That parameter would be set to the cell data as it should be interpreted for sorting, with any special characters removed. So, for instance, the wikitext for the "Do Disturb" sign row currently reads:

| [["Do Disturb" sign]]   ||   ||  

To sort properly, it would be changed to:

| data-sort-value="Do Disturb sign" | [["Do Disturb" sign]]   ||   ||  

This must be done individually for every row starting with ", ', , and the like. I will try to work through the list tables making these changes as I'm able to find time, but assistance is welcome and appreciated. Even if you only do a few entries, or one entry, it helps make the data more sortable. There's no real downside to a half-fixed table, it just means we're halfway to having proper sorting. -- FeRDNYC (talk) 18:20, 29 April 2018 (UTC)

UPDATE: I have now done this for (hopefully) all necessary entries up through the "M" section. -- FeRDNYC (talk) 06:39, 11 May 2018 (UTC)
UPDATE 2: This is now completed for all entries, and nothing is sorting out-of-order. (Also, of no particular relevance, because of the way sort keys are handled for Special section entries the sort key for ends up being data-sort-value="ZZSpecial snowflake", which I find amusing.) -- FeRDNYC (talk) 10:17, 13 May 2018 (UTC)