Difference between revisions of "Template:System v2"

From Discovery Wiki
Jump to navigationJump to search
(Created page with "<includeonly> {{#if: {{{image|}}} | [[image:{{{image}}}|thumb|right|244px|{{PAGENAME}} System]] | <div style="float: right; width: 244px; height: 184px; text-align: center; fo...")
 
m (Reverted edits by Champ (talk) to last revision by Space)
Tag: Rollback
 
(175 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
+
<noinclude><!--</noinclude>__NOTOC__ __NOEDITSECTION__
{{#if: {{{image|}}}
+
{| class="infobox bordered" style="float: right; width: 270px; font-size: 90%; line-height: 110%; margin-left: 1em; margin-bottom: 1em; border: 1px solid #aaa;" cellpadding="3"
| [[image:{{{image}}}|thumb|right|244px|{{PAGENAME}} System]]
+
|-
| <div style="float: right; width: 244px; height: 184px; text-align: center; font-size: 14px; background: transparent; ">''No image'' <br>{{PAGENAME}} System</div> [[Category:Systems without profile images]] {{Stub|This Article needs a Picture for the system. This is an automatically generated message that will disappear when an image is used.}}
+
| colspan="2" class="infobox-name" style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 185%; font-weight: 500; text-decoration: underline; text-align: center; background-color: #14193F; line-height: 1.5em;"|{{{name}}}
}}
+
|-
<div style="float: left; padding: 4px 8px 8px 0px; max-width: 180px; font-size: 85%;">__TOC__</div>
+
| colspan="2" style="text-align: center; background-color: #14193F;"|{{#ifexist:File:{{{name}}}.png
{{#if: {{{description|}}}
+
| [[Image:{{{name}}}.png|center|220px]]
| {{{description}}}
+
| {{#ifexist:File:{{{name}}}.jpg
| ''No current description'' [[Category:Systems without descriptions]] {{Stub|This Article needs a Description for the system. This is an automatically generated message that will disappear when an description is written. All that might be needed is move the Synopsis to the description field. Visit [[:Template:System]] to see the required fields.}}
+
| [[Image:{{{name}}}.jpg|center|220px]]
}}
+
| Please [[File:{{{name}}}.png|upload]] an image of this system.}}}}
 +
|-
 +
| colspan="2" class="infobox-section" style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 150%; font-weight: 500; text-decoration: underline; text-align: center; background-color: #14193F; line-height: 1.5em;"|System
 +
|- title "House Government"
 +
| class="infobox-data-title"| '''Governing House'''
 +
||{{{government|Independent}}}
 +
|- title "Region of Sirius"
 +
| class="infobox-data-title" | '''Region'''
 +
||{{{region|''Unknown Region''}}}
 +
|- title "Connected systems"
 +
| class="infobox-data-title" | '''Connected<br/>Systems'''
 +
||{{{neighbors|''No connected systems''}}}
 +
|}
 +
<div class="toclimit-2" style="float: left; padding: 4px 8px 8px 0px; max-width: 180px; font-size: 85%;">__TOC__</div>
 +
{{#if: {{{description|}}}|{{{description}}}|''No description available.''}}
 
{{Clear}}
 
{{Clear}}
 
==System Overview==
 
==System Overview==
 
{| style="width: 100%;"
 
{| style="width: 100%;"
 
| style="width: 33%; vertical-align: top; border-right: 1px dotted #999999; padding: .5em 1em; margin: 1em;" |
 
| style="width: 33%; vertical-align: top; border-right: 1px dotted #999999; padding: .5em 1em; margin: 1em;" |
<div style="font-weight: bold; font-size: 17px; border-bottom: 1px solid #aaaaaa; margin: 5px 0px 5px 0px;">Local factions</div>
+
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 150%; color: #87C3E0; text-align: center; line-height: 1.5em; border-bottom-width: 1px; border-bottom-color: #AAAAAA; border-bottom-style: solid;">Astronomical Bodies</div>
<div style="font-weight: bold; font-size: 15px; padding: 7px 0px 7px 0px;">Lawful</div>
+
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 133%; color: #87C3E0; text-decoration: underline; line-height: 1.5em; padding-top: .5em;">Stellar Objects</div>
{{#if: {{{lawfulnpcs|}}} | {{{lawfulnpcs}}} | ''None known''}}
+
{{{suns|* ''None''}}}
<div style="font-weight: bold; font-size: 15px; padding: 7px 0px 7px 0px;">Semi-Lawful</div>
+
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 133%; color: #87C3E0; text-decoration: underline; line-height: 1.5em; padding-top: .5em;">[[#Planetary Objects|Planetary Objects]]</div>
{{#if: {{{semi-lawfulnpcs|}}} | {{{semi-lawfulnpcs}}} | ''None known''}}
+
{{{planets|* ''None''}}}
<div style="font-weight: bold; font-size: 15px; padding: 7px 0px 7px 0px;">Unlawful</div>
+
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 133%; color: #87C3E0; text-decoration: underline; line-height: 1.5em; padding-top: .5em;">[[#Solar Anomalies|Solar Anomalies]]</div>
{{#if: {{{unlawfulnpcs|}}} | {{{unlawfulnpcs}}} | ''None known''}}
+
{{{anomolies|* ''None''}}}
 +
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 133%; color: #87C3E0; text-decoration: underline; line-height: 1.5em; padding-top: .5em;">[[#Nebulae and Asteroids|Nebulae & Asteroids]]</div>
 +
{{{fields|* ''None''}}}
 +
| style="width: 33%; vertical-align: top; border-right: 1px dotted #999999; padding: .5em 1em; margin: 1em;" |
 +
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 150%; color: #87C3E0; text-align: center; line-height: 1.5em; border-bottom-width: 1px; border-bottom-color: #AAAAAA; border-bottom-style: solid;">Industrial Development</div>
 +
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 133%; color: #87C3E0; text-decoration: underline; line-height: 1.5em; padding-top: .5em;">[[#Space Stations|Space Stations]]</div>
 +
{{{stations|* ''None''}}}
 +
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 133%; color: #87C3E0; text-decoration: underline; line-height: 1.5em; padding-top: .5em;">[[#Commodity Mining|Commodity Mining]]</div>
 +
{{{mining-zones|* ''None''}}}
 +
| style="width: 33%; vertical-align: top; padding: .5em 1em; margin: 1em;" |
 +
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 150%; color: #87C3E0; text-align: center; line-height: 1.5em; border-bottom-width: 1px; border-bottom-color: #AAAAAA; border-bottom-style: solid;">Faction Presence</div>
 +
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 133%; color: #87C3E0; text-decoration: underline; line-height: 1.5em; padding-top: .5em;">Lawful Factions</div>
 +
{{{lawful-factions|* ''None''}}}
 +
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 133%; color: #87C3E0; text-decoration: underline; line-height: 1.5em; padding-top: .5em;">Corporations & Guilds</div>
 +
{{{trade-factions|* ''None''}}}
 +
<div style="font-family: Agency FB,​Verdana,​Arial,​sans-serif; font-size: 133%; color: #87C3E0; text-decoration: underline; line-height: 1.5em; padding-top: .5em;">Unlawful Factions</div>
 +
{{{unlawful-factions|* ''None''}}}
 +
|}
 +
 
 +
{{Clear}}
 +
<includeonly>[[Category:Systems]][[Category:{{{name}}}]]{{#if: {{{region}}}|[[Category:{{{region}}}]]}}</includeonly>
 +
<noinclude>-->
 +
'''Template:System''' is for the solar systems in Discovery. This template does not define article body text, and instead only defines the infobox and System Overview table data. It is expected that each of the sections in the System Overview will have a section counterpart in the article body, but that data is not governed by this template.
  
{{#if: {{{AltStation|}}} |
+
Recognized attributes are shown in the ''Usage'' section below. Of particular note:
  
{{System page component 1|planets={{#if: {{{planets|}}} | {{{planets}}} | ''None''}}|stations={{#if: {{{stations|}}} | {{{stations}}} | ''None known''}}}}
+
* ''name'' is the system's full name, as extracted from the infocard data, and is used for the name that is shown in the infobox. The template will also attemp to load a PNG or JPG file with this name. It should also be used for the page title.
  
|
+
* ''description'' is used for the text block at the top of the page.
  
{{System page component 2|planets={{#if: {{{planets|}}} | {{{planets}}} | ''None''}}|stations={{#if: {{{stations|}}} | {{{stations}}} | ''None known''}}}}
+
The remaining attributes are used to populate additional fields in the infobox and the System Overview table. The rest of the page is provided as page data directly, and does not use the template.
  
 +
==Usage==
 +
<pre><nowiki>
 +
{{System v2
 +
| name = New York
 +
| nickname = li01
 +
| description = The [[New York]] system is the capital of [[Liberty]]
 +
and one of the most populated areas of the entire [[Sirius Sector]].
 +
Centered around a relatively cool G8-class star not unlike the sun of
 +
the [[Sol|Sol System]] are two fully habitable and colonized planets,
 +
[[Planet Manhattan|Manhattan]] and [[Planet Pittsburgh|Pittsburgh]].
 +
The latter also features a moon, [[Maine]]. Further locations of
 +
interest include nine permanent space stations (of which one is home
 +
to the [[Liberty Rogues]] and another owned by the [[Junkers]]), two
 +
stationary Battleships with full docking facilities, the mysterious
 +
[[Badlands]] and the enigmatic [[Zone 21]].
 +
| image = New_York.jpg
 +
| government = {{House Link|Liberty|long}}
 +
| region = Liberty
 +
| neighbors = [[California]]<br/>[[Colorado]]<br/>[[Texas]]<br/>
 +
[[Alaska]]<br/>[[Pennsylvania]]<br/>[[New York]]
 +
| lawful-factions = * [[Liberty Navy]]
 +
* [[Liberty Police, Inc.]]
 +
* [[Bounty Hunters Guild]]
 +
| trade-factions = * [[Cryer Pharmaceuticals]]
 +
* [[Universal Shipping]]
 +
* [[Ageira Technologies]]
 +
* [[ALG Waste Disposal]]
 +
* [[Border World Exports]]
 +
* [[Gateway Shipping]]
 +
* [[Synth Foods, Inc.]]
 +
* [[Orbital Spa and Cruise]]
 +
* [[Kishiro Technologies]]
 +
* [[Samura Industries]]
 +
* [[Deep Space Engineering]]
 +
| unlawful-factions = * [[Junkers]]
 +
* [[Liberty Rogues]]
 +
* [[Xenos]]
 +
* [[Outcasts]]
 +
| suns = * Medium White Sun
 +
| planets = * [[Planet Manhattan]] (inhabited)
 +
* [[Planet Pittsburgh]] (inhabited)
 +
* Maine
 +
| stations = * [[Newark Station]]
 +
* [[Trenton Outpost]]
 +
* [[Liberty Rogue Destroyer]]
 +
* [[Battleship Missouri]]
 +
* [[Norfolk Shipyard]]
 +
* [[West Point Military Academy]]
 +
* [[Detroit Munitions]]
 +
* [[Fort Bush]]
 +
* [[Baltimore Shipyard]]
 +
* [[Buffalo Base]]
 +
* [[Rochester Base]]
 +
| fields = * Badlands
 +
* Zone-21
 +
* Detroit Debris Field
 +
* Jersey Debris Field
 +
* Pittsburgh Debris Field
 +
| mining-zones = * [[Scrap Metal]]
 
}}
 
}}
 +
body elements and text goes here ...
 +
</nowiki></pre>
  
| style="width: 33%; vertical-align: top; padding: .5em 1em; margin: 1em;" |
+
==Result==
<div style="font-weight: bold; font-size: 17px; border-bottom: 1px solid #aaaaaa; margin: 5px 0px 5px 0px;">Commodities</div>
+
{{System v2
<div style="font-weight: bold; font-size: 15px; padding: 7px 0px 7px 0px;">Produced</div>
+
| name = New York
{{#if: {{{commodities|}}} | {{{commodities}}} | ''None known''}}
+
| nickname = li01
 
+
| description = The [[New York]] system is the capital of [[Liberty]]
<div style="font-weight: bold; font-size: 15px; padding: 7px 0px 7px 0px;">Mineable</div>
+
and one of the most populated areas of the entire [[Sirius Sector]].
{{#if: {{{mineable|}}} | {{{mineable}}} | ''None known''}}
+
Centered around a relatively cool G8-class star not unlike the sun of
<br>
+
the [[Sol|Sol System]] are two fully habitable and colonized planets,
|}
+
[[Planet Manhattan|Manhattan]] and [[Planet Pittsburgh|Pittsburgh]].
[[Category:Systems]]
+
The latter also features a moon, [[Maine]]. Further locations of
</includeonly>
+
interest include nine permanent space stations (of which one is home
<noinclude>
+
to the [[Liberty Rogues]] and another owned by the [[Junkers]]), two
-->
+
stationary Battleships with full docking facilities, the mysterious
=Usage=
+
[[Badlands]] and the enigmatic [[Zone 21]].
This template allows you to make the System look very nice. (Thanks to Blodo and Tazuras and Chovynz and some other wiki editors.) <br>
+
| image = New_York.jpg
'''To see a System Example Page ''see: [[Burgundy]]'''''
+
| government = {{House Link|Liberty|long}}
 
+
| region = Liberty
*The ''table of contents'' is automatically generated on the left.
+
| neighbors = [[California]]<br/>[[Colorado]]<br/>[[Texas]]<br/>[[Alaska]]<br/>[[Pennsylvania]]<br/>[[New York]]
*The ''system description or Synopsis'' must be put into the  ''<nowiki>|description = </nowiki>'' field.
+
| lawful-factions = * [[Liberty Navy]]
*The ''caption'' underneath the system image is automatically determined by the System article name. It will be PAGENAME + "System". 
+
* [[Liberty Police, Inc.]]
*Additionally this template makes use of the planet template.  Please visit the [[Template:Planet|Planet template]] page to understand it's functionality.
+
* [[Bounty Hunters Guild]]
*The AltStation variable allows the stations section to be moved to the 2nd Column.  It should be used to minimize blank space at the bottom of shorter columns.  To use it set it equal to 1.
+
| trade-factions = * [[Cryer Pharmaceuticals]]
*The "[[:Category:Systems|''systems category'']]" will be automatically added to any systems that use this template.
+
* [[Universal Shipping]]
*It will also deal with any systems that do not currently have an image, ''e.g. [[Texas]]''.  "[[:Category:Systems without profile images|No-image systems]]" will have an additional category to the normal 
+
* [[Ageira Technologies]]
<pre>{{System
+
* [[ALG Waste Disposal]]
|image =
+
* [[Border World Exports]]
|description =  
+
* [[Gateway Shipping]]
|planets =  
+
* [[Synth Foods, Inc.]]
{{Planet|Name|Text|OptionalImage}}
+
* [[Orbital Spa and Cruise]]
|stations =
+
* [[Kishiro Technologies]]
|AltStation =
+
* [[Samura Industries]]
|lawfulnpcs =
+
* [[Deep Space Engineering]]
|semi-lawfulnpcs =
+
| unlawful-factions = * [[Junkers]]
|unlawfulnpcs =
+
* [[Liberty Rogues]]
|commodities =
+
* [[Xenos]]
|mineable =  
+
* [[Outcasts]]
 +
| suns = * Medium White Sun
 +
| planets = * [[Planet Manhattan]] (inhabited)
 +
* [[Planet Pittsburgh]] (inhabited)
 +
* Maine
 +
| stations = * [[Newark Station]]
 +
* [[Trenton Outpost]]
 +
* [[Liberty Rogue Destroyer]]
 +
* [[Battleship Missouri]]
 +
* [[Norfolk Shipyard]]
 +
* [[West Point Military Academy]]
 +
* [[Detroit Munitions]]
 +
* [[Fort Bush]]
 +
* [[Baltimore Shipyard]]
 +
* [[Buffalo Base]]
 +
* [[Rochester Base]]
 +
| fields = * Badlands
 +
* Zone-21
 +
* Detroit Debris Field
 +
* Jersey Debris Field
 +
* Pittsburgh Debris Field
 +
| mining-zones = * [[Scrap Metal]]
 
}}
 
}}
</pre>
+
body elements and text goes here ...
  
=Example=
 
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:42, 4 May 2019

Template:System is for the solar systems in Discovery. This template does not define article body text, and instead only defines the infobox and System Overview table data. It is expected that each of the sections in the System Overview will have a section counterpart in the article body, but that data is not governed by this template.

Recognized attributes are shown in the Usage section below. Of particular note:

  • name is the system's full name, as extracted from the infocard data, and is used for the name that is shown in the infobox. The template will also attemp to load a PNG or JPG file with this name. It should also be used for the page title.
  • description is used for the text block at the top of the page.

The remaining attributes are used to populate additional fields in the infobox and the System Overview table. The rest of the page is provided as page data directly, and does not use the template.

Usage

{{System v2
| name = New York
| nickname = li01
| description = The [[New York]] system is the capital of [[Liberty]]
and one of the most populated areas of the entire [[Sirius Sector]].
Centered around a relatively cool G8-class star not unlike the sun of
the [[Sol|Sol System]] are two fully habitable and colonized planets,
[[Planet Manhattan|Manhattan]] and [[Planet Pittsburgh|Pittsburgh]].
The latter also features a moon, [[Maine]]. Further locations of
interest include nine permanent space stations (of which one is home
to the [[Liberty Rogues]] and another owned by the [[Junkers]]), two
stationary Battleships with full docking facilities, the mysterious
[[Badlands]] and the enigmatic [[Zone 21]].
| image = New_York.jpg
| government = {{House Link|Liberty|long}}
| region = Liberty
| neighbors = [[California]]<br/>[[Colorado]]<br/>[[Texas]]<br/>
[[Alaska]]<br/>[[Pennsylvania]]<br/>[[New York]]
| lawful-factions = * [[Liberty Navy]]
* [[Liberty Police, Inc.]]
* [[Bounty Hunters Guild]]
| trade-factions = * [[Cryer Pharmaceuticals]]
* [[Universal Shipping]]
* [[Ageira Technologies]]
* [[ALG Waste Disposal]]
* [[Border World Exports]]
* [[Gateway Shipping]]
* [[Synth Foods, Inc.]]
* [[Orbital Spa and Cruise]]
* [[Kishiro Technologies]]
* [[Samura Industries]]
* [[Deep Space Engineering]]
| unlawful-factions = * [[Junkers]]
* [[Liberty Rogues]]
* [[Xenos]]
* [[Outcasts]]
| suns = * Medium White Sun
| planets = * [[Planet Manhattan]] (inhabited)
* [[Planet Pittsburgh]] (inhabited)
* Maine
| stations = * [[Newark Station]]
* [[Trenton Outpost]]
* [[Liberty Rogue Destroyer]]
* [[Battleship Missouri]]
* [[Norfolk Shipyard]]
* [[West Point Military Academy]]
* [[Detroit Munitions]]
* [[Fort Bush]]
* [[Baltimore Shipyard]]
* [[Buffalo Base]]
* [[Rochester Base]]
| fields = * Badlands
* Zone-21
* Detroit Debris Field
* Jersey Debris Field
* Pittsburgh Debris Field
| mining-zones = * [[Scrap Metal]]
}}
body elements and text goes here ...

Result

New York
New York.png
System
Governing House Flag-liberty.png Republic of Liberty
Region Liberty
Connected
Systems
California
Colorado
Texas
Alaska
Pennsylvania
New York

The New York system is the capital of Liberty and one of the most populated areas of the entire Sirius Sector. Centered around a relatively cool G8-class star not unlike the sun of the Sol System are two fully habitable and colonized planets, Manhattan and Pittsburgh. The latter also features a moon, Maine. Further locations of interest include nine permanent space stations (of which one is home to the Liberty Rogues and another owned by the Junkers), two stationary Battleships with full docking facilities, the mysterious Badlands and the enigmatic Zone 21.

System Overview

Astronomical Bodies
Stellar Objects
  • Medium White Sun
  • None
  • Badlands
  • Zone-21
  • Detroit Debris Field
  • Jersey Debris Field
  • Pittsburgh Debris Field
Industrial Development
Faction Presence
Lawful Factions
Corporations & Guilds
Unlawful Factions


body elements and text goes here ...