Template:EventBox.sliderdpltablerow/doc
From Dragon Mania Legends (DML) Wiki
< Template:EventBox.sliderdpltablerowDocumentation subpage |
---|
View this documentation's related template: Template:EventBox.sliderdpltablerow |
Example(s)
- See
{{Event}}
or{{Slider}}
for examples.
See Also
{{Slider}}
, the template that calls this one to format each row of output after feeding values to it. Together with this one, it creates a set of results for use on the Main Page.{{Event}}
, the template that this one passes{{Slider}}
results to, it creates and formats a single results, then reapplied to each row by the above template.{{EventBox}}
, the template from which theparameter is accepted and passed through the template chain above.
Debugging
{{#dplvar:set|varName|{{#explode:Clan Siege (22/08/08)|(}}}}{{#dplvar:varName}}
{{#dplvar:set|varStart|{{#time:d F Y|{{#replace:{{#explode:{{#explode:Clan Siege (22/08/08)|(|-1}}|)}}|/|-}}}}}}{{#dplvar:varStart}}
{{#dplvar:set|varType|{{#sub:Clan Siege (22/08/08)|0|-11}}}}{{#if:{{{duration|}}}|{{#dplvar:set|varDuration|{{{duration|}}}}}|{{#ifeq:{{EventDurationFromName|{{#dplvar:varType}}}}| ''default''|{{#dplvar:set|varDuration|4 Days}}|{{#dplvar:set|varDuration|{{EventDurationFromName|{{#dplvar:varType}}}}}}}}}}<!-- End = Start+Dur -->{{#iferror:{{#time:j F Y|{{#dplvar:varStart}} 12:00:00 + {{#dplvar:varDuration}}}} | <!-- Error case --> }}
{{#if:{{{type|}}}|{{{type}}}|{{#sub:Clan Siege (22/08/08)|0|-11}}}}
{{#dplvar:varDuration}}
|
Operates as a "surrogate" or data formatting template used by the {Slider} template; it formats a single row of output and is then reapplied to every entry.
Parameter | Description | Type | Status | |
---|---|---|---|---|
%TITLE% | %TITLE% | DPL3 variable for page title (without namespace) | String | required |
%PAGE% | %PAGE% | DPL3 variable for page name (with namespace) | Page name | required |
duration | duration | "duration" parameter from the {Event} template, which is used by the {Slider} and feeds values to it. | String | required |
ended | ended | "ended" parameter from the {Event} template, which is used by the {Slider} and feeds values to it. | Date | required |
type | type | "type" parameter from the {Event} template, which is used by the {Slider} and feeds values to it. | String | required |
vip | vip | "vip" parameter from the {Event} template, which is used by the {Slider} and feeds values to it. | Boolean | optional |
image | image | When "|image=value" is specified in the {EventBox} template, it overrides the image in this template to whatever value is specified. | String | optional |