Template:Infobox data structure: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Tweaked name, added TemplateData)
m (Fix typo)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Infobox
| name=Template:Infobox data structure
| title= {{{name|{{PAGENAME}}}}}
| title= {{{title|{{PAGENAME}}}}}
| style= width: 100px;
| above= Data Structure
| above= Data Structure
| image= {{#if:{{{image|}}}|{{Image exists|file={{{image|}}}|width={{{width|360px}}}}}}}
| caption= {{{caption|}}}
| label1= Game
| label1= Game
| data1= {{Sly other
| data1= {{#ifeq: {{{sly1}}} | y | [[Sly 1]][[Category:Data structures in Sly 1]] | }}
{{#ifeq: {{{sly2}}} | y | [[Sly 2]][[Category:Data structures in Sly 2]] | }}
| sly1= [[Sly 1|{{Sly 1}}]][[Category:Data structures in Sly 1]]
{{#ifeq: {{{sly3}}} | y | [[Sly 3]][[Category:Data structures in Sly 3]] | }}
| sly2= [[Sly 2|{{Sly 2}}]][[Category:Data structures in Sly 2]]
| sly3= [[Sly 3|{{Sly 3}}]][[Category:Data structures in Sly 3]]
| label2= {{#if: {{{official}}} | Official Name | }}
| sly4= [[Sly 4|{{Sly 4}}]][[Category:Data structures in Sly 4]]
| data2= {{#ifeq: {{{official}}} | y | Yes | }}{{#ifeq: {{{official}}} | n | No| }}
}}
}}
| label2= {{#if: {{{size|}}}|Size|}}
[[Category:Data structures]]</includeonly><noinclude>
| data2= {{{size|}}}
| label3= {{#if: {{{official|}}}|Official Name|}}
| data3= {{#ifeq: {{{official|}}} | y | Yes | }}{{#ifeq: {{{official|}}} | n | No| }}
}}{{Article only|[[Category:Data structures]]}}
{{WikiSEO helper
| title={{Main other | {{PAGENAME}} in {{NAMESPACE}} | {{FULLPAGENAME}} }}
| description={{Main other | {{PAGENAME}} is a data structure used in {{Sly other|sly1={{Sly 1}}|sly2={{Sly 2}}|sly3={{Sly 3}}|sly4={{Sly 4}}|other=the Sly Cooper series}} |}}.
| image={{{{image|}}}
| keywords=data structures, structure, struct, programming, logic, symbol, variable, variables, fields, classes, class, C++, C, datatype, data type, type, types, fields
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
<templatedata>
{
"params": {
"name": {},
"sly1": {},
"sly2": {},
"sly3": {},
"official": {
"label": "official name?",
"description": "Whether the article name is the official structure name (y/n)",
"example": "y",
"default": "n"
}
}
}
</templatedata></noinclude>

Latest revision as of 17:26, 26 September 2023