Template:Infobox data structure: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
TheOnlyZac (talk | contribs) (Tweaked name, added TemplateData) |
TheOnlyZac (talk | contribs) (Added sot keys and namespace check for categories) |
||
Line 3: | Line 3: | ||
| above= Data Structure |
| above= Data Structure |
||
| label1= Game |
| label1= Game |
||
| data1= {{#ifeq: {{{sly1}}} | y | [[Sly 1]][[Category:Data structures in Sly 1]] | }} |
| data1= {{#ifeq: {{{sly1}}} | y | {{ns0|[[Sly 1]][[Category:Data structures in Sly 1|{{PAGENAME}}]]}} | }} |
||
{{#ifeq: {{{sly2}}} | y | [[Sly 2]][[Category:Data structures in Sly 2]] | }} |
{{#ifeq: {{{sly2}}} | y | {{ns0|[[Sly 2]][[Category:Data structures in Sly 2|{{PAGENAME}}]]}} | }} |
||
{{#ifeq: {{{sly3}}} | y | [[Sly 3]][[Category:Data structures in Sly 3]] | }} |
{{#ifeq: {{{sly3}}} | y | {{ns0|[[Sly 3]][[Category:Data structures in Sly 3|{{PAGENAME}}]]}} | }} |
||
| label2= {{#if: {{{official}}} | Official Name | }} |
| label2= {{#if: {{{official}}} | Official Name | }} |
||
| data2= {{#ifeq: {{{official}}} | y | Yes | }}{{#ifeq: {{{official}}} | n | No| }} |
| data2= {{#ifeq: {{{official}}} | y | Yes | }}{{#ifeq: {{{official}}} | n | No| }} |
||
}} |
}} |
||
[[Category:Data structures]]</includeonly><noinclude> |
{{ns0|[[Category:Data structures|{{PAGENAME}}]]}}</includeonly><noinclude> |
||
{{Documentation}} |
{{Documentation}} |
||
<templatedata> |
<templatedata> |
Revision as of 02:29, 2 August 2022
An infobox template for data structure articles. It automatically categorizes the article based on the namespace.
Example
Data Structure |
---|
{{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}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | no description | Unknown | optional |
sly1 | sly1 | no description | Unknown | optional |
sly2 | sly2 | no description | Unknown | optional |
sly3 | sly3 | no description | Unknown | optional |
official name? | official | Whether the article name is the official structure name (y/n)
| Unknown | optional |