GuildWiki

GuildWiki has been locked down: anonymous editing and account creation are disabled. Current registered users are unaffected. Leave any comments on the Community Portal.

READ MORE

GuildWiki
Advertisement

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 {{TravelerLocationInfo}} 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: {{#ask: Traveler index::98 | ?Traveler quantity | ?Traveler location | format=template | template=User:Dr ishmael/Nicholas the Traveler smw template2 | link=none }}

Use a #var to store the name of the current location and display the individual data with #show queries

  • Nicholas the Traveler: {{#show:{{#ask:Traveler index::98|link=none}}|?Traveler quantity}} [[{{#ask:Traveler index::98|link=none}} | {{#show:{{#ask:Traveler index::98|link=none}}|?plural}} ]] in {{#show:{{#ask:Traveler index::98|link=none}}|?Traveler location}}

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 returns 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.

{{#ask:[[Traveler index::+]]|?Traveler index|limit=137|format=max}}

  • Max = {{#ask:Traveler index::+|?Traveler index|limit=137|format=max}}

Item plurals[ | ]

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

  • To pipe a link with the plural: [[{{#ask:Traveler index::98|link=none}} | {{#show:{{#ask:Traveler index::98|link=none}}|?plural}} ]]
  • To just display the plural: {{#show:{{#ask:Traveler index::98|link=none}}|?plural}}

The new Nick template[ | ]

Instead of having a huge #switch: statement, we have a simple #if:

{{#ifexpr:{{Nicholas the Traveler/index|{{{1|}}}}} > {{#ask:[[Traveler index::+]]|?Traveler index|limit=137|format=max}}
  | {{#widget:TravelerUnknown}}
  | {{#ask: [[Traveler index::{{Nicholas the Traveler/index|{{{1|}}}}}]] | ?Traveler quantity | ?Traveler location | format=template | template=Nicholas the Traveler/Main Page | link=none }}
}}
Advertisement