Difference between revisions of "Template:Log"

From City of Hope MUSH
Jump to navigation Jump to search
imported>Felix
imported>Felix
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#css:
 
<includeonly>{{#css:
     p {
+
     .wikitable ~ p {
 
         margin: 0;
 
         margin: 0;
 
         text-indent: 3em;
 
         text-indent: 3em;
 
     }
 
     }
     i, em, blockquote b {
+
     .wikitable ~ i, .wikitable ~ em, .wikitable ~ blockquote b {
 
         margin-left: -3em;
 
         margin-left: -3em;
 
     }
 
     }
     .wikitable {
+
    .ooc {
         margin: 0 auto 0.25em !important;
+
        font-style: italic;
         width: 50% !important;
+
        margin-left: 3.75em;
 +
        text-indent: -3.75em;
 +
    }
 +
     .wikitable.logbox {
 +
        border: 1px dotted #999;
 +
        font-size: 100%;
 +
        text-align: left;
 +
         margin: .5em auto 1.5em;
 +
        width: 50%;
 +
    }
 +
    .wikitable.logbox tr:nth-of-type(2n+1) {
 +
        background-color: #ffffff;
 +
    }
 +
    .wikitable.logbox th, .wikitable.logbox td {
 +
        background-color: transparent;
 +
        border: none;
 +
        padding: 0.25em 0.5em;
 +
        text-align: left;
 +
         vertical-align: top;
 +
    }
 +
    .wikitable.logbox th {
 +
        white-space: nowrap;
 +
    }
 +
    .wikitable.logbox th::after {
 +
        content: ":";
 +
    }
 +
    .wikitable.logbox .title, .wikitable.logbox .summary {
 +
        background-color: #f2f2f2;
 +
        border-bottom: 1px dotted #aaa;
 +
        text-align: center;
 +
        height: 1.5em
 +
    }
 +
    .wikitable.logbox .title::after, .wikitable.logbox .summary::after {
 +
        content: "";
 +
    }
 +
    .wikitable.logbox .title {
 +
        font-size: 150%;
 +
        vertical-align: middle;
 
     }
 
     }
 
}}
 
}}
{| class="wikitable" style="font-size: 100%; text-align: left; width: 30em;"
+
<table class="wikitable logbox">
|-
+
<tr><th colspan="2" class="title">{{{name}}}</th></tr>
! colspan="2" style="font-size: 120%; text-align: center;" class="fn"| {{{name}}}
+
<tr><th colspan="2" class="summary">{{{summary}}}</th></tr>
|-
 
! colspan="2" style="text-align: center;" class="fn"| {{{summary}}}
 
|-
 
 
{{#if: {{{icdate|}}} |
 
{{#if: {{{icdate|}}} |
! style="vertical-align: top;" {{!}} IC Date
+
<tr><th>IC Date</th><td>{{{icdate}}}</td></tr>
{{!}} {{{icdate}}}
 
{{!}}-
 
 
}}
 
}}
 
{{#if: {{{ictime|}}} |
 
{{#if: {{{ictime|}}} |
! style="vertical-align: top;" {{!}} IC Time
+
<tr><th>IC Time</th><td>{{{ictime}}}</td></tr>
{{!}} {{{ictime}}}
+
}}
{{!}}-
+
{{#if: {{{storyteller|}}} |
 +
<tr><th>Storyteller</th><td>{{{storyteller}}}</td></tr>
 
}}
 
}}
 
{{#if: {{{players|}}} |
 
{{#if: {{{players|}}} |
! style="vertical-align: top;" {{!}} Players
+
<tr><th>Players</th><td>{{{players}}}</td></tr>
{{!}} {{{players}}}
 
{{!}}-
 
 
}}
 
}}
 
{{#if: {{{location|}}} |
 
{{#if: {{{location|}}} |
! style="vertical-align: top;" {{!}} Location
+
<tr><th>Location</th><td>{{{location}}}</td></tr>
{{!}} {{{location}}}
 
{{!}}-
 
 
}}
 
}}
{{#if: {{{prptp|}}} |
+
{{#if: {{{plot|}}} |
! style="vertical-align: top;" {{!}} PRP/TP
+
<tr><th>Plot</th><td>{{{plot}}}</td></tr>
{{!}} {{{prptp}}}
 
{{!}}-
 
 
}}
 
}}
 
{{#if: {{{spheres|}}} |
 
{{#if: {{{spheres|}}} |
! style="vertical-align: top;" {{!}} Spheres
+
<tr><th>Spheres</th><td>{{{spheres}}}</td></tr>
{{!}} {{{spheres}}}
 
{{!}}-
 
 
}}
 
}}
 
{{#if: {{{themesong|}}} |
 
{{#if: {{{themesong|}}} |
! style="vertical-align: top;" {{!}} Theme Song
+
<tr><th>Theme Song</th><td>{{{themesong}}}</td></tr>
{{!}} {{{themesong}}}
 
{{!}}-
 
 
}}
 
}}
|}
+
</table>
 
{{{log}}}
 
{{{log}}}
 
[[Category:Logs]]</includeonly>
 
[[Category:Logs]]</includeonly>
Line 59: Line 82:
 
Log pages should be named in the pattern of: <code>YYYY.MM.DD: Title Of Log</code>
 
Log pages should be named in the pattern of: <code>YYYY.MM.DD: Title Of Log</code>
 
<pre>{{Log
 
<pre>{{Log
|name     = Name of log. Usually just the title of the page.
+
|name         = Name of log. Usually just the title of the page.
|summary   = A one line summary of the log.
+
|summary     = A one line summary of the log.
|icdate   = ic date.
+
|icdate       = IC date.
|ictime   = ic time.
+
|ictime       = IC time.
|players   = Players in the scene.
+
|storyteller  = Storyteller/GM
|location = location or locations.
+
|players     = Players in the scene.
|prptp    = The prp or tp the log is a part of.
+
|location     = location or locations.
|spheres   = The spheres involved in the log.
+
|plot        = The plot (PRP, TP) the log is part of, if ongoing.
|themesong = A theme song for the log
+
|spheres     = The spheres involved in the log.
|log       = Paste the actual log here.  Best with 3 lines between poses, 1 between paragraphs of the same pose.
+
|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.
 
}}</pre>
 
}}</pre>
 +
 
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.
 
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.
 
</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.