Difference between revisions of "Template:AR Equipment extended infobox"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> |{{#subobject:equipment{{#vardefineecho:equipmentumber|{{#expr:{{#var:equipmentnumber|-1}}+1}}}} | <includeonly><onlyinclude>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> |{{#arraydefine:illustrator|{{{illustrator|}}}|;}}{{#vardefine:counter|0}}{{#arrayprint:illustrator | ||
| | |||
| @@@ | |||
| {{#vardefine:illustrator subobj {{#var:counter}}| | |||
{{#ask: | |||
[[Has game context::Illustrator]] | |||
[[Has Japanese name::@@@]] | |||
|link=none | |||
|limit=1 | |||
|headers=hide | |||
|searchlabel= | |||
}} | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}}{{#vardefine:counter|0}}{{#arrayprint:illustrator | |||
| | |||
| @@@ | |||
| {{#vardefine:illustrator en name {{#var:counter}}| | |||
{{#if: {{#var:illustrator subobj {{#var:counter}} }} | |||
| {{#show: {{#var:illustrator subobj {{#var:counter}} }} |?Has English name }} | |||
}} | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}}{{#subobject:equipment{{#vardefineecho:equipmentumber|{{#expr:{{#var:equipmentnumber|-1}}+1}}}} | |||
| Has game context = AR Equipment | | Has game context = AR Equipment | ||
| Has Japanese name = {{{name|}}} | | Has Japanese name = {{{name|}}} | ||
Line 7: | Line 30: | ||
| Has ID = {{{id|}}} | | Has ID = {{{id|}}} | ||
| Has filename = {{{filename|}}} | | Has filename = {{{filename|}}} | ||
| Has illustrator = {{{illustrator|}}} | | Has illustrator ={{#if:{{{illustrator|}}}| | ||
{{#vardefine:counter|0}} | |||
{{#arrayprint:illustrator | |||
| ### | |||
| @@@ | |||
| {{#var:illustrator subobj {{#var:counter}}|-}};@@@;{{#var:illustrator en name {{#var:counter}}|@@@}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
}} | |||
| Has acquisition = {{{acquisition|}}} | | Has acquisition = {{{acquisition|}}} | ||
}} | }} |
Revision as of 13:23, 30 September 2019
Description
Both creates an infobox and defines a subobject for AR Equipment. Additional parameters include:
{{#vardefine:ar equipment acquisition|}} {{#vardefine:ar equipment en name|}} {{#vardefine:ar equipment en note|}} {{#vardefine:ar equipment acquisition|}}
Like other extended infobox templates, invocation of this template is to be done through the corresponding {{#masterdata:Equip|ID}}
extension call.