Select color (TQL): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (17 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{Select TQL|<onlyinclude> | ||
{{Select TQL|tabletype=row|attribute=COLOR|unit=[[Color#HEX_format|HEX Color]]|description=Returns the value of the Color of an [[Item]] in HEX format|fixed=1|polygon=false|}}</onlyinclude> | |||
}} | |||
==Allowed clause parameters== | |||
{{Param TQL| | |||
{{: Address (TQL Param)}} | |||
{{: Area (TQL Param)}} | |||
{{: Building (TQL Param)}} | |||
{{: Category (TQL Param)}} | {{: Category (TQL Param)}} | ||
{{: Function (TQL Param)}} | {{: Function (TQL Param)}} | ||
{{: Indicator (TQL Param)}} | {{: Indicator (TQL Param)}} | ||
{{: Neighborhood (TQL Param)}} | {{: Neighborhood (TQL Param)}} | ||
{{: Net function (TQL Param)}} | {{: Net function (TQL Param)}} | ||
{{: Net line (TQL Param)}} | {{: Net line (TQL Param)}} | ||
{{: Overlay (TQL Param)}} | |||
{{: Panel (TQL Param)}} | |||
{{: Stakeholder (TQL Param)}} | |||
{{: Stakeholdertype (TQL Param)}} | |||
{{: Terrain (TQL Param)}} | |||
{{: Zone (TQL Param)}} | |||
}} | }} | ||
==Examples== | |||
* <code>SELECT_COLOR_WHERE_AREA_IS_5</code> | |||
:: ''Returns the [[Color#HEX_format|HEX Color]] of the COLOR [[Attribute]] of the [[Area]] with Item ID 5.'' | |||
* <code>SELECT_COLOR_WHERE_STAKEHOLDER_IS_3</code> | |||
:: ''Returns the [[Color#HEX_format|HEX Color]] of the color parameter of the [[Stakeholder]] with Item ID 3.'' | |||
* <code>SELECT_COLOR_WHERE_STAKEHOLDERTYPE_IS_MUNICIPALITY</code> | |||
:: ''Returns the [[Color#HEX_format|HEX Color]] of the default color of the Stakeholder Type MUNICIPALITY.'' | |||
{{article end | |||
|notes= | |||
* [[Function (TQL Param)]] and [[Building (TQL Param)]] return the color of their first [[Category]]. | |||
}} | |||
{{TQL nav}} | {{TQL nav}} | ||
Latest revision as of 09:31, 9 June 2026
| Select | Unit | Description | Fixed clause amount | Polygon based |
|---|---|---|---|---|
| COLOR | HEX Color | Returns the value of the Color of an Item in HEX format | 1 | false |
Allowed clause parameters
| Param | Value | Description | Limits search polygon |
|---|---|---|---|
| ADDRESS |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Address with ID | false |
| AREA |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Area with ID | true |
| BUILDING |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Building with ID | false |
| CATEGORY |
Category X, Y, XA, YA |
Category with this value Buildings of this Category |
false |
| FUNCTION |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Function with ID | false |
| INDICATOR |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Indicator with ID | false |
| NEIGHBORHOOD |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Neighborhood with ID | true |
| NET_FUNCTION |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Net Function with ID | false |
| NET_LINE |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Net Line with ID | false |
| OVERLAY |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Overlay with ID | false |
| PANEL |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Panel with ID | false |
| STAKEHOLDER |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Stakeholder with ID Only include Plots that are owned by the stakeholder with this ID Only include Items that are related to this stakeholder |
true |
| STAKEHOLDERTYPE | Stakeholder Type | Stakeholder Type with this value Only include Plots that are owned by this type of Stakeholder |
true |
| TERRAIN |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Terrain of Terrain Type with ID | true |
| ZONE |
Integer (Item ID), ID, X, Y, XC, YC XA, YA, XK or YK |
Zone with ID | true |
Examples
SELECT_COLOR_WHERE_AREA_IS_5
SELECT_COLOR_WHERE_STAKEHOLDER_IS_3
- Returns the HEX Color of the color parameter of the Stakeholder with Item ID 3.
SELECT_COLOR_WHERE_STAKEHOLDERTYPE_IS_MUNICIPALITY
- Returns the HEX Color of the default color of the Stakeholder Type MUNICIPALITY.
Notes
- Function (TQL Param) and Building (TQL Param) return the color of their first Category.