Difference between revisions of "Template:RP Logs"

From Fate's Harvest
Jump to: navigation, search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{ #dpl:
+
<css>
|userdateformat='''M d, Y''' -
+
.rp-log ul {
|category=RP Logs
+
    list-style: none; /* Remove list bullets */
|linksto=Gigi Garreau
+
    padding: 0;
|ordermethod=firstedit
+
    margin: 0;
|order=ascending
+
}
|addeditdate=true
+
 
|shownamespace=false
+
.rp-log li {
|noresultsheader=''None yet.''
+
    padding-left: 16px;
|mode=userformat
+
}
|columns=2
+
 
|format=<ul>,<li>%DATE% [[%PAGE%|%TITLE%]],</li>,</ul>
+
.rp-log li:before {
 +
    content: "•"; /* Insert content that looks like bullets */
 +
    padding-right: 8px;
 +
    color: black; /* Or a color you prefer */
 +
}
 +
</css><includeonly>{{#switch: {{{order}}} | descending =
 +
{{ #dpl:
 +
| category=RP Logs
 +
| linksto={{BASEPAGENAME}}
 +
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 +
| replaceintitle=/Log:/,
 +
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 +
| order=descending
 +
| table=class="table infobox rp-log",-,
 +
| tablerow=\n* (%%),%%
 +
| columns={{{columns|2}}}
 +
| noresultsheader=''No logs have been posted yet.''
 
}}
 
}}
</includeonly>
+
| #default =
 +
{{ #dpl:
 +
| category=RP Logs
 +
| linksto={{BASEPAGENAME}}
 +
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 +
| replaceintitle=/Log:/,
 +
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 +
| ordermethod=sortkey
 +
| order=ascending
 +
| table=class="table infobox rp-log",-,
 +
| tablerow=\n* (%%),%%
 +
| columns={{{columns|2}}}
 +
| noresultsheader=''No logs have been posted yet.''
 +
}}
 +
}}</includeonly>
 +
<noinclude>
 +
==How to include a dynamic log list in your page:==
 +
<pre>
 +
{{ RP Logs | columns = 2 | order = ascending }}
 +
</pre>
 +
 
 +
Please insert the above into your character page to populate RP logs. This template will automatically pull all logs that link to your character page. Input the number of columns you want to appear, and "ascending" or "descending" to control if the logs appear oldest first, or newest first.
 +
</noinclude>

Latest revision as of 21:03, 21 March 2017


How to include a dynamic log list in your page:

{{ RP Logs | columns = 2 | order = ascending }}

Please insert the above into your character page to populate RP logs. This template will automatically pull all logs that link to your character page. Input the number of columns you want to appear, and "ascending" or "descending" to control if the logs appear oldest first, or newest first.