Template:Infobox Spaceship: Difference between revisions

From Semantic Stargate Wiki
No edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 33: Line 33:


  | headerstyle    = background-color: #E1E1E1;
  | headerstyle    = background-color: #E1E1E1;
  | image          = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}} | {{{image}}} }}|size={{{image size|330}}}|sizedefault=frameless|alt={{{alt|}}}}}
  | image          = {{#invoke:InfoboxImage|InfoboxImage|image={{#if: {{{image|}}} | {{{image}}} }}|size={{#if: {{{image size|330}}} | {{{image size|330}}}px | 330px }}|sizedefault=frameless|alt={{{alt|}}}}}
  | caption        = {{{caption|}}}
  | caption        = {{{caption|}}}


Line 93: Line 93:
  | label24        = {{#if: {{#pos:{{{control|}}}| <br }} | Control systems | Control system }}
  | label24        = {{#if: {{#pos:{{{control|}}}| <br }} | Control systems | Control system }}
  | data24          = {{{control|}}}
  | data24          = {{{control|}}}
}}
 
{{Infobox/startbox}}
  | label25        = {{#if: {{#pos:{{{navigation|}}}| <br }} | Navigation systems | Navigation system }}
{{Infobox/optional subtitle
  | data25          = {{{navigation|}}}
| Technical specifications
 
| {{{length|}}}{{{width|}}}{{{height|}}}{{{max speed|}}}{{{engine|}}}{{{fuel|}}}{{{hdsystem|}}}{{{poweroutput|}}}{{{power|}}}{{{shield gen|}}}{{{hull|}}}{{{sensor|}}}{{{target|}}}{{{control|}}}{{{navigation|}}}{{{avionics|}}}{{{countermeasures|}}}{{{armament|}}}{{{complement|}}}{{{crew|}}}{{{skeleton|}}}{{{passengers|}}}{{{capacity|}}}{{{othersystems|}}}
  | label26        = Avionics
  | {{#ifeq:{{{spoiler|}}}|true|E18F77|{{#if: {{{separate|}}}|DDA0DD|}}}}
  | data26          = {{{avionics|}}}
}}
 
{{Infobox/optional dual line
  | label27        = Countermeasures
| Navigation system
  | data27          = {{{countermeasures|}}}
| {{{navigation|}}}
 
  | {{{navigation}}}
  | label28        = Armament
}}
  | data28          = {{{armament|}}}
{{Infobox/optional dual line
 
  | Avionics
  | label29        = Complement
  | {{{avionics|}}}
  | data29          = {{{complement|}}}
| {{{avionics}}}
 
}}
  | label30        = Crew
{{Infobox/optional dual line
  | data30          = {{{crew|}}}
  | Countermeasures
 
  | {{{countermeasures|}}}
  | label31        = Skeleton
| {{{countermeasures}}}
  | data31          = {{{skeleton|}}}
}}
 
{{Infobox/optional dual line
  | label32        = Passengers
  | Armament
  | data32          = {{{passengers|}}}
  | {{{armament|}}}
 
| {{{armament}}}
  | label33        = Cargo capacity
}}
  | data33          = {{{capacity|}}}
{{Infobox/optional dual line
 
  | Complement
  | label34        = {{#if: {{#pos:{{{othersystems|}}}| <br }} | Other systems | Other system }}
  | {{{complement|}}}
  | data34          = {{{othersystems|}}}
| {{{complement}}}
 
}}
| header40        = {{#if: {{{role|}}}{{{address|}}}{{{point of origin|}}}{{{firstuse|}}}{{{affiliation|}}} | Usage }}
{{Infobox/optional dual line
 
  | Crew
  | label41        = {{#if: {{#pos:{{{role|}}}| <br }} | Roles | Role }}
  | {{{crew|}}}
| data41          = {{{role|}}}
| {{{crew}}}
 
}}
| label42        = Stargate {{#if: {{#pos:{{{address|}}}| <br }} | addresses | address }}
{{Infobox/optional dual line
| data42          = {{{address|}}}
  | Minimum crew
 
  | {{{skeleton|}}}
  | label43        = Point of origin
| {{{skeleton}}}
  | data43          = {{{point of origin|}}}
}}
 
{{Infobox/optional dual line
| label44        = Year introduced
  | Passengers
  | data44          = {{{firstuse|}}}
  | {{{passengers|}}}
 
| {{{passengers}}}
  | label45        = Affiliation
}}
  | data45          = {{{affiliation|}}}
{{Infobox/optional dual line
 
  | Cargo capacity
  | header50        = {{#if: {{{mention|}}}{{{appearance|}}} | Information non linked to the ''Stargate'' universe}}
  | {{{capacity|}}}
 
  | {{{capacity}}}
  | label51        = First mention
}}
  | data51          = {{{mention|}}}
{{Infobox/optional dual line
 
| Other systems
  | label52        = First appearance
| {{{othersystems|}}}
| data52          = {{{appearance|}}}
  | {{{othersystems}}}
 
}}
}}<!--
{{Infobox/optional subtitle
 
| Usage
Retrieving the "name" property from the infobox
| {{{role|}}}{{{address|}}}{{{point of origin|}}}{{{firstuse|}}}{{{affiliation|}}}
 
  | {{#ifeq:{{{spoiler|}}}|true|E18F77|{{#if: {{{separate|}}}|DDA0DD|}}}}
  -->{{#if: {{{rtitle|}}} | {{#set: name = {{{rtitle}}} }} | {{#if: {{{title|{{PAGENAME}}}}} | {{#set: name = ''{{{title}}}'' }} | {{#set: name = ''{{PAGENAME}}'' }} }} }}<!--
}}
 
{{Infobox/optional dual line
Retrieving the "infobox image" from the template
  | Role(s)
 
  | {{{role|}}}
-->{{#if: {{{image|}}} | {{#set: Infobox image = {{{image|}}} }} }}<!--
  | {{{role}}}
 
}}
Defining the canonicity of the spaceship
{{Infobox/optional dual line
 
  | Address
-->{{#set: Canon spaceship = {{#if:{{{separate|}}}|no|yes}} }}</includeonly><noinclude>{{Documentation}}</noinclude>
  | {{{address|}}}
  | {{{address}}}
}}
{{Infobox/optional dual line
  | Point of origin
  | {{{point of origin|}}}
  | {{{point of origin}}}
}}
{{Infobox/optional dual line
| Year introduced
  | {{{firstuse|}}}
| {{{firstuse}}}
}}
{{Infobox/optional dual line
| Affiliation
| {{{affiliation|}}}
| {{{affiliation}}}
}}
{{Infobox/endbox}}{{#if: {{{image|}}} | [[Infobox image::{{{image|}}} | ]]}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 02:35, 24 February 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

Syntax

{{Infobox Spaceship
 | nocat              = 
 | sort               = 
 | spoiler            = 
 | separate           = 
 | category           = 
 | title              = 
 | rtitle             = 
 | alternate timeline = 
 | alternate reality  = 
 | hallucination      = 
 | image              = 
 | image size         = 
 | alt                = 
 | caption            = 
<!-- PRODUCTION INFORMATION -->
 | manufacturer       = 
 | designer           = 
 | class              = 
 | cost               = 
<!-- TECHNICAL SPECIFICATIONS -->
 | length             = 
 | width              = 
 | height             = 
 | max speed          = 
 | engine             = 
 | fuel               = 
 | hdsystem           = 
 | poweroutput        = 
 | power              = 
 | shield gen         = 
 | hull               = 
 | sensor             = 
 | target             = 
 | control            = 
 | navigation         = 
 | avionics           = 
 | countermeasures    = 
 | armament           = 
 | complement         = 
 | crew               = 
 | skeleton           = 
 | passengers         = 
 | capacity           = 
 | othersystems       = 
<!-- USAGE -->
 | role               = 
 | address            = 
 | point of origin    = 
 | firstuse           = 
 | affiliation        = 
<!-- OUT OF STARGATE UNIVERSE INFORMATION -->
 | mention            = 
 | appearance         = 
}}

See also