Difference between revisions of "Template:Test"

From Heroes Assemble MUSH
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
__NOCACHE__
This is the "Show Template" template. It should be called in the following format:  
+
{{#css:
<pre>
+
  .LogTable {text-align:left; width:100%; table-layout:fixed;}
{{ShowHeader
+
  .LogTable tr td:nth-child(1) {width:300px;}
| ShowTitle          = What is the Show Title?
+
  .LogTable tr td:nth-child(2) {width:150px;}
| Img                = link to show image
+
  .HeaderCell {padding: 0px 0px 0px 5px;}
| ShowType          = What format show is this? Movie? TV? Radio? News?
+
  .HeaderCell:nth-child(1) {border-radius:5px 0px 0px 0px; width: 300px; background-color: #081f3f; color: red}
| ShowStatus        = Is the Show Ongoing, Finished, Rumored, or in Production?
+
  .HeaderCell:nth-child(2) {width: 150px; background-color: #081f3f; color: red}
| ShowStartDate      = When did this start?
+
  .HeaderCell:nth-child(3) {border-radius:0px 5px 0px 0px; background-color: #081f3f; color: red}
| ShowEndDate        = When did this end?
+
  .LogRow { max-height:1em;}
| Synopsis          = What is the show about?
+
  .LogRow:nth-child(1) {background-color: #081f3f}
| Cast of Characters = Characters who have appeared in the show
+
  .LogRow:nth-child(2n+2) {background-color: rgba(4,61,61,.97)}
}}  
+
  .LogRow:nth-child(2n+3) {background-color: #081f3f}
</pre>
+
  .LogCell { vertical-align:top; padding: 0px 0px 0px 5px; max-height:1em;}
 
+
  .LogRow:last-of-type td:nth-last-child(3) {border-radius:0px 0px 0px 5px;}
Edit the page to see the template text.  
+
  .LogRow:last-of-type td:nth-last-child(1) {border-radius:0px 0px 5px 0px;}
</noinclude><includeonly>
+
  .LogCell:nth-child(1) { word-wrap:break-word; white-space: nowrap; overflow: hidden; max-height:1.5em; height:1.5em; display:block;}
{| class="toccolours" style="width: 900px; float: left; margin-left:10px; margin-right:1px; margin-bottom:10px; text-align: left" cellspacing="2"
+
  .LogCell:nth-child(3) { word-wrap:break-word; max-height:1.5em; height:1.5em; }
|-
+
}}{| class="LogTable"
! style="background:{{{Color|black}}}; color:{{{TextColor|ffff66}}}; border: 1px ridge; font-size: 110%;" align="center" colspan="4" | '''{{{ShowTitle|Untitled}}}''' ('''{{{ShowType|TV Series}}}''')
 
|-
 
! colspan="4" align="center" | <img src="{{{Img}}}" width="300">
 
|-
 
! style="background:{{{Color|black}}}; color:{{{TextColor|ffff66}}}; border: 1px ridge; font-size: 110%;" align="center" colspan="4" | '''{{{ShowStatus|Finished}}}'''
 
|-
 
 
|- class="LogRow"
 
|- class="LogRow"
! class="LogCell" {{!}} | Start Date: || class="LogCell" | {{#set:Show Date={{{ShowStartDate}}}}}{{#time: d F Y | {{{ShowStartDate}}} }}
+
! class=HeaderCell | Title
|-
+
! class=HeaderCell | Date
{{#if: {{{ShowEndDate|}}} |  
+
! class=HeaderCell | Scene Summary
{{!}}
 
 
|- class="LogRow"
 
|- class="LogRow"
! class="LogCell" | End Date:
+
{{#ask:[[Category:{{{1|Cutscenes}}}]] [[Log Tinyplot::{{#titleparts: {{PAGENAME}}}}]] OR [[Category:{{{1|Cutscenes}}}]] [[Tinyplot Two::{{#titleparts: {{PAGENAME}}}}]]
! colspan="3" style="color: #C0C0C0; font-weight:normal;" | {{#time: d F Y |{{{ShowEndDate|}}} }}
+
OR [[Category:{{{1|Roleplay Logs}}}]] [[Log Tinyplot::{{#titleparts: {{PAGENAME}}}}]] OR [[Category:{{{1|Roleplay Logs}}}]] [[Tinyplot Two::{{#titleparts: {{PAGENAME}}}}]]
|-
+
|?Log Date
|- class="LogRow"
+
|?Log Synopsis
! class="LogCell" | Synopsis: || class="LogCell" | {{#set:Show Synopsis={{{Synopsis}}}}}{{{Synopsis|}}}  
+
|format=template
|-
+
|template=Log List Single
|- class="LogRow"
+
|limit=99999
! class="LogCell" | Cast: || class="LogCell" | {{#arraymap:{{{Cast of Characters}}}|,|x|{{#set:Show Characters=x}}{{#if: {{#vardefineecho: x | {{#ask: [[Char_id::x]]}}}} | {{#var: x}} | x}}|,&#32;}}  
+
|sort=Log Date
|} [[Category:Shows]]
+
|order=descending
 
+
|link=none
----
+
|default={{!}} colspan=3 {{!}} No logs submitted yet.
</includeonly>
+
}}
 +
|}
 +
[[Category:Tinyplots]]

Latest revision as of 16:28, 17 December 2022

Title Date Scene Summary
No logs submitted yet.