Difference between revisions of "Template:Test"

From Heroes Assemble MUSH
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Book Template" template. It should be called in the following format:
+
This is the "tiny plot cutscene" template.  
<pre>
+
</noinclude><includeonly>
{{BookHeader
 
| BookTitle          = What is the Book Title?
 
| Img                = link to Book image
 
| BookType          = What format Book is this? Movie? TV? Radio? News?
 
| BookReleaseDate    = When was the Book released?
 
| Synopsis          = What is the Book about?
 
| BookAuthors        = Who Wrote the book?
 
}}
 
</pre>  
 
  
Edit the page to see the template text.  
+
 
</noinclude><includeonly>
+
__NOCACHE__
{| class="toccolours" style="width: 900px; float: left; margin-left:10px; margin-right:1px; margin-bottom:10px; text-align: left" cellspacing="2"
+
{{#css:
|-
+
  .LogTable {text-align:left; width:100%; table-layout:fixed;}
! style="background:{{{Color|black}}}; color:{{{TextColor|ffff66}}}; border: 1px ridge; font-size: 110%;" align="center" colspan="4" | '''{{{BookTitle|Untitled}}}'''
+
  .LogTable tr td:nth-child(1) {width:300px;}
|-
+
  .LogTable tr td:nth-child(2) {width:150px;}
! colspan="4" align="center" | <img src="{{{Img}}}" width="300">
+
  .HeaderCell {padding: 0px 0px 0px 5px;}
|-
+
  .HeaderCell:nth-child(1) {border-radius:5px 0px 0px 0px; width: 300px; background-color: #081f3f; color: red}
! style="background:{{{Color|black}}}; color:{{{TextColor|ffff66}}}; border: 1px ridge; font-size: 110%;" align="center" colspan="4" | '''{{{BookType|Fiction}}}'''
+
  .HeaderCell:nth-child(2) {width: 150px; background-color: #081f3f; color: red}
|-
+
  .HeaderCell:nth-child(3) {border-radius:0px 5px 0px 0px; background-color: #081f3f; color: red}
 +
  .LogRow { max-height:1em;}
 +
  .LogRow:nth-child(1) {background-color: #081f3f}
 +
  .LogRow:nth-child(2n+2) {background-color: rgba(4,61,61,.97)}
 +
  .LogRow:nth-child(2n+3) {background-color: #081f3f}
 +
  .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;}
 +
  .LogRow:last-of-type td:nth-last-child(1) {border-radius:0px 0px 5px 0px;}
 +
  .LogCell:nth-child(1) { word-wrap:break-word; white-space: nowrap; overflow: hidden; max-height:1.5em; height:1.5em; display:block;}
 +
  .LogCell:nth-child(3) { word-wrap:break-word; max-height:1.5em; height:1.5em; }
 +
}}{| class="LogTable"
 
|- class="LogRow"
 
|- class="LogRow"
! class="LogCell" | Start Date: || class="LogCell" | {{#set:Book Date={{{BookReleaseDate}}}}}{{#time: d F Y | {{{BookReleaseDate}}} }}
+
! class=HeaderCell | Title
|-
+
! class=HeaderCell | Date
 +
! class=HeaderCell | Scene Summary
 
|- class="LogRow"
 
|- class="LogRow"
! class="LogCell" | Synopsis: || class="LogCell" | {{#set:Book Synopsis={{{Synopsis}}}}}{{{Synopsis|}}}  
+
{{#ask:[[Category:{{{1|Cutscenes}}}]] [[Log Tinyplot::{{#titleparts: {{PAGENAME}}}}]] OR [[Category:{{{1|Cutscenes}}}]] [[Tinyplot Two::{{#titleparts: {{PAGENAME}}}}]]
|-
+
|?Log Date
|- class="LogRow"
+
|?Log Synopsis
! class="LogCell" | Author(s): || class="LogCell" | {{#arraymap:{{{BookAuthors}}}|,|x|{{#set:Book Authors=x}}{{#if: {{#vardefineecho: x | {{#ask: [[Char_id::x]]}}}} | {{#var: x}} | x}}|,&#32;}}  
+
|format=template
|} [[Category:Books]]
+
|template=Log List Single
 +
|limit=99999
 +
|sort=Log Date
 +
|order=descending
 +
|link=none
 +
|default={{!}} colspan=3 {{!}} No logs submitted yet.
 +
}}
 +
|}
 +
[[Category:Tinyplots]]
 +
 
  
 
----
 
----
 
</includeonly>
 
</includeonly>

Revision as of 16:02, 17 December 2022

This is the "tiny plot cutscene" template.