Template:Character: Difference between revisions

Jump to navigation Jump to search
570 bytes added ,  16:57, 26 August 2019
character no longer stores ID, added swarmbonus and isswarmer attributes
mNo edit summary
(character no longer stores ID, added swarmbonus and isswarmer attributes)
Line 1: Line 1:
<noinclude>[[Category:Cargo Store Templates]]{{#cargo_declare:_table=Characters|
<noinclude>[[Category:Cargo Store Templates]]
{{#cargo_declare:_table=Characters|
Title=Wikitext|
Title=Wikitext|
Level=Integer|
Level=Integer|
Line 22: Line 23:
HarvestedInto=Page|
HarvestedInto=Page|
Role=String|
Role=String|
ObjectID=String|
Extra=Text}}
Extra=Searchtext}}
 
{{#cargo_attach:
{{#cargo_attach:
_table = GeneralData
_table = GeneralData
Line 48: Line 49:
HarvestedInto={{{harvestedinto|}}}|
HarvestedInto={{{harvestedinto|}}}|
Role={{{role|}}}|
Role={{{role|}}}|
Extra={{#ifeq: {{{isswarmer|}}}|yes|{{#if:{{{swarmbonus|}}}|Swarm Alpha: +{{{swarmbonus}}}</br>|Swarmer</br>}}}}{{{{extra|}}}}}<!--
  General Data Cargo Store
-->{{#cargo_store:_table=GeneralData|
ObjectID={{{id|}}}|
ObjectID={{{id|}}}|
Extra={{{extra|}}}}}{{#cargo_store:_table=GeneralData|
DisplayName={{{title|{{PAGENAME}}}}}|
ObjectID={{{id|}}}|DisplayName={{{title|{{PAGENAME}}}}}|
Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}|
Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}|
PlainName={{#titleparts:{{PAGENAME}}}}|
PlainName={{#titleparts:{{PAGENAME}}}}|
DisplayChar={{qud char|{{{colorstr|}}}|{{{renderstr|}}}}} }}{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}{{#invoke:infobox|infobox
DisplayChar={{qud char|{{{colorstr|}}}|{{{renderstr|}}}}} }}<!--
 
  Article Variable definitions for convenience
 
>{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}<!--
 
-->{{#invoke:infobox|infobox
| class = qud-character-infobox
| class = qud-character-infobox
| rows =
| rows =
Line 262: Line 273:
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|[[{{{harvestedinto}}}]] }} }}
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|[[{{{harvestedinto}}}]] }} }}
{{#if: {{{role|}}}        | {{infobox row|Role|{{{role}}} }} }}
{{#if: {{{role|}}}        | {{infobox row|Role|{{{role}}} }} }}
{{#if: {{{extra|}}}       | {{infobox row|Other Info|{{{extra}}} }} }}
{{#if: {{{extra|}}}{{#ifeq:{{{isswarmer|}}}|yes|yes}}  | {{infobox row|Other Info|{{#ifeq:{{{isswarmer|}}}|yes|{{#if:{{{swarmbonus|}}}|Swarm Alpha: As long as this creature is adjacent to its target, it grants +{{{swarmbonus}}} to the swarm bonuses of each other swarmer who is adjacent to its target.|Swarmer: This creature receives +1 to its to-hit and penetration rolls for each other swarmer beyond the first who is adjacent to its target.</br>}} }} {{{{extra|}}} }} }}
}} <!-- END OF MAIN INFOBOX -->
}} <!-- END OF MAIN INFOBOX -->
{{#if: {{{desc|}}}        | {{Qud look|text={{grammar|text={{{desc}}}|gender={{{gender|nonspecific}}}|{{#if: {{{pronouns|}}}|pronouns={{{pronouns}}}}}}}|title={{{title|{{PAGENAME}} }}} }}  }}
{{#if: {{{desc|}}}        | {{Qud look|text={{grammar|text={{{desc}}}|gender={{{gender|nonspecific}}}|{{#if: {{{pronouns|}}}|pronouns={{{pronouns}}}}}}}|title={{{title|{{PAGENAME}} }}} }}  }}

Navigation menu