Template talk:GURPS Worlds paragraph

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search

Notes (2013)[edit]

Need a little help with this: the parameters gtDiameter, gtGravity, and gtHydro can have both numeric (most commonly) or text data. gtDiameter can be "Asteroids," gtGravity can be "N/A," and gtHydro can be "None". Can't quite figure out how to do an If statement to switch output based on input.

Mostly the parameters are text substitution so providing numbers or text doesn't matter. You can use the parser functions to clean up the output if desired. Example:
{{#ifeq: {{{gtHydro}}}| None | | %}}
Tjoneslo (talk) 12:12, 17 October 2013 (EDT)