Template:Department infobox: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
(create)
 
(tweaks)
Line 6: Line 6:
</tr>}}{{#if:{{{image|}}}|
</tr>}}{{#if:{{{image|}}}|
<tr>
<tr>
     <td colspan="2" class="infobox-images">[[File:{{{flag}}}|center|{{#if:{{{imagesize|}}}|{{{imagesize}}}|250}}px|Department image]]{{#if:{{{caption|}}}|{{{caption}}}}}</td>
     <td colspan="2" class="infobox-images">[[File:{{{flag}}}|center|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|250}}px|Department image]]{{#if:{{{caption|}}}|{{{caption}}}}}</td>
</tr>}}{{#if:{{{status|}}}|
</tr>}}{{#if:{{{status|}}}{{{category|}}}|
<tr>
<tr>
     <th>Status</th>
     <th>Status</th>
     <td>{{{status}}}</td>
     <td>{{#if:{{{status|}}}|{{{status}}}|{{ucfirst:{{{category}}}}}}}</td>
</tr>}}{{#if:{{{dates|}}}|
</tr>}}{{#if:{{{dates|}}}|
<tr>
<tr>

Revision as of 05:08, 20 September 2020

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 position5: the names of leadership positions in the department. These are passed to {{gov}} to display the current occupants.
  • duties: a description of the responsibilities of the department.

Skeleton

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

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