Template:Test2: Difference between revisions

From USS Pacifica Online Database
Jump to navigationJump to search
(Created page with '<includeonly>{| class="wiki-sidebar" |- ! colspan="2" | {{{Name}}} |- {{ #if: {{{ImageOrbital|}}}|{{!}}class="sb-both" colspan="2"{{!}}{{sidebar image|{{{ImageOrbital}}}|{{#if: {…')
 
No edit summary
 
Line 1: Line 1:
<includeonly>{| class="wiki-sidebar"
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em;  width:275px; background:#2B2B2B; border-collapse:collapse; border:1px solid #666666; font-size:smaller; line-height:1.5;">
|-
<tr colspan="2"><td>
! colspan="2" | {{{Name}}}
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#656565; border-collapse:collapse;">
|-
<tr style="text-align:center;">
{{ #if: {{{ImageOrbital|}}}|{{!}}class="sb-both" colspan="2"{{!}}{{sidebar image|{{{ImageOrbital}}}|{{#if: {{{OrbitalCap|}}}|{{{OrbitalCap}}}|{{{Name}}} from orbit}}}}}}
<td colspan="2" style="padding:0; background:{{#if:{{{imageBG|}}}|{{{imageBG}}}|#8C0000}};">{{{image|}}}</td></tr>
|-
<tr style="text-align:center; color:{{{3|#FFFFFF}}}; background:#490101; font-size:larger;"><td colspan="2">'''{{{name}}}'''</td></tr> {{t|1=|1{{{hideb|}}}=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle;><td colspan="2" style="text-align:left; font-weight:normal; background:#8C0000;">'''Astronomical Location'''</td></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Quadrant</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
{{ #if: {{{Class|}}}|{{!}}class="sb-left"{{!}}Class:}}
{{{quadrant|}}}</td></tr>|1{{{quadrant|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Sector</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
{{ #if: {{{Class|}}}|{{!}}class="sb-right"{{!}}{{{Class}}}}}
{{{sector|}}}</td></tr>|1{{{sector|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">System</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
|-
{{{system|}}}</td></tr>|1{{{system|}}}=}} {{t|1=|1{{{hidec|}}}=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle;><td colspan="2" style="text-align:left; font-weight:normal; background:#8C0000;">'''Physical Characteristic'''</td></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Classification</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
{{ #if: {{{Type|}}}|{{!}}class="sb-left"{{!}}Type:}}
{{{class|}}}</td></tr>|1{{{class|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Equatorial Radius</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
{{ #if: {{{Type|}}}|{{!}}class="sb-right"{{!}}{{{Type}}}}}
{{{equaradius|}}}</td></tr>|1{{{equaradius|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Polar Radius</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
|-
{{{polarradius|}}}</td></tr>|1{{{polarradius|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Surface Gravity</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
{{ #if: {{{Status|}}}|{{!}}class="sb-left"{{!}}Status:}}
{{{gravity|}}}</td></tr>|1{{{gravity|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Rotational Period</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
{{ #if: {{{Status|}}}|{{!}}class="sb-right"{{!}}{{{Status}}}}}
{{{day|}}}</td></tr>|1{{{day|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Orbital Period</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
|-
{{{year|}}}</td></tr>|1{{{year|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Moons</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
{{ #if: {{{Satellites|}}}|{{!}}class="sb-left"{{!}}Satellites:}}
{{{moons|}}}</td></tr>|1{{{moons|}}}=}} {{t|1=|1{{{hidec|}}}=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle;><td colspan="2" style="text-align:left; font-weight:normal; background:#8C0000;">'''Additional Information'''</td></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Affiliation</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
{{ #if: {{{Satellites|}}}|{{!}}class="sb-right"{{!}}{{{Satellites}}}}}
{{{affiliation|}}}</td></tr>|1{{{affiliation|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Native Race(s)</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
|-
{{{native|}}}</td></tr>|1{{{native|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #656565"><td style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">Population</td><td  style="border-top: 1px solid #666666; border-bottom: 1px solid #666666;">
{{ #if: {{{Native Species|}}}|{{!}}class="sb-left"{{!}}Native Species:}}
{{{population|}}}</td></tr>|1{{{population|}}}=}} </table></td></tr><tr><td style="text-align:center; width:50%;">&nbsp;&nbsp;[[Template:Planet|[Source]]]</td></tr></table><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. -->
{{ #if: {{{Native Species|}}}|{{!}}class="sb-right"{{!}}{{{Native Species}}}}}
<noinclude>
|-
{{clear}}
{{ #if: {{{Location|}}}|{{!}}class="sb-left"{{!}}Location:}}
===Usage instructions===
{{ #if: {{{Location|}}}|{{!}}class="sb-right"{{!}}{{{Location}}}}}
Paste the following code into the top of an article, filling all known fields:
|-
<pre><nowiki>
{{ #if: {{{Affiliation|}}}|{{!}}class="sb-left"{{!}}Affiliation:}}
{{Planet
{{ #if: {{{Affiliation|}}}|{{!}}class="sb-right"{{!}}{{{Affiliation}}}}}
|image=
|-
|name=
{{ #if: {{{ImageSurface|}}}|{{!}}class="sb-both" colspan="2"{{!}}{{sidebar image|{{{ImageSurface}}}|{{#if: {{{SurfaceCap|}}}|{{{SurfaceCap}}}|The surface of {{{Name}}}}}}}}}
|quadrant=
|}</includeonly><noinclude>{{doc}}[[Category:Memory Alpha sidebar templates|Planet]]</noinclude>
|sector=
|system=
|class=
|equaradius=
|polarradius=
|gravity=
|day
|year
|moons=
|affiliation=
|native=
|population=
}}</nowiki></pre>
<noinclude>
 
==Data fields==
*image &ndash; Put a link to the image at a width of 250 pixels or less.
*name &ndash; Simply list the name of the planet in italics.
*qaudrant &ndash; Put the quadrant the planet is located in
*sector &ndash; Put the sector the planet is located in
*system &ndash; Put the system the planet is located in
*class &ndash; Put the planet classification (e.g. M class)
*equaradius &ndash; Put the radius of the planet along the equator
*polarradius &ndash; Put the radius of the planet from pole to pole
*gravity &ndash; Put the surfacr gravity of the planet (1''g'' = earth's gravity)
*day &ndash; Put the time it takes for one rotation of the planet
*year &ndash; Put the time it takes for the planet to orbit its star
*native &ndash; Put the name of all the native sentient species on the planet.
*population &ndash; Put the number of senties beings on the planet
</noinclude>
 
<noinclude>[[Category:Templates|P]]</noinclude>

Latest revision as of 12:31, 12 November 2010

{{{name}}}
Astronomical Location
Physical Characteristic
Additional Information
  [Source]

Usage instructions

Paste the following code into the top of an article, filling all known fields:

{{Planet
|image=
|name=
|quadrant=
|sector=
|system=
|class=
|equaradius=
|polarradius=
|gravity=
|day
|year
|moons=
|affiliation=
|native=
|population=
}}


Data fields

  • image – Put a link to the image at a width of 250 pixels or less.
  • name – Simply list the name of the planet in italics.
  • qaudrant – Put the quadrant the planet is located in
  • sector – Put the sector the planet is located in
  • system – Put the system the planet is located in
  • class – Put the planet classification (e.g. M class)
  • equaradius – Put the radius of the planet along the equator
  • polarradius – Put the radius of the planet from pole to pole
  • gravity – Put the surfacr gravity of the planet (1g = earth's gravity)
  • day – Put the time it takes for one rotation of the planet
  • year – Put the time it takes for the planet to orbit its star
  • native – Put the name of all the native sentient species on the planet.
  • population – Put the number of senties beings on the planet