Difference between revisions of "Template:RP Logs"

From Fate's Harvest
Jump to: navigation, search
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<css>
 
<css>
#content table.wikitable{
+
.rp-log ul {
border: 0;
+
    list-style: none; /* Remove list bullets */
margin: auto;
+
    padding: 0;
background: transparent;
+
    margin: 0;
 
}
 
}
#content table.wikitable th, #content table.wikitable td {
+
 
border: 0;
+
.rp-log li {  
background: transparent;
+
    padding-left: 16px;  
 
}
 
}
table.wikitable ul {
+
 
margin-top: 0;
+
.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 =
 
</css><includeonly>{{#switch: {{{order}}} | descending =
Line 17: Line 20:
 
| linksto={{BASEPAGENAME}}
 
| linksto={{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
 
 
| order=descending
 
| order=descending
| table=class="wikitable"|,-,
+
| table=class="table infobox rp-log",-,
| tablesortcol=1
+
 
| tablerow=\n* (%%),%%
 
| tablerow=\n* (%%),%%
 
| columns={{{columns|2}}}
 
| columns={{{columns|2}}}
| rowcolformat=width=100%
 
 
| noresultsheader=''No logs have been posted yet.''
 
| noresultsheader=''No logs have been posted yet.''
 
}}
 
}}
Line 33: Line 33:
 
| linksto={{BASEPAGENAME}}
 
| linksto={{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="wikitable"|,-,
+
| table=class="table infobox rp-log",-,
| tablesortcol=1
+
 
| tablerow=\n* (%%),%%
 
| tablerow=\n* (%%),%%
 
| columns={{{columns|2}}}
 
| columns={{{columns|2}}}
| rowcolformat=width=100%
 
 
| noresultsheader=''No logs have been posted yet.''
 
| noresultsheader=''No logs have been posted yet.''
 
}}
 
}}
}}</includeonly><noinclude>
+
}}</includeonly>
{|
+
<noinclude>
! How to include a dynamic log list in your page:
+
==How to include a dynamic log list in your page:==
|-
+
<pre>
| <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.