Template:Infobox Agent: Difference between revisions

No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This template is **only an example / documentation page** showing how to use the real agent infobox:
Infobox for ICE List agent pages.


The actual working infobox is:
Usage:
**Template:Infobox Agent**
{{Infobox Agent
| name        = Agent Name
| image        = File.jpg
| agency      = ICE ERO
| role        = [[Deportation Officer]]
| field_office = [[Chicago Field Office]]
| state        = [[Illinois]]
| status      = Active
}}
</noinclude><includeonly>
<div class="infobox" style="width:260px; float:right; clear:right; margin:0 0 1em 1em; border:1px solid #ccc; background:#f9f9f9; padding:0.5em;">
 
  <!-- NAME -->
  <div style="font-size:120%; font-weight:bold; text-align:center; margin-bottom:0.3em;">
  {{{name|{{PAGENAME}}}}}
  </div>
 
  <!-- IMAGE -->
  <div style="text-align:center; margin-bottom:0.5em;">
  [[File:{{{image|Agent-placeholder.jpg}}}|250px|alt={{{name|Agent image}}}]]
  </div>
 
  <!-- BASIC INFO TABLE -->
  <table style="width:100%; font-size:95%;">
 
    <tr>
      <th style="text-align:left;">Agency</th>
      <td>{{{agency|Unknown}}}</td>
    </tr>


Use it like this when creating an agent page:
    <tr>
      <th style="text-align:left;">Role</th>
      <td>{{{role|Unknown}}}</td>
    </tr>


<pre>
    <tr>
{{Infobox Agent
      <th style="text-align:left;">Field Office</th>
| name          = John Doe
      <td>{{{field_office|Unknown}}}</td>
| image        = JohnDoe.jpg
    </tr>
| agency        = ICE ERO
 
| role          = Deportation Officer
    <tr>
| field_office  = Chicago
      <th style="text-align:left;">State</th>
| state        = Illinois
      <td>{{{state|Unknown}}}</td>
| status        = Active
    </tr>
}}
 
</pre>
    <tr>
      <th style="text-align:left;">Status</th>
      <td>{{{status|Unknown}}}</td>
    </tr>


Do **not** include this template inside pages — it does nothing.
  </table>
This page exists only so editors can see a usage example.
</noinclude>


<includeonly></includeonly>
</div>
</includeonly>