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=..." |
Add Category:Basic Templates |
||
| (7 intermediate revisions by the same user not shown) | |||
| 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== | ||
=== | Note: Use <code>[[Template:opt|<nowiki>{{opt|type name}}</nowiki>]]</code> to escape brackets in the wiki. | ||
===Recognized Types=== | |||
<pre> | <pre> | ||
*{{ | *{{type|void}} | ||
*{{ | *{{type|boolean}} | ||
*{{ | *{{type|int}} | ||
*{{ | *{{type|float}} | ||
*{{ | *{{type|string}} | ||
*{{ | *{{type|buffer}} | ||
*{{ | *{{type|bounty}} | ||
*{{ | *{{type|class}} | ||
*{{ | *{{type|coinmaster}} | ||
*{{ | *{{type|effect}} | ||
*{{ | *{{type|element}} | ||
*{{ | *{{type|familiar}} | ||
*{{ | *{{type|item}} | ||
*{{ | *{{type|location}} | ||
*{{ | *{{type|monster}} | ||
*{{ | *{{type|phylum}} | ||
*{{ | *{{type|servant}} | ||
*{{ | *{{type|skill}} | ||
*{{ | *{{type|slot}} | ||
*{{ | *{{type|stat}} | ||
*{{ | *{{type|thrall}} | ||
*{{ | *{{type|matcher}} | ||
*{{ | *{{type|record}} | ||
*{{type|aggregate}} | |||
</pre> | </pre> | ||
*{{ | *{{type|void}} | ||
*{{ | *{{type|boolean}} | ||
*{{ | *{{type|int}} | ||
*{{ | *{{type|float}} | ||
*{{ | *{{type|string}} | ||
*{{ | *{{type|buffer}} | ||
*{{ | *{{type|bounty}} | ||
*{{ | *{{type|class}} | ||
*{{ | *{{type|coinmaster}} | ||
*{{ | *{{type|effect}} | ||
*{{ | *{{type|element}} | ||
*{{ | *{{type|familiar}} | ||
*{{ | *{{type|item}} | ||
*{{ | *{{type|location}} | ||
*{{ | *{{type|monster}} | ||
*{{ | *{{type|phylum}} | ||
*{{ | *{{type|servant}} | ||
*{{ | *{{type|skill}} | ||
*{{ | *{{type|slot}} | ||
*{{ | *{{type|stat}} | ||
*{{ | *{{type|thrall}} | ||
*{{ | *{{type|matcher}} | ||
*{{ | *{{type|record}} | ||
*{{type|aggregate}} | |||
=== | ===Unrecognized Types=== | ||
<pre> | <pre> | ||
*{{ | *{{type|boolean {{opt|monster}}}} | ||
*{{type|{{type|string}} {{opt|{{type|int}}, {{type|item}}}}}} | |||
</pre> | </pre> | ||
*{{ | *{{type|boolean {{opt|monster}}}} | ||
*{{type|{{type|string}} {{opt|{{type|int}}, {{type|item}}}}}} | |||
[[Category:Basic Templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 07:10, 22 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
Note: Use {{opt|type name}} to escape brackets in the wiki.
Recognized Types
*{{type|void}}
*{{type|boolean}}
*{{type|int}}
*{{type|float}}
*{{type|string}}
*{{type|buffer}}
*{{type|bounty}}
*{{type|class}}
*{{type|coinmaster}}
*{{type|effect}}
*{{type|element}}
*{{type|familiar}}
*{{type|item}}
*{{type|location}}
*{{type|monster}}
*{{type|phylum}}
*{{type|servant}}
*{{type|skill}}
*{{type|slot}}
*{{type|stat}}
*{{type|thrall}}
*{{type|matcher}}
*{{type|record}}
*{{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
*{{type|boolean {{opt|monster}}}}
*{{type|{{type|string}} {{opt|{{type|int}}, {{type|item}}}}}}