Template:Infobox 40k Planet: Difference between revisions

From 2d4chan
Jump to navigation Jump to search
created template using code from 40k wiki
 
imported>Administrator
m 4 revisions imported
 
(3 intermediate revisions by one other user not shown)
Line 7: Line 7:
}}
}}
|-
|-
{{#if:{{{type|}}}|
{{#if:{{{segmentum|}}}|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Type
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Segmentum
{{!}} style="padding-left:0.4em;" {{!}}
{{!}} style="padding-left:0.4em;" {{!}}
{{{type}}}
{{{segmentum}}}
}}
}}
|-
|-
{{#if:{{{orbdist|}}}|
{{#if:{{{sector|}}}|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Orbital radius
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Sector
{{!}} style="padding-left:0.4em;" {{!}}
{{!}} style="padding-left:0.4em;" {{!}}
{{{orbdist}}}
{{{sector}}}
}}
}}
|-
|-
{{#if:{{{gravity|}}}|
{{#if:{{{subsector|}}}|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Gravity
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Sub Sector
{{!}} style="padding-left:0.4em;" {{!}}
{{!}} style="padding-left:0.4em;" {{!}}
{{{gravity}}}
{{{subsector}}}
}}
}}
|-
|-
{{#if:{{{temp|}}}|
{{#if:{{{system|}}}|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Temperature
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}System
{{!}} style="padding-left:0.4em;" {{!}}
{{!}} style="padding-left:0.4em;" {{!}}
{{{temp}}}
{{{system}}}
}}
}}
|-
|-
Line 35: Line 35:
{{!}} style="padding-left:0.4em;" {{!}}
{{!}} style="padding-left:0.4em;" {{!}}
{{{pop}}}
{{{pop}}}
}}
|-
{{#if:{{{affiliation|}}}|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Affiliation
{{!}} style="padding-left:0.4em;" {{!}}
{{{affiliation}}}
}}
|-
{{#if:{{{class|}}}|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Class
{{!}} style="padding-left:0.4em;" {{!}}
{{{class}}}
}}
}}
|-
|-
Line 43: Line 55:
}}
}}
|-
|-
{{#if:{{{system|}}}|
{{#if:{{{tithe|}}}|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}System
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Tithe Grade
{{!}} style="padding-left:0.4em;" {{!}}
{{!}} style="padding-left:0.4em;" {{!}}
{{{system}}}
{{{tithe}}}
}}
}}
|-
|-
{{#if:{{{sector|}}}|
{{#if:{{{orbdist|}}}|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Sector
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Orbital radius
{{!}} style="padding-left:0.4em;" {{!}}
{{!}} style="padding-left:0.4em;" {{!}}
{{{sector}}}
{{{orbdist}}}
}}
}}
|-
|-
{{#if:{{{subsector|}}}|
{{#if:{{{gravity|}}}|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Sub Sector
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Gravity
{{!}} style="padding-left:0.4em;" {{!}}
{{!}} style="padding-left:0.4em;" {{!}}
{{{subsector}}}
{{{gravity}}}
}}
}}
|-
|-
{{#if:{{{segmentum|}}}|
{{#if:{{{temp|}}}|
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Segmentum
{{!}} style="width:40%; font-weight:bold;text-align:center; background-color:#dddddd;" {{!}}Temperature
{{!}} style="padding-left:0.4em;" {{!}}
{{!}} style="padding-left:0.4em;" {{!}}
{{{segmentum}}}
{{{temp}}}
}}
}}
|}
|}
Line 75: Line 87:
|fgcolor=
|fgcolor=
|image=
|image=
|type=
|segmentum=
|sector=
|subsector=
|system=
|pop=
|affiliation=
|class=
|governor=
|tithe=
|orbdist=
|orbdist=
|gravity=
|gravity=
|temp=
|temp=
|pop=
|governor=
|system=
|sector=
|subsector=
|segmentum=
}}
}}
</pre>
</pre>

Latest revision as of 18:14, 24 June 2023

Usage

Copy and paste the following into the article and fill in the fields.

{{Infobox 40k Planet
|name=
|bgcolor=
|fgcolor=
|image=
|segmentum=
|sector=
|subsector=
|system=
|pop=
|affiliation=
|class=
|governor=
|tithe=
|orbdist=
|gravity=
|temp=
}}

Optional Fields[edit source]

All fields are optional.

  • bgcolor
    • Manually sets the background color of the header text.
    • If using hex triplet (ex. #000000) the # must be replaced with &#35;.
  • fgcolor
    • Manually sets the foreground color of the header text.
    • If using hex triplet (ex. #000000) the # must be replaced with &#35;.