Template:Type: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>{{#switch:{{{1|}}} |void=void |boolean=boolean |int=int |float=float |string=..." |
Don't bother with complex types...for now |
||
| Line 23: | Line 23: | ||
|matcher=[[Data Types#matcher|matcher]] | |matcher=[[Data Types#matcher|matcher]] | ||
|record=[[Data Types#record|record]] | |record=[[Data Types#record|record]] | ||
| | |aggregate=[[Data Types#record|aggregate]] | ||
|{{{1|}}} | |{{{1|}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
| Line 29: | Line 29: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "Converts an ASH data type name to a link.", | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "Data type", | "label": "Data type", | ||
"description": " | "description": "Any valid type keyword, such as \"string\", \"void\", \"equipment\", or a generic type (\"aggregate\", \"composite\"). Any unrecognized type string is returned as-is.", | ||
"type": "line", | "type": "line", | ||
"required": true, | "required": true, | ||
| Line 43: | Line 43: | ||
==Examples== | ==Examples== | ||
=== | ===Recognized Types=== | ||
<pre> | <pre> | ||
*{{User:Philmasterplus/Type|void}} | *{{User:Philmasterplus/Type|void}} | ||
| Line 68: | Line 68: | ||
*{{User:Philmasterplus/Type|matcher}} | *{{User:Philmasterplus/Type|matcher}} | ||
*{{User:Philmasterplus/Type|record}} | *{{User:Philmasterplus/Type|record}} | ||
*{{User:Philmasterplus/Type|aggregate}} | |||
</pre> | </pre> | ||
| Line 93: | Line 94: | ||
*{{User:Philmasterplus/Type|matcher}} | *{{User:Philmasterplus/Type|matcher}} | ||
*{{User:Philmasterplus/Type|record}} | *{{User:Philmasterplus/Type|record}} | ||
*{{User:Philmasterplus/Type|aggregate}} | |||
=== | ===Unrecognized Types=== | ||
<pre> | <pre> | ||
*{{User:Philmasterplus/Type|boolean [monster]}} | *{{User:Philmasterplus/Type|boolean [monster]}} | ||
*{{User:Philmasterplus/Type|{{User:Philmasterplus/Type|string}} [{{User:Philmasterplus/Type|int}}, {{User:Philmasterplus/Type|item}}]}} | |||
</pre> | </pre> | ||
*{{User:Philmasterplus/Type|boolean [monster]}} | *{{User:Philmasterplus/Type|boolean [monster]}} | ||
*{{User:Philmasterplus/Type|{{User:Philmasterplus/Type|string}} [{{User:Philmasterplus/Type|int}}, {{User:Philmasterplus/Type|item}}]}} | |||
</noinclude> | </noinclude> | ||
Revision as of 21:27, 18 December 2020
Converts an ASH data type name to a link.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Data type | 1 | Any valid type keyword, such as "string", "void", "equipment", or a generic type ("aggregate", "composite"). Any unrecognized type string is returned as-is.
| Line | required |
Examples
Recognized Types
*{{User:Philmasterplus/Type|void}}
*{{User:Philmasterplus/Type|boolean}}
*{{User:Philmasterplus/Type|int}}
*{{User:Philmasterplus/Type|float}}
*{{User:Philmasterplus/Type|string}}
*{{User:Philmasterplus/Type|buffer}}
*{{User:Philmasterplus/Type|bounty}}
*{{User:Philmasterplus/Type|class}}
*{{User:Philmasterplus/Type|coinmaster}}
*{{User:Philmasterplus/Type|effect}}
*{{User:Philmasterplus/Type|element}}
*{{User:Philmasterplus/Type|familiar}}
*{{User:Philmasterplus/Type|item}}
*{{User:Philmasterplus/Type|location}}
*{{User:Philmasterplus/Type|monster}}
*{{User:Philmasterplus/Type|phylum}}
*{{User:Philmasterplus/Type|servant}}
*{{User:Philmasterplus/Type|skill}}
*{{User:Philmasterplus/Type|slot}}
*{{User:Philmasterplus/Type|stat}}
*{{User:Philmasterplus/Type|thrall}}
*{{User:Philmasterplus/Type|matcher}}
*{{User:Philmasterplus/Type|record}}
*{{User:Philmasterplus/Type|aggregate}}
- void
- boolean
- int
- float
- string
- buffer
- bounty
- class
- coinmaster
- effect
- element
- familiar
- item
- location
- monster
- phylum
- servant
- skill
- slot
- stat
- thrall
- matcher
- record
- aggregate
Unrecognized Types
*{{User:Philmasterplus/Type|boolean [monster]}}
*{{User:Philmasterplus/Type|{{User:Philmasterplus/Type|string}} [{{User:Philmasterplus/Type|int}}, {{User:Philmasterplus/Type|item}}]}}