Template:Infobox Agent: Difference between revisions

From Deceive Inc. Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>This template is a work in progress.</noinclude><includeonly><!-- code_name - str subtitle - str? image - str? legal_name - str? age - int? country_of_origin - str? languages - array[str?] role - enum ("Vanguard", "Disruptor", "Tracker" "Scoundrel") -->{{#vardefine:role|{{#switch:{{lc:{{{role|}}}}} | vanguard = Vanguard | disruptor = Disruptor | tracker = Tracker | scoundrel = Scoundrel | #default = {{ucfirst:{{{role|}}} }} }} }}<!-- -->{{#arraydefine:langu...")
 
m (Added ability to specify catalogue the agent originates from.)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template is a work in progress.</noinclude><includeonly><!--
<noinclude>This template is a work in progress.</noinclude><includeonly><!--


code_name - str
name - str
subtitle - str?
subtitle - str?
image - str?
image - str?
Line 9: Line 9:
languages - array[str?]
languages - array[str?]
role - enum ("Vanguard", "Disruptor", "Tracker" "Scoundrel")
role - enum ("Vanguard", "Disruptor", "Tracker" "Scoundrel")
cost-c - int? - Credits cost
catalogue - string?


-->{{#vardefine:role|{{#switch:{{lc:{{{role|}}}}}
-->{{#vardefine:role|{{#switch:{{lc:{{{role|}}}}}
Line 22: Line 24:
/// Beginning of Infobox ///
/// Beginning of Infobox ///


--><infobox>
--><infobox theme="di">
     <title source="name"><default>{{PAGENAME}}</default></title>
     <title source="name"><default>{{PAGENAME}}</default></title>
     <image source="image">
     <image source="image">
Line 32: Line 34:
         <data source="age"><label>Age</label></data>
         <data source="age"><label>Age</label></data>
         <data source="country_of_origin"><label>Country of Origin</label></data>
         <data source="country_of_origin"><label>Country of Origin</label></data>
         <data source="languages"><label>Languages</label><format>{{#if:{{#arrayprint:shopprint}}|{{#ifexpr: {{#arraysize:shopprint}} > 1 |<ul>{{#arrayprint:shopprint||@@@@|<li>@@@@</li>}}</ul>|{{#arrayprint:shopprint||@@@@|@@@@}}}}|}}</format></data>
         <data source="languages"><label>Languages</label><format>{{#if:{{#arrayprint:languages}}|{{#ifexpr: {{#arraysize:languages}} > 1 |<ul>{{#arrayprint:languages||@@@@|<li>@@@@</li>}}</ul>|{{#arrayprint:languages||@@@@|@@@@}}}}|}}</format></data>
    </group>
    <group name="game_data">
        <header>Game Data</header>
         <data source="role"><label>Agent Role</label><format>{{#var:role}}</format></data>
         <data source="role"><label>Agent Role</label><format>{{#var:role}}</format></data>
        <data source="cost"><label>Cost</label><format>{{credits|{{{cost|}}}}}</format></data>
        <data source="catalogue"><label>Catalogue</label><format>{{#if:{{{catalogue|}}}|{{#ifexist:{{{catalogue}}}|[[{{{catalogue}}}]]|{{{catalogue}}}}}|}}</format></data>
     </group>
     </group>
</infobox></includeonly>
</infobox></includeonly>

Latest revision as of 15:24, 6 September 2023

This template is a work in progress.