Difference between revisions of "Template:LogList2"
From Masq
m |
m |
||
| Line 1: | Line 1: | ||
{{#dplvar:set|the_date|{{#ifeq:{{uc:{{{date_style}}}}}|RL|RL|IC}}}} | {{#dplvar:set|the_date|{{#ifeq:{{uc:{{{date_style}}}}}|RL|RL|IC}}}} | ||
| − | {{#ifeq:{{{explain_date}}}|yes|<center>''-= Dates are {{# | + | {{#ifeq:{{{explain_date}}}|yes|<center>''-= Dates are {{#dplvar:the_date}} =-''</center>|}}{{#fornumargs: startkey |
|startvalue | |startvalue | ||
| − | |{{# | + | |{{#dplvar:set|key|{{#explode:{{#var:startvalue}}|~|0}}}}{{#dplvar:set|value|{{#explode:{{#dplvar:startvalue}}|~|1}}}} |
| − | {{#switch: {{# | + | {{#switch: {{#dplvar: key }} |
| the_log= | | the_log= | ||
| − | {{# | + | {{#dplvar:set|plain_name | {{#sub:{{#dplvar: value}}|2|-2}} }} |
| − | {{# | + | {{#dplvar:set|the_title|None.}} |
| − | {{# | + | {{#dplvar:set|the_desc|None.}} |
| my_title= | | my_title= | ||
| − | {{# | + | {{#dplvar:set|the_title|{{#dplvar:value}}}} |
| description= | | description= | ||
| − | {{# | + | {{#dplvar:set|the_desc|{{#dplvar:value}}}} |
{{ #dpl: | {{ #dpl: | ||
| namespace= | | namespace= | ||
| − | | titlematch={{# | + | | titlematch={{#dplvar:plain_name}} |
| replaceintitle=/^.*?\s-\s/, | | replaceintitle=/^.*?\s-\s/, | ||
| category=Log | | category=Log | ||
| include={{#ifeq:{{#dplvar:the_date}}|RL|{log}:rl_date|{log}:ic_date}} | | include={{#ifeq:{{#dplvar:the_date}}|RL|{log}:rl_date|{log}:ic_date}} | ||
| − | | format= ,,: [[%PAGE%|{{#ifeq:{{# | + | | format= ,,: [[%PAGE%|{{#ifeq:{{#dplvar:the_title}}|None.|%TITLE%|{{#dplvar:the_title}}}}]]<br />,<div style="padding-left: 2.75em; margin-top:-.5em; font-style:italic;">\n{{#dplvar:the_desc}}\n</div> |
| secseparators= | | secseparators= | ||
| noresultsheader=Nothing to see here. | | noresultsheader=Nothing to see here. | ||
}} | }} | ||
}} | }} | ||
| − | + | }} | |
Revision as of 10:51, 12 February 2013