Jump to content

Template:Sandbox: Difference between revisions

From Mantipedia
EJordan (talk | contribs)
m EJordan moved page Template:Hms-test to Template:Sandbox: This is where I am going to test out Template Code. --Eric
EJordan (talk | contribs)
No edit summary
Line 1: Line 1:
{{#ifeq: 01 | 1 | equal | not equal}}
<includeonly>{| class="sidebar" align="right" colSpan="2" width="250px" cellpadding="4" cellspacing="0"
|-
| class="class" width="250px" colSpan="2" align="center" | '''{{PAGENAME}}'''
|-
| class="image" colspan="2" align="center" | {{#if: {{{crest|}}}
| {{sidebar image|{{{crest}}}}}
| [[File:RMNFlash.png|250px]]
}}
|- valign="top" {{sidebar image|{{{image}}}}}
 
|- valign="top"
{{#if: {{{name|}}}|
{{!}} class="left" {{!}} '''Name:'''
{{!}} class="righta" {{!}} {{{name}}}}}
|- valign="top"
{{#if: {{{hcn|}}}|
{{!}} class="left" {{!}} '''[[HCN]]:'''
{{!}} class="righta" {{!}} {{{hcn}}}}}
|- valign="top"
{{#if: {{{city|}}}|
{{!}} class="left" {{!}} '''[[Charter City]]:'''
{{!}} class="righta" {{!}} {{{city}}}}}
|- valign="top"
{{#if: {{{class|}}}|
{{!}} class="left" {{!}} '''Class:'''
{{!}} class="righta" {{!}} ''[[{{{class}}}-class|{{{class}}}]]}}''
|- valign="top"
{{#if: {{{type|}}}|
{{!}} class="left" {{!}} '''Type:'''
{{!}} class="righta" {{!}} [[{{{type}}}]]}}
|- valign="top"
{{#if: {{{affiliation|}}}|
{{!}} class="left" {{!}} '''Affiliation:'''
{{!}} class="righta" {{!}} {{{affiliation}}}}}
|- valign="top"
{{#if: {{{co|}}}|
{{!}} class="left" {{!}} '''Commander:'''
{{!}} class="righta" {{!}} {{{co}}}}}
|- valign="top"
{{#if: {{{launched|}}}|
{{!}} class="left" {{!}} '''Launched:'''
{{!}} class="righta" {{!}} {{{launched}}}}}
|- valign="top"
|- valign="top"
{{#if: {{{status|}}}|
{{!}} class="left" {{!}} '''Status:'''
{{!}} class="righta" {{!}} {{{status}}}}}
|- valign="top"
{{#if: {{{reportsto|}}}|
{{!}} class="left" {{!}} '''Reporting to:'''
{{!}} class="righta" {{!}} [[{{{reportsto}}}]]}}
|- valign="top"
{{#if: {{{fleet|}}}|
{{!}} class="left" {{!}} '''[[Fleet]]:'''
{{!}} class="righta" {{!}} [[{{{fleet}}}]]}}
|- valign="top"
{{#if: {{{website|}}}|
{{!}} class="left" {{!}} '''Website:'''
{{!}} class="righta" {{!}} [{{{website}}} {{{website}}}]}}
|- valign="top"
{{#if: {{{image2|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{sidebar image|{{{image2}}}}}}}
|- valign="top"
{{#if: {{{altimage|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{{altimage}}}}}
|}
[[Category:Chapters|{{{name}}}]]</includeonly><noinclude>
 
==Usage==
<pre>{{Infobox-chapter
| crest      =
| image      =
| name        =
| hcn        =
| city        =
| class      =
| type        =
| affiliation =
| co          =
| launched    =
| status      =
| reportsto  =
| fleet      =
| website    =
| image2      =
| altimage    =
}}</pre>
 
==Parameters==
Parameters in '''bold''' are required fields. ''Not'' bold = optional.
{| border=1 cellpadding=4 cellspacing=0 style="margin: 0 0 1em 1em; border: 1px #aaaaaa solid; border-collapse: collapse; font-size: 95%;"
! Parameter
! Explanation
|-
|crest
| The ship's [[crest]] image. If no image is available, omit this parameter and <nowiki>[[File:RMNFlash.png]]</nowiki> will automatically be used.
|-
|image
| An image relevant to the ship, such as the side elevation or the ship's class image.
|-
| name
| Name of the vessel (in ''italics'' <nowiki>('' '')</nowiki>). "HMS", etc. should NOT be italicized. Example: HMS ''Fearless''.
|-
| hcn
| The ship's hull number (ie: DD-486, BC-592, SD-200, etc).  If none, leave blank.
|-
| city
| The chapter's [[Chapter#City_of_Charter|Charter city]]; essentially the official city of record for that chapter.  Do not include any additional areas of patrol, only list a single city or other [[wikipedia:Census-designated_place|census-designated place]].  This will be verified and changed accordingly during edit patrols.
|-
| class
| Class of ship this vessel belongs to (''Star Knight'', ''Nike'', ''Invictus'', etc.). Specify ''only'' the class ''name'' (not <nowiki>[[name class|name]]</nowiki>). ''Italicized'' and <nowiki>[[linked]]</nowiki> automatically.
|-
| type
| Type of ship. ([[Destroyer]], [[Light Cruiser]], Escort, [[Battlecruiser]], etc.) <nowiki>[[Linked]]</nowiki> automatically.
|-
| affiliation
| The affiliation of the starship.  <nowiki>{{rmn}}, {{gsn}}, {{ian}}, etc.</nowiki>
|-
| co
| Name of the Ship's CO.  Keep it short (ie: <nowiki>[[CAPTSG]] Dame Honor Harrington, [[RMN]]</nowiki>). Post-nominals will go into the main article.
|-
| launched
| Date of ship's launch.
|-
| status
| Is this ship currently "Active" or has it been "Decommissioned"?
|-
| reportsto
| Which echelon force (fleet, task force, task group, squadron, etc) does this ship report to?  Will be <nowiki>[[linked]]</nowiki> automatically.
|-
| fleet
| Which [[fleet]] does this chapter belong to?
|-
| website
| Type in the exact URL.  Will be <nowiki>[[linked]]</nowiki> automatically.
|-
| image2 / altimage
| Second or third image relevant to the ship (optional), might be the ship's shoulder flash patch or circular logo.
|}
 
==Example when done==
{{Infobox-chapter
| crest      = SD316Crest.png
| image      = SD316Elevation.png
| name        = HMS ''Medusa''
| hcn        = SD-316
| city        = San Francisco, CA, US
| affiliation = {{rmn}}
| type        = Superdreadnought
| class      = Medusa
| launched    = 14 NOV 2015
| co          = [[CAPTJG]] Erik Roberts, [[RMN]]
| status      = Active
| reportsto  = Battle Division 201
| fleet      = Tenth Fleet
| website    = http://hmsmedusa.org
| image2      = SD316Flash.png
}}
<br clear=all>
 
<pre>
{{Infobox-chapter
| crest      = SD316Crest.png
| image      = SD316Elevation.png
| name        = HMS ''Medusa''
| hcn        = SD-316
| city        = San Francisco, CA, US
| affiliation = {{rmn}}
| type        = Superdreadnought
| class      = Medusa
| launched    = 14 NOV 2015
| co          = [[CAPTJG]] Erik Roberts, [[RMN]]
| status      = Active
| reportsto  = Battle Division 201
| fleet      = Tenth Fleet
| website    = http://hmsmedusa.org
| image2      = SD316Flash.png
}}</pre>
 
[[Category:Sidebar templates|{{PAGENAME}}]]</noinclude>

Revision as of 09:18, 18 September 2026


Usage

{{Infobox-chapter
| crest       = 
| image       = 
| name        = 
| hcn         = 
| city        = 
| class       = 
| type        = 
| affiliation = 
| co          =
| launched    = 
| status      = 
| reportsto   =
| fleet       =
| website     =
| image2      = 
| altimage    = 
}}

Parameters

Parameters in bold are required fields. Not bold = optional.

Parameter Explanation
crest The ship's crest image. If no image is available, omit this parameter and [[File:RMNFlash.png]] will automatically be used.
image An image relevant to the ship, such as the side elevation or the ship's class image.
name Name of the vessel (in italics ('' '')). "HMS", etc. should NOT be italicized. Example: HMS Fearless.
hcn The ship's hull number (ie: DD-486, BC-592, SD-200, etc). If none, leave blank.
city The chapter's Charter city; essentially the official city of record for that chapter. Do not include any additional areas of patrol, only list a single city or other census-designated place. This will be verified and changed accordingly during edit patrols.
class Class of ship this vessel belongs to (Star Knight, Nike, Invictus, etc.). Specify only the class name (not [[name class|name]]). Italicized and [[linked]] automatically.
type Type of ship. (Destroyer, Light Cruiser, Escort, Battlecruiser, etc.) [[Linked]] automatically.
affiliation The affiliation of the starship. {{rmn}}, {{gsn}}, {{ian}}, etc.
co Name of the Ship's CO. Keep it short (ie: [[CAPTSG]] Dame Honor Harrington, [[RMN]]). Post-nominals will go into the main article.
launched Date of ship's launch.
status Is this ship currently "Active" or has it been "Decommissioned"?
reportsto Which echelon force (fleet, task force, task group, squadron, etc) does this ship report to? Will be [[linked]] automatically.
fleet Which fleet does this chapter belong to?
website Type in the exact URL. Will be [[linked]] automatically.
image2 / altimage Second or third image relevant to the ship (optional), might be the ship's shoulder flash patch or circular logo.

Example when done


{{Infobox-chapter
| crest       = SD316Crest.png
| image       = SD316Elevation.png
| name        = HMS ''Medusa''
| hcn         = SD-316
| city        = San Francisco, CA, US
| affiliation = {{rmn}}
| type        = Superdreadnought
| class       = Medusa
| launched    = 14 NOV 2015
| co          = [[CAPTJG]] Erik Roberts, [[RMN]]
| status      = Active
| reportsto   = Battle Division 201
| fleet       = Tenth Fleet
| website     = http://hmsmedusa.org
| image2      = SD316Flash.png
}}