Difference between revisions of "Template:RunHistory"
Jump to navigation
Jump to search
Tag: visualeditor-wikitext |
|||
(21 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
|?hasGM=GM | |?hasGM=GM | ||
|?hasMetaplot=Metaplot | |?hasMetaplot=Metaplot | ||
|?hasDate=Date | |?ThreatLevel=Threat | ||
|?hasDate=Date of Run | |||
|limit={{{Limit|300}}} | |limit={{{Limit|300}}} | ||
|sort=hasDate | |sort=hasDate | ||
|order=descending | |order=descending | ||
}} | |{{#if:{{{Team|}}}|?hasRunner=Team}} | ||
}} {{#ifexpr: {{#ask: [[Category:Runs]][[hasRunner::{{PAGENAME}}]][[hasDate::>{{#time: Y-m-d |now +61 years -6 months}}]]|format=count}} > 0 | [[Category:Active Runners]] | [[Category:Inactive Runners]] }}<noinclude> | |||
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%; -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444" | |||
|- | |||
| | |||
==Useage== | |||
<nowiki>{{RunHistory}}</nowiki> | |||
This template is used to automatically generate a list of runs for character wiki pages. It will also automatically add the character to [[:Category:Active Runners]] if that character has had a run in the previous 6 months. This is important, as other templates such as [[Template:ContactPlayerConnections]] checks the Active Runner category for their functionality. | This template is used to automatically generate a list of runs for character wiki pages. It will also automatically add the character to [[:Category:Active Runners]] if that character has had a run in the previous 6 months. This is important, as other templates such as [[Template:ContactPlayerConnections]] checks the Active Runner category for their functionality. | ||
Line 21: | Line 28: | ||
<nowiki>{{RunHistory| | <nowiki>{{RunHistory| | ||
| | |Limit=5 | ||
}}</nowiki> | }}</nowiki> | ||
Line 27: | Line 34: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Character Page Templates]] | |||
|} | |||
</noinclude> | </noinclude> |
Latest revision as of 22:54, 30 October 2024
No runs yet. This list will auto-populate when this character is tagged in a run AAR.
Useage{{RunHistory}} This template is used to automatically generate a list of runs for character wiki pages. It will also automatically add the character to Category:Active Runners if that character has had a run in the previous 6 months. This is important, as other templates such as Template:ContactPlayerConnections checks the Active Runner category for their functionality.
{{RunHistory| |Limit=5 }} This will force the template to give only the 5 most recent runs. This can be useful if you wish only to show the most recent runs. |