====== Corporation Template ======

<template>
{{navigation>corporations}}
<entry>
<WRAP 310px data box right round>
//**[[]]**//

@@Image [image::300]@@

@@Description@@
^ Allegiances| @@Allegiance@@|
| ||
^ Headquarters | @@Headquarters@@ on {{list> ?p | ?z is a: Zone; ?z [text] = @@Headquarters@@; ?z On [ref]: ?p }} |
^ Product| @@Product@@|
|<sub>(@@type@@ @@roles@@ played by @@user@@)</sub>    <wrap right><sub>[ [[tech:faction_model#Corporations|D]], [[template:corporation|T]] ]</sub></wrap>||
</WRAP>
</entry>
[ [[ic:corporations]] ]
</template>

====== Corporation Zone Details Template ======

This template lists the zones incorporated by the corporation.

<template zone details>
===== Zones =====
{{template>corporation#zone details listing}}
</template>

The listing of actual zones
<template zone details listing>
<if !corporation>
<list ?zone ?world ?prod>
?zone is a: Zone
?zone Specialised [ref]: [[]]
?zone On [ref]: ?world
?zone Production [wiki]: ?prod
sort {
  ?world
  ?zone
}
</list>
</if><if corporation>
<list ?zone ?world ?prod>
?zone is a: Zone
?zone Specialised [text]: @@corporation@@
?zone On [ref]: ?world
?zone Production [wiki]: ?prod
sort {
  ?world
  ?zone
}
</list>
</if>
</template>

====== Automatic Income Listing ======
An automatic income listing, only works well for corporations that use the 1/10 income rule. Weird corporations are not accomodated.

<template income listing>
<view:list ?zone ?world ?production ?local_zone>
template {
    corporation#income listing entry
}
?zone is a: Zone
?zone Specialised [text]: @@corporation@@
?zone Specialised [ref]: ?corporation
?zone On [ref]: ?world
?zone System [ref]: ?system
?zone Production [wiki]: ?production
optional {
    ?corporation Headquarters[ref]: ?hq
    ?hq System [ref]: ?system
    ?zone Specialised: ?local_zone
}
sort {
  ?world
  ?zone
}
</view>
</template>

The list entry, preserves appearance of list above, but with added income indicator.
<template income listing entry>
  * @@zone@@ (@@world@@; @@production@@) -> <*if local_zone>10</if><*if !local_zone>1</if> (:tax)
</template>