Template:Infobox data structure: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
TheOnlyZac (talk | contribs) (Fixed parameters) Tags: Mobile edit Mobile web edit |
TheOnlyZac (talk | contribs) (Move templatedata to doc subpage) |
||
Line 13: | Line 13: | ||
| label3= {{#if: {{{size|}}}|Size|}} |
| label3= {{#if: {{{size|}}}|Size|}} |
||
| data3= {{{size|}}} |
| data3= {{{size|}}} |
||
⚫ | |||
}} |
|||
⚫ | |||
{{Documentation}} |
{{Documentation}} |
||
⚫ | |||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"name": {}, |
|||
"official": { |
|||
"label": "official name?", |
|||
"description": "Whether the article name is the official structure name (y/n)", |
|||
"example": "y", |
|||
"default": "n" |
|||
} |
|||
}, |
|||
"description": "An infobox for data structures." |
|||
} |
|||
⚫ |
Revision as of 04:00, 10 August 2022
An infobox template for data structure articles. It automatically categorizes the article based on the namespace.
Example
Data Structure | |
---|---|
Size | 0x100 |
{{Infobox data structure | size= 0x100 }}
Template data
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for Infobox data structure
An infobox for data structures.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title | Optional, default is page title | String | optional |
official name? | official | Whether the article name is the official structure name (y/n)
| Unknown | optional |
size | size | The size of the struct (in bytes)
| Number | suggested |
Redirects
- {{Infobox struct}}