Difference between revisions of "Template:Log"

From City of Hope MUSH
Jump to navigation Jump to search
imported>Marshall
(Created page with "__NOEDITSECTION__ __NOTOC__<css> #content table.log { min-width: 600px; width: 66%; } #content table h4 { padding: 0; margin: 0; color: #303030; } #content table td.cast { min...")
 
imported>Felix
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOEDITSECTION__ __NOTOC__<css>
+
<includeonly>{{#css:
#content table.log {
+
    .wikitable ~ p {
min-width: 600px;
+
        margin: 0;
width: 66%;
+
        text-indent: 3em;
}
+
    }
#content table h4 {
+
    .wikitable ~ i, .wikitable ~ em, .wikitable ~ blockquote b {
padding: 0;
+
        margin-left: -3em;
margin: 0;
+
    }
color: #303030;
+
    .ooc {
}
+
        font-style: italic;
#content table td.cast {
+
        margin-left: 3.75em;
min-width: 210px;
+
        text-indent: -3.75em;
padding-right: 10px;
+
    }
}
+
    .wikitable.logbox {
p {
+
        border: 1px dotted #999;
text-indent: 20px;
+
        font-size: 100%;
}
+
        text-align: left;
p.right {
+
        margin: .5em auto 1.5em;
float: right;
+
        width: 50%;
margin: 0;
+
    }
padding: 0;
+
    .wikitable.logbox tr:nth-of-type(2n+1) {
}
+
        background-color: #ffffff;
</css><includeonly>
+
    }
{| class="log"
+
    .wikitable.logbox th, .wikitable.logbox td {
! class="center" colspan="2" | {{BASEPAGENAME}}
+
        background-color: transparent;
{{#ifeq: {{{subtitle| }}} | | |
+
        border: none;
{{!}}-
+
        padding: 0.25em 0.5em;
{{!}} class="center" colspan="2" {{!}} <h4> ''{{{subtitle}}}'' </h4> }}
+
        text-align: left;
|-
+
        vertical-align: top;
| class="cast" | '''Dramatis Personae'''
+
    }
 
+
    .wikitable.logbox th {
{{{cast}}}
+
        white-space: nowrap;
| <p class="right">{{#ifeq: {{{gamedatename| }}} | | {{Date | {{{gamedate|0000.00.00}}} }} | {{{gamedatename}}} }}</p><br />
+
    }
 
+
    .wikitable.logbox th::after {
''{{{summary}}}''
+
        content: ":";
|-
+
    }
| '''Location'''
+
    .wikitable.logbox .title, .wikitable.logbox .summary {  
{{#ifeq: {{{location| }}} | | | {{{location}}}}}
+
        background-color: #f2f2f2;
|-
+
        border-bottom: 1px dotted #aaa;
| colspan="2" | <hr>
+
        text-align: center;
 
+
        height: 1.5em
 +
    }
 +
    .wikitable.logbox .title::after, .wikitable.logbox .summary::after {
 +
        content: "";
 +
    }
 +
    .wikitable.logbox .title {
 +
        font-size: 150%;
 +
        vertical-align: middle;
 +
    }
 +
}}
 +
<table class="wikitable logbox">
 +
<tr><th colspan="2" class="title">{{{name}}}</th></tr>
 +
<tr><th colspan="2" class="summary">{{{summary}}}</th></tr>
 +
{{#if: {{{icdate|}}} |
 +
<tr><th>IC Date</th><td>{{{icdate}}}</td></tr>
 +
}}
 +
{{#if: {{{ictime|}}} |
 +
<tr><th>IC Time</th><td>{{{ictime}}}</td></tr>
 +
}}
 +
{{#if: {{{storyteller|}}} |
 +
<tr><th>Storyteller</th><td>{{{storyteller}}}</td></tr>
 +
}}
 +
{{#if: {{{players|}}} |
 +
<tr><th>Players</th><td>{{{players}}}</td></tr>
 +
}}
 +
{{#if: {{{location|}}} |
 +
<tr><th>Location</th><td>{{{location}}}</td></tr>
 +
}}
 +
{{#if: {{{plot|}}} |
 +
<tr><th>Plot</th><td>{{{plot}}}</td></tr>
 +
}}
 +
{{#if: {{{spheres|}}} |
 +
<tr><th>Spheres</th><td>{{{spheres}}}</td></tr>
 +
}}
 +
{{#if: {{{themesong|}}} |
 +
<tr><th>Theme Song</th><td>{{{themesong}}}</td></tr>
 +
}}
 +
</table>
 
{{{log}}}
 
{{{log}}}
|}
+
[[Category:Logs]]</includeonly>
[[Category:RP Logs|{{{gamedate|0000.00.00}}}]]{{#ifeq: {{{categories| }}} | | | [[Category:{{#replace:{{{categories}}}|,| &nbsp;Logs{{!}}{{BASEPAGENAME}}{{RB}}{{LB}}Category: }} Logs{{!}}{{BASEPAGENAME}} ]] }}</includeonly><noinclude>
+
<noinclude>===Usage===
{| class="log"
+
Log pages should be named in the pattern of: <code>YYYY.MM.DD: Title Of Log</code>
! class="center" colspan="2" | The Reach Log Template
+
<pre>{{Log
|-
+
|name        = Name of log. Usually just the title of the page.
| class="center" colspan="2" | <h4> ''Here goes a subtitle, if you have one'' </h4>
+
|summary      = A one line summary of the log.
|-
+
|icdate      = IC date.
| class="cast" | '''Dramatis Personae'''
+
|ictime      = IC time.
 
+
|storyteller  = Storyteller/GM
The PCs and NPCs involved in the log will be listed here.
+
|players      = Players in the scene.
| <p class="right">{{Date | 2010.07.26 }}</p><br />
+
|location    = location or locations.
 
+
|plot        = The plot (PRP, TP) the log is part of, if ongoing.
''This is the log template. You're probably already familiar with how it works, but for those of you who aren't, the syntax can be found below. This space is for a scene summary, setting, introduction or simply a pithy quote.''
+
|spheres      = The spheres involved in the log.
|-
+
|themesong    = A theme song for the log
| class="location" | '''Location'''
+
|log         = Paste the actual log here.  Best with 3 lines between poses, 1 between paragraphs of the same pose.
 
+
}}</pre>
|-
 
| colspan="2" | <hr>
 
 
 
<pre>
 
{{ Log
 
| cast =  
 
| summary =  
 
| gamedate = YYYY.MM.DD
 
| gamedatename =  
 
| subtitle =  
 
| location =  
 
| categories = Vampire, Werewolf, Mortal+, Crime
 
| log =  
 
}}
 
</pre>
 
  
Most of this is self-explanatory. The three fiddly fields are location, gamedate and categories.
+
Don't forget to add Categories!  The Logs category is automatic, but adding each player's wiki page name as a category (<code><nowiki>[[Category:Name]]</nowiki></code>) will usually allow them to show up on that person's page.
# '''Location''' should be the location where it took place, listed as a link, like so: <nowiki>[[Prospect Roasters]]</nowiki>
 
# '''Gamedate''' will take input in the form of YYYY.MM.DD and nothing else. You must place it somewhen for [[:Template:Log]] to know what you're talking about. If you want alternate date text, like "Christmas Eve" instead of "24 December, 2011", you can put something in for gamedatename and it will replace the normal date text on the log page. If the day, month or year of your scene is uncertain, fill in that section with "0000" or "00" and the template will know what you mean.
 
# '''Categories''' requires a comma-delimited list of the categories (not <nowiki>[[Category:]]</nowiki> tags, but the names of the spheres to which the log is relevant; the example above should explain plenty and a list of extant log categories can be found at [[:Category: Logs]]) into which you want to place the log. The advantage of using the categories parameter instead of manually adding categories is that the categories parameter will automatically make it so that the categories sort the page by its name rather than its namespace (which will always turn up under 'L').
 
|}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 08:23, 21 February 2017

Usage

Log pages should be named in the pattern of: YYYY.MM.DD: Title Of Log

{{Log
|name         = Name of log. Usually just the title of the page.
|summary      = A one line summary of the log.
|icdate       = IC date.
|ictime       = IC time.
|storyteller  = Storyteller/GM
|players      = Players in the scene.
|location     = location or locations.
|plot         = The plot (PRP, TP) the log is part of, if ongoing.
|spheres      = The spheres involved in the log.
|themesong    = A theme song for the log
|log          = Paste the actual log here.  Best with 3 lines between poses, 1 between paragraphs of the same pose.
}}

Don't forget to add Categories! The Logs category is automatic, but adding each player's wiki page name as a category ([[Category:Name]]) will usually allow them to show up on that person's page.