Welcome to Warhammer 40k - Lexicanum! Log in and join the community.

Difference between revisions of "Template:Planet"

From Warhammer 40k - Lexicanum
Jump to: navigation, search
(align)
Line 4: Line 4:
 
!style="width:1%"|'''Planetary Image'''
 
!style="width:1%"|'''Planetary Image'''
 
|-
 
|-
|rowspan="9" style="padding:0"|<div style="position:relative">[[File:{{{Map|Galaxy map unknown.jpg}}}|{{{Map Px|300}}}px]]{{#if:{{{Cross X|}}}|<div style="position:absolute;left:{{{Cross X}}}px;top:{{{Cross Y|0}}}px;color:#fab000">[[File:Small cross.png]]{{{Cross Text|}}}</div>}}</div>
+
|rowspan="9" style="padding:0"|<div style="position:relative">[[File:{{{Map|Galaxy map unknown.jpg}}}|{{{Map Px|300}}}px]]{{#if:{{{Cross X|}}}|<div style="position:absolute;left:{{{Cross X}}}px;top:{{{Cross Y|0}}}px;color:#fab000">[[File:Small cross.png|top]]{{{Cross Text|}}}</div>}}</div>
 
|'''Name:'''
 
|'''Name:'''
 
|'''{{{Name|{{PAGENAME}}}}}'''
 
|'''{{{Name|{{PAGENAME}}}}}'''
Line 57: Line 57:
 
Small map locations can be calculated by first finding the pixel coordinates on the large galaxy map [[:File:Galaxy-shadowbox.jpg]]. The conversion formula is:
 
Small map locations can be calculated by first finding the pixel coordinates on the large galaxy map [[:File:Galaxy-shadowbox.jpg]]. The conversion formula is:
 
  Cross X = 0.1126*x - 0.0198*y + 68
 
  Cross X = 0.1126*x - 0.0198*y + 68
  Cross Y = 0.0198*x + 0.1126*y + 25
+
  Cross Y = 0.0198*x + 0.1126*y + 27
  
 
[[Category:Summary Templates]]
 
[[Category:Summary Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 09:09, 11 February 2019

Map Basic Data Planetary Image
Galaxy map unknown.jpg
Name: Planet Unknown.jpg
Segmentum: Unknown
Sector: Unknown
Subsector: Unknown
System: Unknown
Population: Unknown
Affiliation: Unknown
Class: Unknown

Code to include on page

{{Planet
|Map=
|Map PX=
|Cross X=
|Cross Y=
|Cross Text=
|Planetary Image=
|Planetary Image Px=
|Name=
|Segmentum=
|Sector=
|Subsector=
|System=
|Population=
|Affiliation=
|Class=
|Tithe Grade=
}}

Calculating Locations

Small map locations can be calculated by first finding the pixel coordinates on the large galaxy map File:Galaxy-shadowbox.jpg. The conversion formula is:

Cross X = 0.1126*x - 0.0198*y + 68
Cross Y = 0.0198*x + 0.1126*y + 27