Difference between revisions of "Template:Type"

From Kolmafia
Jump to navigation Jump to search
m (Philmasterplus moved page User:Philmasterplus/Type to Template:Type: Ready for general use)
Line 43: Line 43:
  
 
==Examples==
 
==Examples==
 +
Note: Use [ ([) and ] (]) to escape brackets in the wiki.
 +
 
===Recognized Types===
 
===Recognized Types===
 
<pre>
 
<pre>
*{{User:Philmasterplus/Type|void}}
+
*{{type|void}}
*{{User:Philmasterplus/Type|boolean}}
+
*{{type|boolean}}
*{{User:Philmasterplus/Type|int}}
+
*{{type|int}}
*{{User:Philmasterplus/Type|float}}
+
*{{type|float}}
*{{User:Philmasterplus/Type|string}}
+
*{{type|string}}
*{{User:Philmasterplus/Type|buffer}}
+
*{{type|buffer}}
*{{User:Philmasterplus/Type|bounty}}
+
*{{type|bounty}}
*{{User:Philmasterplus/Type|class}}
+
*{{type|class}}
*{{User:Philmasterplus/Type|coinmaster}}
+
*{{type|coinmaster}}
*{{User:Philmasterplus/Type|effect}}
+
*{{type|effect}}
*{{User:Philmasterplus/Type|element}}
+
*{{type|element}}
*{{User:Philmasterplus/Type|familiar}}
+
*{{type|familiar}}
*{{User:Philmasterplus/Type|item}}
+
*{{type|item}}
*{{User:Philmasterplus/Type|location}}
+
*{{type|location}}
*{{User:Philmasterplus/Type|monster}}
+
*{{type|monster}}
*{{User:Philmasterplus/Type|phylum}}
+
*{{type|phylum}}
*{{User:Philmasterplus/Type|servant}}
+
*{{type|servant}}
*{{User:Philmasterplus/Type|skill}}
+
*{{type|skill}}
*{{User:Philmasterplus/Type|slot}}
+
*{{type|slot}}
*{{User:Philmasterplus/Type|stat}}
+
*{{type|stat}}
*{{User:Philmasterplus/Type|thrall}}
+
*{{type|thrall}}
*{{User:Philmasterplus/Type|matcher}}
+
*{{type|matcher}}
*{{User:Philmasterplus/Type|record}}
+
*{{type|record}}
*{{User:Philmasterplus/Type|aggregate}}
+
*{{type|aggregate}}
 
</pre>
 
</pre>
  
*{{User:Philmasterplus/Type|void}}
+
*{{type|void}}
*{{User:Philmasterplus/Type|boolean}}
+
*{{type|boolean}}
*{{User:Philmasterplus/Type|int}}
+
*{{type|int}}
*{{User:Philmasterplus/Type|float}}
+
*{{type|float}}
*{{User:Philmasterplus/Type|string}}
+
*{{type|string}}
*{{User:Philmasterplus/Type|buffer}}
+
*{{type|buffer}}
*{{User:Philmasterplus/Type|bounty}}
+
*{{type|bounty}}
*{{User:Philmasterplus/Type|class}}
+
*{{type|class}}
*{{User:Philmasterplus/Type|coinmaster}}
+
*{{type|coinmaster}}
*{{User:Philmasterplus/Type|effect}}
+
*{{type|effect}}
*{{User:Philmasterplus/Type|element}}
+
*{{type|element}}
*{{User:Philmasterplus/Type|familiar}}
+
*{{type|familiar}}
*{{User:Philmasterplus/Type|item}}
+
*{{type|item}}
*{{User:Philmasterplus/Type|location}}
+
*{{type|location}}
*{{User:Philmasterplus/Type|monster}}
+
*{{type|monster}}
*{{User:Philmasterplus/Type|phylum}}
+
*{{type|phylum}}
*{{User:Philmasterplus/Type|servant}}
+
*{{type|servant}}
*{{User:Philmasterplus/Type|skill}}
+
*{{type|skill}}
*{{User:Philmasterplus/Type|slot}}
+
*{{type|slot}}
*{{User:Philmasterplus/Type|stat}}
+
*{{type|stat}}
*{{User:Philmasterplus/Type|thrall}}
+
*{{type|thrall}}
*{{User:Philmasterplus/Type|matcher}}
+
*{{type|matcher}}
*{{User:Philmasterplus/Type|record}}
+
*{{type|record}}
*{{User:Philmasterplus/Type|aggregate}}
+
*{{type|aggregate}}
  
 
===Unrecognized Types===
 
===Unrecognized Types===
 
<pre>
 
<pre>
*{{User:Philmasterplus/Type|boolean [monster]}}
+
*{{type|boolean [monster]}}
*{{User:Philmasterplus/Type|{{User:Philmasterplus/Type|string}} &#91;{{User:Philmasterplus/Type|int}}, {{User:Philmasterplus/Type|item}}&#93;}}
+
*{{type|{{type|string}} &#91;{{type|int}}, {{type|item}}&#93;}}
 
</pre>
 
</pre>
  
*{{User:Philmasterplus/Type|boolean [monster]}}
+
*{{type|boolean [monster]}}
*{{User:Philmasterplus/Type|{{User:Philmasterplus/Type|string}} &#91;{{User:Philmasterplus/Type|int}}, {{User:Philmasterplus/Type|item}}&#93;}}
+
*{{type|{{type|string}} &#91;{{type|int}}, {{type|item}}&#93;}}
 
</noinclude>
 
</noinclude>

Revision as of 21:28, 18 December 2020


Converts an ASH data type name to a link.

Template parameters

ParameterDescriptionTypeStatus
Data type1

Any valid type keyword, such as "string", "void", "equipment", or a generic type ("aggregate", "composite"). Any unrecognized type string is returned as-is.

Example
int
Linerequired

Examples

Note: Use &#91; ([) and &#93; (]) 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}}

Unrecognized Types

*{{type|boolean [monster]}}
*{{type|{{type|string}} [{{type|int}}, {{type|item}}]}}