Difference between revisions of "Template:RP Logs"

From From The Ashes Wiki
Jump to: navigation, search
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<noinclude>== Usage ==
 
<noinclude>== Usage ==
 
<pre>
 
<pre>
{{ RP_Logs<|date> }}
+
{{ RP_Logs<|date><|cols=#> }}
 
</pre>
 
</pre>
  
Line 22: Line 22:
  
  
 +
<pre>
 +
{{ RP_Logs|cols=3 }}
 +
</pre>
 +
 +
Bulleted, no date, three columns.
 +
 +
 +
<pre>
 +
{{ RP_Logs|date|cols=2 }}
 +
</pre>
 +
No bullet, date shown, two columns.
 
=== Advanced Usage ===
 
=== Advanced Usage ===
 
Some people prefer to put descriptions of the logs, or otherwise adjust the way they're displayed.  If you wish to do this, create a page called YourName/AdvLog (i.e., if you're Bob, it would be Bob/AdvLog) and put your version there.  <!--For an example, feel free to look at [[Petra/AdvLog]] (currently done by hand) or [[Jai/AdvLog]] (currently done using the [[Template:LogList|LogList]] template) -- but please don't change them, of course!//--> Examples will be forthcoming.  Any log to which you link on your AdvLog page will be removed from the automatic list, so that you'll get a list beneath your edited version of only any logs you're in, but haven't yet added to your edited list.
 
Some people prefer to put descriptions of the logs, or otherwise adjust the way they're displayed.  If you wish to do this, create a page called YourName/AdvLog (i.e., if you're Bob, it would be Bob/AdvLog) and put your version there.  <!--For an example, feel free to look at [[Petra/AdvLog]] (currently done by hand) or [[Jai/AdvLog]] (currently done using the [[Template:LogList|LogList]] template) -- but please don't change them, of course!//--> Examples will be forthcoming.  Any log to which you link on your AdvLog page will be removed from the automatic list, so that you'll get a list beneath your edited version of only any logs you're in, but haven't yet added to your edited list.
Line 37: Line 48:
 
.loglist.cols .listedlogs {
 
.loglist.cols .listedlogs {
 
     white-space: nowrap;
 
     white-space: nowrap;
 +
}
 +
.loglist.cols .log {
 +
    width: 275px;
 +
    overflow: hidden;
 +
    text-overflow: ellipsis;
 
}
 
}
 
.loglist.cols .pager {
 
.loglist.cols .pager {

Latest revision as of 17:42, 15 April 2018

Usage

{{ RP_Logs<|date><|cols=#> }}

This template will automagically generate a list of all logs which link to the name of the page, in order from oldest to newest.

This is an adjustment of the similar template from Masquerade, which was itself based on the idea and a version of code from Haunted Memories.


Examples

{{ RP_Logs }}

The basic, default list. Bulleted, no date shown.


{{ RP_Logs|date }}

No bullet, date shown.


{{ RP_Logs|cols=3 }}

Bulleted, no date, three columns.


{{ RP_Logs|date|cols=2 }}

No bullet, date shown, two columns.

Advanced Usage

Some people prefer to put descriptions of the logs, or otherwise adjust the way they're displayed. If you wish to do this, create a page called YourName/AdvLog (i.e., if you're Bob, it would be Bob/AdvLog) and put your version there. Examples will be forthcoming. Any log to which you link on your AdvLog page will be removed from the automatic list, so that you'll get a list beneath your edited version of only any logs you're in, but haven't yet added to your edited list.