Template:Location: Difference between revisions

From Pax Republica
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
Line 1: Line 1:
<includeonly>{{#css:
<includeonly><infobox type="Location">
.LocationTable {width:100%; border: 1px solid #aaaaaa; background-color: #f9f9f9; text-align:left; border-radius: 10px; vertical-align:top; border-spacing:0px;}
<title source="title"/>
.LocationTable th:nth-child(1) {width:10%; padding: 0px 0px 0px 10px; border-radius: 10px 10px 0px 0px}
<image source="image1" />
.LocationTable td:nth-child(1) {width:10%; padding: 0px 0px 0px 10px;}
<data source="affiliation"><label>Affiliation</label></data>
.LocationTable tr:nth-child(1) {text-shadow:1px 1px 1px gray; background-color: rgba(0,70,70,.5);}
<data source="species"><label>Species</label></data>
.LocationTable tr:nth-child(1) th { padding: 5px; font-family: serif; font-size:72px; word-wrap:break-word; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;}
<data source="location"><label>Location</label></data>
.LocationTable td:nth-child(odd) {font-weight:700;}
<data source="languages"><label>Languages</label></data>
#LocationAlignment {background-color: rgba(0,70,70,.2); border: 0px;}
<group>
#LocationGroup {background-color: rgba(0,70,70,.2); border: 0px;}
<header>System</header>
#LocationDescription {background-color: rgba(0,70,70,.3); border: 0px; font-weight:normal; border-radius:0px 0px 10px 10px;}
<data source="sector"><label>Sector</label></data>
}}{| class="LocationTable"  
    <data source="name"><label>Name</label></data>
! colspan="4" align="Center"| {{#if:{{{locationimage|}}} | [[File:{{{locationimage}}}|400x400px]]| {{PAGENAME}} }}
    <data source="star"><label>Star</label></data>
|-
    <data source="moons"><label>Moons</label></data>
| id="LocationAlignment" | Average Alignment: || id="LocationAlignment" | {{#set:Locationalignment={{{alignment|Undefined}}}}}[[{{{alignment}}}]]
    <data source="trade routes"><label>Trade Routes</label></data>
| id="LocationGroup"     | Associated Groups: || id="LocationGroup" | {{#arraymap:{{{groups|}}}|,|x|[[x]]}}
</group>
|-
<data source="capital"><label>Capital</label></data>
| colspan="4" id="LocationDescription" | {{{description}}}
</infobox>{{#ifeq: {{NAMESPACENUMBER}} | 0 | [[Category:Locations]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
|[[Category:Locations]] [[Category:Information Files]] {{#set:Information=Locations}}</includeonly><noinclude>
<pre>{{Location
| locationimage = image.ext
| alignment    = What Force does it fall under?
| groups        = Groups, delimited by commas, that are assiated with this location.
| description  = Describe the Location.
}}</pre>
</noinclude>

Revision as of 02:36, 25 January 2021