Template:Department infobox: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
tweaks
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<tr><th colspan="2" class="infobox-header">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</th></tr>
<tr><th colspan="2" class="infobox-header">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</th></tr>
{{#if:{{{game|}}}|
{{#if:{{{game|}}}|
<tr class="center-row">
<tr>
     <th colspan="2" style="font-size:85%;">{{gamepage|New Pacific Order|{{{game}}} branch|game={{{game}}}|p=x}}</th>
     <th colspan="2" style="font-size:85%;">{{gamepage|New Pacific Order|{{{game}}} branch|game={{{game}}}|p=x}}</th>
</tr>}}{{#if:{{{image|}}}|
</tr>}}{{#if:{{{image|}}}|
<tr>
<tr>
     <td colspan="2" class="infobox-images">[[File:{{{flag}}}|center|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|250}}px|Department image]]{{#if:{{{caption|}}}|{{{caption}}}}}</td>
     <td colspan="2" class="infobox-images">[[File:{{{image}}}|center|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|250}}px|Department image]]{{#if:{{{caption|}}}|{{{caption}}}}}</td>
</tr>}}{{#if:{{{status|}}}{{{category|}}}|
</tr>}}{{#if:{{{status|}}}{{{category|}}}|
<tr>
<tr>
Line 15: Line 15:
     <th>Active from</th>
     <th>Active from</th>
     <td>{{{dates}}}</td>
     <td>{{{dates}}}</td>
</tr>}}{{#if:{{{position1|}}}{{{position2|}}}{{{position3|}}}{{{position4|}}}{{{position5|}}}|
</tr>}}{{#if:{{{position1|}}}{{{position2|}}}{{{position3|}}}{{{position4|}}}{{{position5|}}}{{{position6|}}}|
<tr class="center-row"><th colspan="2">Leadership</th></tr>
<tr><th colspan="2">Leadership</th></tr>
}}{{#if:{{{position1|}}}|
}}{{#if:{{{position1|}}}|
<tr>
<tr>
     <th>{{{position1}}}</th>
     <th>{{{position1}}}</th>
     <td>{{gov|{{{game}}}|{{{position1}}}}}</td>
     <td>{{#ifeq:{{lc:{{{category}}}}}|active|{{gov|{{{game}}}|{{{position1}}}}}}}</td>
</tr>}}{{#if:{{{position2|}}}|
</tr>}}{{#if:{{{position2|}}}|
<tr>
<tr>
     <th>{{{position2}}}</th>
     <th>{{{position2}}}</th>
     <td>{{gov|{{{game}}}|{{{position2}}}}}</td>
     <td>{{#ifeq:{{lc:{{{category}}}}}|active|{{gov|{{{game}}}|{{{position2}}}}}}}</td>
</tr>}}{{#if:{{{position3|}}}|
</tr>}}{{#if:{{{position3|}}}|
<tr>
<tr>
     <th>{{{position3}}}</th>
     <th>{{{position3}}}</th>
     <td>{{gov|{{{game}}}|{{{position3}}}}}</td>
     <td>{{#ifeq:{{lc:{{{category}}}}}|active|{{gov|{{{game}}}|{{{position3}}}}}}}</td>
</tr>}}{{#if:{{{position4|}}}|
</tr>}}{{#if:{{{position4|}}}|
<tr>
<tr>
     <th>{{{position4}}}</th>
     <th>{{{position4}}}</th>
     <td>{{gov|{{{game}}}|{{{position4}}}}}</td>
     <td>{{#ifeq:{{lc:{{{category}}}}}|active|{{gov|{{{game}}}|{{{position4}}}}}}}</td>
</tr>}}{{#if:{{{position5|}}}|
</tr>}}{{#if:{{{position5|}}}|
<tr>
<tr>
     <th>{{{position5}}}</th>
     <th>{{{position5}}}</th>
     <td>{{gov|{{{game}}}|{{{position5}}}}}</td>
     <td>{{#ifeq:{{lc:{{{category}}}}}|active|{{gov|{{{game}}}|{{{position5}}}}}}}</td>
</tr>}}{{#if:{{{position6|}}}|
<tr>
    <th>{{{position6}}}</th>
    <td>{{#ifeq:{{lc:{{{category}}}}}|active|{{gov|{{{game}}}|{{{position6}}}}}}}</td>
</tr>}}{{#if:{{{duties|}}}|
</tr>}}{{#if:{{{duties|}}}|
<tr class="center-row"><th colspan="2">Responsibilities</th></tr>
<tr><th colspan="2">Responsibilities</th></tr>
<tr><td colspan="2">{{{duties}}}</td></tr>
<tr><td colspan="2">{{{duties}}}</td></tr>
}}
}}

Latest revision as of 15:40, 7 October 2025

Documentation [edit]

This infobox is used for NPO departments.

Parameters

  • game: the game that this page applies to; leave blank if not applicable.
  • width: the width of the infobox in pixels; use sparingly.
  • name: the name of the department; defaults to the page name.
  • image: an image for the department, such as flag or logo. File name and extension only.
  • imagewidth: the pixel width of the image, if smaller than 250px.
  • caption: a caption for the image.
  • status: a short description of the status of the department, such as "Active" or "Merged into X". Should be omitted if it is the same as "category".
  • category: (required) one word describing the status of the department, can be one of: active, defunct, merged, split, renamed (not case sensitive).
  • dates: the dates when the department was active.
  • position1 through position6: the names of leadership positions in the department. These are passed to {{gov}} to display the current occupants, if category is "active".
  • duties: a description of the responsibilities of the department.

Skeleton

{{Department infobox
|game = 
|name = 
|image = 
|caption = 
|status = 
|category = 
|dates = 
|position1 = 
|position2 = 
|position3 = 
|position4 = 
|position5 = 
|position6 =
|duties = 
}}

The above documentation is transcluded from Template:Department infobox/doc.