Difference between revisions of "Template:Infobox type"

From OXPL Wiki
Jump to navigation Jump to search
(Created page)
 
(Range)
Line 9: Line 9:
 
|label3={{#if: {{{similar|}}} | Similar to}}
 
|label3={{#if: {{{similar|}}} | Similar to}}
 
|data3={{{similar|}}}
 
|data3={{{similar|}}}
 +
|label4={{#if: {{{range|}}} | Range}}
 +
|data4={{{range|}}}
 
}}</onlyinclude></includeonly><noinclude>
 
}}</onlyinclude></includeonly><noinclude>
 
Example:
 
Example:
<pre>{{Infobox type|name=uint8|family=prim|similar=[[uint16]], [[uint32]]}}</pre>
+
<pre>{{Infobox type|name=uint8|family=prim|similar=[[uint16]], [[uint32]]|range=0..2<sup>16</sup>-1}}</pre>
 
creates:
 
creates:
{{Infobox type|name=uint8|family=prim|similar=[[uint16]], [[uint32]]}}
+
{{Infobox type|name=uint8|family=prim|similar=[[uint16]], [[uint32]]|range=0..2<sup>16</sup>-1}}
 
</noinclude>
 
</noinclude>

Revision as of 21:54, 21 January 2021

Example:

{{Infobox type|name=uint8|family=prim|similar=[[uint16]], [[uint32]]|range=0..2<sup>16</sup>-1}}

creates:

uint8 type
Address prim::uint8
Family primitive
Similar to uint16, uint32
Range 0..216-1