Template:Character Logs: Difference between revisions

From Pax Republica
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
<includeonly>__NOCACHE__
<includeonly>
{{#css:
 
  .LogTable {text-align:left; width:100%; table-layout:fixed; border-radius:5px;}
  .LogTable tbody {border-radius:5px;};
  .LogTable:nth-child(1) {border-top-left-radius:5px; border-top-right-radius:5px;}
  .LogTable tr:nth-child(1) {border-top-left-radius:5px; border-top-right-radius:5px;}
  .LogTable tr td:nth-child(1) {width: 20rem;}
  .LogTable tr td:nth-child(2) {width: 15rem;}
  .LogTable tr:nth-child(1) td:nth-child(1) {border-top-left-radius:5px; }
  .LogTable tr:nth-child(1) td:nth-child(3) {border-top-right-radius:5px; }
  .LogTable tr:nth-child(2n+1) {background-color: rgba(0,70,70,.4)}
  .LogTable tr:nth-child(2n) {background-color: rgba(0,70,70,.2)}
  .LogTable td { vertical-align:top; padding: 0px 0px 0px 5px;}
  .logTable tr:nth-last-child(1) {border-bottom-right-radius: 5px; border-bottom-left-radius: 5px;}
  .LogTable tr:nth-last-child(1) td:nth-child(1) {border-bottom-left-radius:5px;}
  .LogTable tr:nth-last-child(1) td:nth-last-child(1) {border-bottom-right-radius:5px;}
  .LogTable tr td:nth-child(odd) { word-wrap:break-word; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; max-height:1.5em; height:1.5em; display:block;}
  .HeaderCell {padding: 0px 0px 0px 5px;}
  .HeaderCell:nth-child(1) {border-radius:5px 0px 0px 0px; width: 35%;}
  .HeaderCell:nth-child(2) {width: 10rem;}
  .HeaderCell:nth-child(3) {border-radius:0px 5px 0px 0px; width: 65%;}
  .LogRow { max-height:1em;}
  .LogRow:nth-child(1) {background-color: rgba(0,70,70,.5)}
  .LogRow:nth-child(2n+2) {background-color: rgba(0,70,70,.2)}
  .LogRow:nth-child(2n+3) {background-color: rgba(0,70,70,.3)}
  .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(odd) { word-wrap:break-word; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; max-height:1.5em; height:1.5em; display:block;}
}}
{| class="LogTable"
{| class="LogTable"
! class=HeaderCell | Title
! class=HeaderCell | Title
Line 34: Line 6:
! class=HeaderCell | Scene Summary
! class=HeaderCell | Scene Summary
|- class="LogRow"
|- class="LogRow"
{{#ask:[[Category:{{{1|Roleplay Logs}}}]] [[Log Characters::{{{2|{{#var:charid}}}}}]]
{{#cargo_query:tables=Logs
|?Log Date
|where=Characters HOLDS "{{{2|{{#var:charid}}}}}"
|?Log Synopsis
|fields=_pageName,Date,Synopsis
|format=template
|format=template
|template=Log List Single
|template=Log List Single
|limit=99999
|limit=99999
|sort=Log Date  
|order by=Date DESC
|order=descending
|group by=_pageName
|link=none
|default={{!}} colspan=3 {{!}} No logs submitted yet.
|default={{!}} colspan=3 {{!}} No logs submitted yet.
}}
}}
|}</includeonly><noinclude>
|}
</includeonly><noinclude>
 
To include character logs:
To include character logs:
<pre>{{Character Logs}}</pre>
<pre>{{Character Logs}}</pre>

Revision as of 21:04, 5 December 2023


To include character logs:

{{Character Logs}}

For Cutscenes:

{{Character Logs|Cutscenes}}

For a specific character:

{{Character Logs||Char_id}}
{{Character Logs|Cutscenes|Char_id}}