Difference between revisions of "Template:RP Logs"

From Fate's Harvest
Jump to: navigation, search
Line 1: Line 1:
 
<css>
 
<css>
 
+
.rp-log ul {
ul {
+
 
     list-style: none; /* Remove list bullets */
 
     list-style: none; /* Remove list bullets */
 
     padding: 0;
 
     padding: 0;
Line 7: Line 6:
 
}
 
}
  
li {  
+
.rp-log li {  
 
     padding-left: 16px;  
 
     padding-left: 16px;  
 
}
 
}
  
li:before {
+
.rp-log li:before {
 
     content: "•"; /* Insert content that looks like bullets */
 
     content: "•"; /* Insert content that looks like bullets */
 
     padding-right: 8px;
 
     padding-right: 8px;
 
     color: black; /* Or a color you prefer */
 
     color: black; /* Or a color you prefer */
 
}
 
}
</css>
+
</css><includeonly>{{#switch: {{{order}}} | descending =
 
+
<includeonly>{{#switch: {{{order}}} | descending =
+
 
{{ #dpl:
 
{{ #dpl:
 
| category=RP Logs
 
| category=RP Logs
Line 25: Line 22:
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 
| order=descending
 
| order=descending
| table=class="table infobox",-,
+
| table=class="table infobox rp-log",-,
 
| tablerow=\n* (%%),%%
 
| tablerow=\n* (%%),%%
 
| columns={{{columns|2}}}
 
| columns={{{columns|2}}}
Line 38: Line 35:
 
| ordermethod=sortkey
 
| ordermethod=sortkey
 
| order=ascending
 
| order=ascending
| table=class="table infobox",-,
+
| table=class="table infobox rp-log",-,
 
| tablerow=\n* (%%),%%
 
| tablerow=\n* (%%),%%
 
| columns={{{columns|2}}}
 
| columns={{{columns|2}}}

Revision as of 20:05, 12 June 2016


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.