User:Dr ishmael/Nicholas the Traveler smw test

Past collections
SMW replacements of the tables on Nicholas the Traveler/Past Collections.

Collections details
Implemented.

Items summary
Implemented.

Locations summary and checklist
Unfortunately, now that the storage schema is item-centric, rebuilding the "Location checklist" is going to be more difficult. We could set Property:Traveler date within on the location pages, which would be a pretty simple solution. We're also going to need to convert all 137 locations to the semantic location infobox.

Main Page
Use a subtemplate to reformat the results of a single #ask query
 * Nicholas the Traveler:

Use a #var to store the name of the current location and display the individual data with #show queries
 * Nicholas the Traveler:   |   in

In either case, the wikitext of the main page wouldn't have to change - the changes would be made in the Nicholas template.

Determining known/unknown status
The following query will (once we have the Semantic Result Formats extension installed) return the maximum known value of Property:Traveler index. If the current week's index is greater than this, then we don't yet know what item Nick is collecting.

Item plurals
Plurals have been implemented as a string property within Template:ItemInfo.


 * To pipe a link with the plural: |
 * To just display the plural:

The new Nick template
Instead of having a huge #switch: statement, we have a simple #if: