Difference between revisions of "Template:TimelineLog"

From NorCon MUSH
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>__NOCACHE__{| width="100%"
 
<includeonly>__NOCACHE__{| width="100%"
! <center>{{BASEPAGENAME}}</center>
 
{{#ifeq: {{{quote| }}} | | |
 
{{!}}-
 
{{!}} <center>''{{{quote}}}''</center> }}
 
|-
 
| {{#ifeq: {{{who| }}} | | | '''Who''': [[in log::{{#replace:{{#regex:{{{who}}}|/,$/| }}|,| {{RB}}, {{LB}}in log:: }} ]] }}
 
|-
 
| {{#ifeq: {{{involves| }}} | | {{#ifeq: {{{Involves| }}} | | | '''Involves''': [[Involves::{{#replace:{{#regex:{{{Involves}}}|/,$/| }}|,| {{RB}}, {{LB}}Involves::}} ]] }} | '''Involves''': [[Involves::{{#replace:{{#regex:{{{involves}}}|/,$/| }}|,| {{RB}}, {{LB}}Involves::}} ]] }}
 
 
|-
 
|-
 
| '''Type''': [[Concept:Update{{!}}Update]] {{#set:Type=Update}}
 
| '''Type''': [[Concept:Update{{!}}Update]] {{#set:Type=Update}}
 
|-
 
|-
| {{#ifeq: {{{what| }}} | | | '''What''': {{{6}}} {{#set:what={{{6}}}}} }}
+
| '''What''': {{#replace:{{#replace:{{{6}}}|\'}}|\\\|}} {{#set:what={{#replace:{{#replace:{{{6}}}|\'}}|\\\|}}}}
 
|-
 
|-
 
| '''When''': Day [[day::{{{5}}}]], Month [[month::{{{4}}}]], Turn [[turn::{{{3}}}]] ([[IP::Interval]] [[IP2::10]]) {{#set:month={{{4}}}}} {{#set:turn={{{3}}}}} {{#set:IP=Interval}} {{#set:IP2=10}}
 
| '''When''': Day [[day::{{{5}}}]], Month [[month::{{{4}}}]], Turn [[turn::{{{3}}}]] ([[IP::Interval]] [[IP2::10]]) {{#set:month={{{4}}}}} {{#set:turn={{{3}}}}} {{#set:IP=Interval}} {{#set:IP2=10}}
{{{8}}}
+
----
 +
{{#replace:{{#replace:{{#replace:{{{8}}}|%r|<br>}}|\'|'}}|\\\|}}
 +
----
 +
{{#ifeq:{{{7}}}|||'''Log:''' [[{{{7}}}{{!}}]]}}
 
|}
 
|}
{{#set:Sort={{#pad:{{{IP2}}}|2|0|left}}.{{#ifeq: {{{IP}}}|Interval|1|0}}.{{#pad:{{{turn}}}|3|0|left}}.{{#pad:{{{month}}}|2|0|left}}.{{#pad:{{{day}}}|2|0|left}}}}
+
{{#set:Sort=10.1.{{#pad:{{{3}}}|3|0|left}}.{{#pad:{{{4}}}|2|0|left}}.{{#pad:{{{5}}}|2|0|left}}}} {{#set:When=Day {{{5}}}, Month {{{4}}}, Turn {{{3}}} (Interval 10)}} {{DEFAULTCATEGORYSORT:^In the 10th Interval, Turn {{#pad:{{{3}}}|3|0|left}}^10.1.{{#pad:{{{3}}}|3|0|left}}.{{#pad:{{{4}}}|2|0|left}}.{{#pad:{{{5}}}|2|0|left}}}} {{#arraymap:{{{Categories|}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}} {{#set:logsize={{PAGESIZE: {{FULLPAGENAME}} |R}}}} [[Category:RP Logs]] {{#set:has date={{{gamedate|0000.00.00}}}}} {{#set:Involves={{{9}}}}}
{{#set:When=Day {{{day}}}, Month {{{month}}}, Turn {{{turn}}} ({{{IP}}} {{{IP2}}})}}
+
{{DEFAULTCATEGORYSORT:^In the {{#pad:{{{IP2}}}|2|0|left}}th {{#ifeq: {{{IP}}}|Interval|Interval|(Pass)}}, Turn {{#pad:{{{turn}}}|3|0|left}}^{{#pad:{{{IP2}}}|2|0|left}}.{{#ifeq: {{{IP}}}|Interval|1|0}}.{{#pad:{{{turn}}}|3|0|left}}.{{#pad:{{{month}}}|2|0|left}}.{{#pad:{{{day}}}|2|0|left}}}}
+
{{#arraymap:{{{Categories|}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}}
+
{{#set:logsize={{PAGESIZE: {{FULLPAGENAME}} |R}}}}
+
[[Category:RP Logs]]{{#ifeq: {{{categories| }}} | | | [[Category:{{#replace:{{{categories}}}|,| &nbsp;Logs{{RB}}{{LB}}Category: }} Logs]] }}
+
 
</includeonly>
 
</includeonly>

Latest revision as of 03:28, 29 February 2016