Difference between revisions of "Template:ThisMonth"
Jump to navigation
Jump to search
(Created page with "{{#ask: Category:Runs[[hasDate::>{{{Year}}}-{{{Month}}}-1]][[hasDate::<{{{Year}}}-{{{Month}}}-31]] |mainlabel=- |format=datatables |?=Name |?hasMetaplot=Metaplot |?hasDat...") Tag: visualeditor-wikitext |
Tag: visualeditor-wikitext |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#ask: [[Category:Runs]][[hasDate::>{{{Year}}}-{{{Month}}}-1]][[hasDate::<{{{Year}}}-{{{Month}}}- | <includeonly> | ||
===Runs=== | |||
{{#ask: [[Category:Runs]][[hasDate::>{{{Year}}}-{{{Month}}}-1]][[hasDate::<{{{Year}}}-{{{Month}}}-{{#time: t|{{{Year}}}-{{{Month}}}-1}}]] | |||
|mainlabel=- | |mainlabel=- | ||
|format=datatables | |format=datatables | ||
Line 9: | Line 11: | ||
|order=ascending | |order=ascending | ||
}} | }} | ||
{{#ask: [[Category:News]][[hasDate::>{{{Year}}}-{{{Month}}}-1]][[hasDate::<{{{Year}}}-{{{Month}}}- | {{#ifeq: 0 | {{#ask: [[Category:News]][[hasDate::>{{{Year}}}-{{{Month}}}-1]][[hasDate::<{{{Year}}}-{{{Month}}}-{{#time: t|{{{Year}}}-{{{Month}}}-1}}]]|format=count}} | | ===News=== }} | ||
{{#ask: [[Category:News]][[hasDate::>{{{Year}}}-{{{Month}}}-1]][[hasDate::<{{{Year}}}-{{{Month}}}-{{#time: t|{{{Year}}}-{{{Month}}}-1}}]] | |||
|mainlabel=- | |mainlabel=- | ||
|format=datatables | |format=datatables | ||
Line 18: | Line 21: | ||
|sort=hasDate | |sort=hasDate | ||
|order=ascending | |order=ascending | ||
}} | }}</includeonly> | ||
<noinclude> | <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" | {| 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" | ||
Line 30: | Line 33: | ||
|}}</nowiki> | |}}</nowiki> | ||
This template is intended for use on [[The Story So Far]] to just make it mildly easier to pull SemanticWiki queries for each month. | This template is intended for use on [[The Story So Far]] to just make it mildly easier to pull SemanticWiki queries for each month. It will automatically generate a list of [[:Category:Runs|runs]] that took place in that month and the header to place them under. If there are any [[:Category:News|news]] stories for the month, it will also generate a News header and a list of news stories as well. | ||
<nowiki>{{ThisMonth| | <nowiki>{{ThisMonth| |
Latest revision as of 05:04, 29 June 2020