Template:StellarData.calculateCx

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
  • [[{{{_pageName}}}]] -> {{{world}}} ->{{{UWP}}} -> 1 ++ 1 ++ 1 ++ 1 ## 5

This template is used in conjunction with a query on the StellarData cargo table to recalculate the Cultural Extension (Cx) values. The cultural data changes with some changes to the UWP data. So starting from the base T5 Second Survey data and having data adjusted over time (e.g. New Era) the cultural data needs to be redone.

this thread has the example of how the values should be changes for small era changes.

The stellar data query required for using this template.

{{#cargo_query: tables=StellarData
 |fields=_pageName, world, GROUP_CONCAT(uwp, ' ',ix,' ', COALESCE(cx, '----'), ' ', era ORDER BY era SEPARATOR ', ')=UWP
 |where=sector='Spinward Marches' and subsector='Regina'
 |group by=_pageName,world
 |format=template
 |template=StellarData.calculateCx
 |named args=yes
}}

The output is a list with the existing data:

Alell (world)/data -> Alell (world) ->B56789C-A 3 BB8D Milieu 1116, B56789C-B 3 CB9F New Era -> 11 ++ 11 ++ 8 ++ 9 ## 5

The output values are:

  • A link to the world's data page for access to updating the data
  • The world name
  • The important current data to verify the changes, and be used for the calculations
    • The starting (Milieu 1116) UWP
    • The starting importance
    • The starting Cx value
    • The starting era name
    • The updated UWP
    • The updated importance
    • The updated Cx value, or ----- if none set
    • The updated era name
  • The updated Cx value separated into its constituent parts.
    • Homogeneity: starting value is adjusted by a Flux-3 result
    • Acceptance: Calculated from population and importance
    • Strangeness: Starting values is adjusted by a Flux-3 result
    • Symbols: Regenerated as Flux + TL if the TL has changed, otherwise use the starting value
  • A counter for the random number generator. This is used as a verification.