Forum:SectorData template

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Forums: Index > Watercooler > SectorData template



As both User:ssteve and User:Maksim-Smelchak have noticed I've been working on the Template:StellarData and the Template:StellarDataQuery. The StellarData template takes all of the data from both the T5 Second Survey data, and the generated information from the Trade Map generator, and puts it into the database in a "Cargo table".

Cargo is, if you have been following along, is part of the Semantic Mediawiki extensions. Cargo specifically allow putting data (like the Survey Data) into the database in a way that is easy to query.

The StellarDataQuery is the base query to format this data into something very nice looking for the individual world page.

What isn't visible from here is the Trade Map Generator (see Trade map summary for the output) is enhanced to generate the data pages and upload them automatically. Right now I'm going through them one by one, so I can find any of the problems, bugs, issue, missing part, etc. The next time I run the Trade map generator process I will be throwing several sectors worth of stellar data pages into the wiki.

There are several clean up tasks that need to be done to make this work smoothly.

  1. Races/summary -> All of the races pages need to have their Infobox Template updated to Template:SophontData. This new template is also a Cargo template, and puts the information into a database table, but the same template also shows the data on the page as well.
  2. Category:Ludography -> Many of the book and magazine entries need to be updated to use Template:InfoboxBook2. This again, is a cargo template, pushing the data into a table in the database. The Template:Ludography cite uses this data to format a correct citation for books, which should be used in the Template:Sources.

I would like to push off the task of updating all the world article with the Template:StellarDataQuery until after I've uploaded the stellar data pages.

If you have feedback on what better we could (or should) capture in these templates, please let me know. It is possible, though sometimes painful, to make changes to data captured in these templates. I would like to do it as few times as possible.

Tjoneslo (talk) 15:39, 17 April 2016 (EDT)

Nobility placement & Climate (2016)

I would like to note that the rough template currently being used:

  1. UWP + synopsis data
  2. description
    1. stellar data
    2. GURPS world data (sometimes)
  3. history
    1. Trade data (sometimes)
    2. historical excerpts
    3. world government excerpts
  4. references
  • Description was designed for astrographical and planetological data that practically doesn't change (gravity, density, etc.)
  • History was designed for sophontilogical (anthropological) data that changes (government, population, economy, etc.)
  • References can use anything including the new citation items. I would like to implement them when they are ready.

The nobility function was designed to fit in the history area. It looks a bit odd under the synopsis in front of description. Wanted to point that out.

Also, climate, a kind of tag (Tp, Co, Ho, etc.) [Temperate, cold, hot, etc.] used for trade codes would be a logical to add to the set.

The climate data is readily added using the SJG GURPS Trav data although due to changes it should be reviewed by someone in the know. Planet size changes, etc. sometimes make the original calculations off.