Template:Log Header: Difference between revisions
Jump to navigation
Jump to search
Willowmist (talk | contribs) m (1 revision imported) |
No edit summary |
||
Line 12: | Line 12: | ||
}} | }} | ||
</pre> | </pre> | ||
{{#cargo_declare:_table=Logs | |||
|Date=Date | |||
|Synopsis=String | |||
|Characters=List (,) of String | |||
|Tinyplot=Page | |||
}} | |||
Edit the page to see the template text. | Edit the page to see the template text. | ||
Line 25: | Line 32: | ||
.LastCell:nth-child(1) {border-radius: 0px 0px 0px 5px} | .LastCell:nth-child(1) {border-radius: 0px 0px 0px 5px} | ||
.LastCell:nth-child(2) {border-radius: 0px 0px 5px 0px} | .LastCell:nth-child(2) {border-radius: 0px 0px 5px 0px} | ||
}}{{#css: | }} | ||
{{#cargo_store:_table=Logs | |||
|Date={{{Date of Scene|}}} | |||
|Synopsis={{{Synopsis|}}} | |||
|Characters={{{Cast of Characters}}} | |||
|Tinyplot={{{Tinyplot|}}} | |||
}} | |||
{{#css: | |||
{ | { | ||
/* white-space: pre; */ | /* white-space: pre; */ | ||
Line 588: | Line 602: | ||
! class="LogTitle" colspan="2"| {{#if:{{#titleparts:{{PAGENAME}}|0|2}}|{{#titleparts:{{PAGENAME}}|0|2}}|{{PAGENAME}}}} | ! class="LogTitle" colspan="2"| {{#if:{{#titleparts:{{PAGENAME}}|0|2}}|{{#titleparts:{{PAGENAME}}|0|2}}|{{PAGENAME}}}} | ||
|- class="LogRow" | |- class="LogRow" | ||
! class="LogCell" | Date of Scene: || class="LogCell" | | ! class="LogCell" | Date of Scene: || class="LogCell" | {{#time: d F Y | {{{Date of Scene}}} }} | ||
|- class="LogRow" | |- class="LogRow" | ||
! class="LogCell" | Location: || class="LogCell" | {{{Location|}}} | ! class="LogCell" | Location: || class="LogCell" | {{{Location|}}} | ||
|- class="LogRow" | |- class="LogRow" | ||
! class="LogCell" | Synopsis: || class="LogCell" | | ! class="LogCell" | Synopsis: || class="LogCell" | {{{Synopsis|}}} | ||
{{#if: {{{Thanks|}}} | | {{#if: {{{Thanks|}}} | | ||
{{!}}- class="LogRow" | {{!}}- class="LogRow" | ||
! class="LogCell" {{!}} Thanks to: {{!!}} class="LogCell" {{!}} {{{Thanks}}} | }} | ! class="LogCell" {{!}} Thanks to: {{!!}} class="LogCell" {{!}} {{{Thanks}}} | }} | ||
|- class="LogRow" | |- class="LogRow" | ||
! class="LogCell" | Cast of Characters: || class="LogCell" | {{#arraymap:{{{Cast of Characters}}}|,|x| | ! class="LogCell" | Cast of Characters: || class="LogCell" | {{#arraymap:{{{Cast of Characters}}}|,|x|{{#if: {{#vardefineecho: x | {{#cargo_query:tables=Characters|where=ID="x"|fields=_pageName|default=|group by=_pageName}}}} | {{#var: x}} | x}}|, }} | ||
{{#if: {{{Tinyplot|}}} | | {{#if: {{{Tinyplot|}}} | | ||
{{!}}- class="LogRow" | {{!}}- class="LogRow" | ||
! class="LogCell" {{!}} Tinyplot: {{!!}} class="LogCell" {{!}} | ! class="LogCell" {{!}} Tinyplot: {{!!}} class="LogCell" {{!}} {{{Tinyplot}}} | ||
{{#if: {{{Tinyplot2|}}} | | {{#if: {{{Tinyplot2|}}} | | ||
{{!}}- class="LogRow" | {{!}}- class="LogRow" | ||
! class="LogCell" {{!}} Tinyplot2: {{!!}} class="LogCell" {{!}} | ! class="LogCell" {{!}} Tinyplot2: {{!!}} class="LogCell" {{!}} {{{Tinyplot2}}} | }} | }} | ||
|} | |} | ||
[[Category:Roleplay Logs]] | |||
{{#if: {{{pretty|}}} | {{#css: | {{#if: {{{pretty|}}} | {{#css: | ||
dl:nth-child(2n+1) dd {background-color:rgba(0,70,70,.2); border-radius:5px; padding:5px;} | dl:nth-child(2n+1) dd {background-color:rgba(0,70,70,.2); border-radius:5px; padding:5px;} |
Revision as of 21:44, 5 November 2021
This is the "RP Log Template" template. It should be called in the following format:
{{Log Dossier | Synopsis = What was the scene about? | Tinyplot = In the case there is a Tinyplot page you wish to associate with this log. | Tinyplot2 = If there's a second TP the scene was part of. | Cast of Characters = Characters who were in the scene, seperated by commas. | Thanks = In case you wish to thank People who NPCed... etc - Optional | Location = Where did it ICly take place? | Date of Scene = When did this OOCly take place? | pretty = If you have your log formatted according to the guidelines, use 'yes' to get it to look 'pretty' }}
This template defines the table "Logs". View table.
Edit the page to see the template text.