Difference between revisions of "Template:Infobox branch"

From Moped Wiki
Jump to: navigation, search
(attempting to make a branch infobox template re-usable on all branch pages)
 
m (fixing code)
Line 1: Line 1:
<table class="infobox" style="width: 20em; font-size:90%; text-align: left; align: right;" cellspacing="4">
+
<table style="width: 20em; font-size:90%; text-align: left; align: right;" cellspacing="4">
 
<tr><th colspan="2" style="text-align: center;"><big>{{{branch name}}}</big></th></tr>
 
<tr><th colspan="2" style="text-align: center;"><big>{{{branch name}}}</big></th></tr>
 
{{#if:{{{logo|}}}|<tr><td colspan="2" style="text-align: center;">{{{logo|}}}</td></tr>}}<!--
 
{{#if:{{{logo|}}}|<tr><td colspan="2" style="text-align: center;">{{{logo|}}}</td></tr>}}<!--
Line 5: Line 5:
 
-->{{#if:{{{members page|}}}|<tr><td colspan="2" style="text-align: center;"><small>{{{members page|}}}</small></td></tr>}}<!--
 
-->{{#if:{{{members page|}}}|<tr><td colspan="2" style="text-align: center;"><small>{{{members page|}}}</small></td></tr>}}<!--
 
-->{{#if:{{{founded|}}}|<tr><th>Year&nbsp;founded</th><td>{{{founded|}}}</td></tr>}}<!--
 
-->{{#if:{{{founded|}}}|<tr><th>Year&nbsp;founded</th><td>{{{founded|}}}</td></tr>}}<!--
-->{{#if:{{{active}}}|<tr><th>Active within Moped Army</th><td>{{{active|}}}</td></tr>}}<!--
+
-->{{#if:{{{active|}}}|<tr><th>Active within Moped Army</th><td>{{{active|}}}</td></tr>}}<!--
 
-->{{#if:{{{current status|}}}|<tr><th>Current status</th><td>{{{current status|}}}</td></tr>}}<!--
 
-->{{#if:{{{current status|}}}|<tr><th>Current status</th><td>{{{current status|}}}</td></tr>}}<!--
 
-->{{#if:{{{branch captain|}}}|<tr><th>Branch captain</th><td>{{{branch captain|}}}</td></tr>}}<!--
 
-->{{#if:{{{branch captain|}}}|<tr><th>Branch captain</th><td>{{{branch captain|}}}</td></tr>}}<!--
-->{{#if:{{{rally|}}}|<tr><th>Rally</th><td>{{{rally}}}</td></tr>}}
+
-->{{#if:{{{rally|}}}|<tr><th>Rally</th><td>{{{rally|}}}</td></tr>}}
 
</table><noinclude>
 
</table><noinclude>
  
Line 33: Line 33:
 
                             ! Description
 
                             ! Description
 
|- valign=top
 
|- valign=top
| '''branch name''      || || Name of the branch (duh).
+
| '''branch name'''      || || Name of the branch (duh).
 
|- valign=top
 
|- valign=top
 
| '''logo'''          || || Branch logo
 
| '''logo'''          || || Branch logo

Revision as of 03:56, 31 October 2006

{{{branch name}}}


Usage summary:

{{Infobox Branch
| branch name = 
| logo = 
| city = 
| members page = 
| founded = 
| active = 
| current status = 
| branch captain =
| rally = 
}}

Fields

Type Description
branch name Name of the branch (duh).
logo Branch logo
city City (or metro area or region or whatever)
members page Link to the branch's members page (e.g. http://www.mopedarmy.com/members/view/decepticons/)
founded Year or date branch was founded (as an entity before becoming a Moped Army branch)
active Period in years during which the act was or has been active. (e.g. 1998-present)
current status Probably either active or inactive
branch captain Branch captain's name
rally Name of rally held by branch.

Notes

  • Most fields are optional and the row will simply be omitted if no data is supplied.