Difference between revisions of "Template:RP Logs"

From Fate's Harvest
Jump to: navigation, search
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{order}}} | descending =
+
<css>
<dpl>
+
.rp-log ul {
namespace=Log
+
    list-style: none; /* Remove list bullets */
category=RP Logs
+
    padding: 0;
linksto={{BASEPAGENAME}}
+
    margin: 0;
includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
+
}
include={Log}:gamedate:[[%PAGE%|%TITLE%]]
+
 
format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]],,
+
.rp-log li {
ordermethod=sortkey
+
    padding-left: 16px;
order=descending
+
}
table=,-,
+
 
tablesortcol=1
+
.rp-log li:before {
tablerow=\n* (%%),%%
+
    content: "•"; /* Insert content that looks like bullets */
columns={{{columns|2}}}
+
    padding-right: 8px;
rowcolformat=width=100%
+
    color: black; /* Or a color you prefer */
noresultsheader=''No logs have been posted yet.''
+
}
</dpl>
+
</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.''
 +
}}
 
| #default =
 
| #default =
<dpl>
+
{{ #dpl:
namespace=Log
+
| category=RP Logs
category=RP Logs
+
| linksto={{BASEPAGENAME}}
linksto={{{name|{{BASEPAGENAME}} }}}
+
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
+
| replaceintitle=/Log:/,
include={Log}:gamedate:[[%PAGE%|%TITLE%]]
+
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]],,
+
| ordermethod=sortkey
ordermethod=sortkey
+
| order=ascending
order=ascending
+
| table=class="table infobox rp-log",-,
table=,-,
+
| tablerow=\n* (%%),%%
tablesortcol=1
+
| columns={{{columns|2}}}
tablerow=\n* (%%),%%
+
| noresultsheader=''No logs have been posted yet.''
columns={{{columns|2}}}
+
}}
rowcolformat=width=100%
+
}}</includeonly>
noresultsheader=''No logs have been posted yet.''
+
<noinclude>
</dpl>
+
==How to include a dynamic log list in your page:==
}}</includeonly><noinclude>
+
<pre>
{|
+
! How to include a dynamic log list in your page:
+
|-
+
| <pre>
+
 
{{ RP Logs | columns = 2 | order = ascending }}
 
{{ RP Logs | columns = 2 | order = ascending }}
 
</pre>
 
</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.
 
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>
 
</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.