Difference between revisions of "Template:Location logs"

From MahouMUSH
Jump to: navigation, search
(Undo revision 6773 by Phishfood (talk))
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#css:
+
<includeonly>
.LocationTable {width:100%; border: 1px solid #aaaaaa; background-color: #f9f9f9; text-align:left; border-radius: 10px; vertical-align:top; border-spacing:0px;}
+
{{#css:
.LocationTable th:nth-child(1) {width:10%; padding: 0px 0px 0px 10px; border-radius: 10px 10px 0px 0px}
+
  .LogTable {text-align:left; width:100%; table-layout:fixed;}
.LocationTable td:nth-child(1) {width:10%; padding: 0px 0px 0px 10px;}
+
  .HeaderCell {padding: 0px 0px 0px 5px;}
.LocationTable tr:nth-child(1) {text-shadow:1px 1px 1px gray; background-color: rgba(0,70,70,.5);}
+
  .HeaderCell:nth-child(1) {border-radius:5px 0px 0px 0px; width: 20%;}
.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;}
+
  .HeaderCell:nth-child(2) {width: 10rem;}
.LocationTable td:nth-child(odd) {font-weight:700;}
+
  .HeaderCell:nth-child(3) {border-radius:0px 5px 0px 0px; width: 70%;}
#LocationAlignment {background-color: rgba(0,70,70,.3); border: 0px;}
+
  .LogRow { max-height:1em;}
#LocationGroup {background-color: rgba(0,70,70,.2); border: 0px;}
+
  .LogRow:nth-child(1) {background-color: #80c4d8}
#LocationType {background-color: rgba(0,70,70,.3); border: 0px;}
+
  .LogRow:nth-child(2n+2) {background-color: #e1ffe4}
#LocationMap {background-color: rgba(0,70,70,.2); border: 0px;}
+
  .LogRow:nth-child(2n+3) {background-color: #bfe1eb}
#LocationDescription {background-color: rgba(0,70,70,.3); border: 0px; font-weight:normal; border-radius:0px 0px 10px 10px;}
+
  .LogCell { vertical-align:top; padding: 0px 0px 0px 5px; max-height:1em;}
}}{| class="LocationTable"
+
  .LogRow:last-of-type td:nth-last-child(3) {border-radius:0px 0px 0px 5px}
! colspan="5" align="Center"| {{#if:{{{locationimage|}}} | [[File:{{{locationimage}}}|400x400px]]| {{PAGENAME}} }}
+
  .LogRow:last-of-type td:nth-last-child(1) {border-radius:0px 0px 5px 0px;}
|-
+
  .LogCell:nth-child(odd) { word-wrap:break-word; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; max-height:1.5em; height:1.5em; display:block;}
| id="LocationAlignment" | Allied Faction: || id="LocationAlignment" | {{#set:Locationalignment={{{alignment|Undefined}}}}}[[{{{alignment}}}]]
+
|-
+
| id="LocationGroup"    | Allied Groups: || id="LocationGroup" | {{#arraymap:{{{groups|}}}|,|x|[[x]]}}
+
|-
+
| id="LocationType" | Location Type: || id="LocationType" | {{#set:Locationtype={{{type|Undefined}}}}}{{{type}}}
+
|-
+
| id="LocationMap" | Grid Locale: || id="LocationMap" | {{#set:Locationmap={{{type|Undefined}}}}}{{{map}}}
+
|-
+
| colspan="5" id="LocationDescription" | {{{description}}}
+
|} 
+
==Associated Logs==
+
{{Location logs}}
+
[[Category:Locations]] [[Category:Information Files]] {{#set:Information=Locations}}</includeonly><noinclude>
+
<pre>{{Location
+
| locationimage = image.ext
+
| alignment    = Is there a faction this location is primarily affiliated with?
+
| groups        = Groups, delimited by commas, that are associated with this location.
+
| type          = Residence, Business, or Public Space.
+
| map          = Where it is on the grid.
+
| description  = Describe the location.
+
 
}}
 
}}
{{Location logs|Name of Location Here}}</pre>
+
{| class="LogTable"
 +
|- class="LogRow"
 +
! class=HeaderCell | Title
 +
! class=HeaderCell | Date
 +
! class=HeaderCell | Scene Summary
 +
|- class="LogRow"
 +
{{#ask:[[Category:Roleplay Logs]] [[Location::{{{1}}}]]
 +
|?Log Date
 +
|?Log Synopsis
 +
|format=template
 +
|template=Log List Single
 +
|sort=Log Date,
 +
|link=none
 +
|order=ascending,ascending
 +
|default={{!}} colspan=3 {{!}} No logs submitted yet.
 +
|limit=500
 +
}}
 +
|}
 +
</includeonly>
 +
<noinclude>
 +
== Usage ==
 +
<pre>
 +
{{location logs|Name of Location Here}}
 +
</pre>
 
</noinclude>
 
</noinclude>

Latest revision as of 00:20, 24 May 2017


Usage

{{location logs|Name of Location Here}}