Difference between revisions of "Template:Graph:CategoryPie"

From Public Play Space Community
Line 8: Line 8:
       "name": "table",
       "name": "table",
       "values": [
       "values": [
{{#switch: {{{sensordata}}}
{{#switch: {{{GAME}}}
  | 1 = {"name":"GAME","color":"#2bddff","data":1}[[Category:SensorData]],
  | 1 = {"name":"GAME","color":"#2bddff","data":1}[[Category:GAME]],
  | 0 = {"name":"GAME","color":"#e2ebf8","data":1},
  | 0 = {"name":"GAME","color":"#e2ebf8","data":1},
  | #default = {"name":"GAME","color":"#e2ebf8","data":1},
  | #default = {"name":"GAME","color":"#e2ebf8","data":1},

Revision as of 07:30, 20 May 2020


Syntax error


Template for selecting a parameter to the pie

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
GAMEGAME

State whether this type of parameter is used by the project.

Default
1
Booleanrequired
PLAYPLAY

State whether this type of parameter is used by the project.

Default
1
Booleanrequired
SPACESPACE

State whether this type of parameter is used by the project.

Default
1
Booleanrequired