Please remember to make use of the DML Wiki Manual of Style and Code of Conduct during your stay.

 Actions

Template

Template:EventBox.sliderdpltablerow

From Dragon Mania Legends (DML) Wiki

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation. (About template documentation)

Example(s)

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 the parameter is accepted and passed through the template chain above.

Debugging

Tests
  • Example: Clan Siege (22/08/08)
{{#dplvar:set|varName|{{#explode:Clan Siege (22/08/08)|(}}}}{{#dplvar:varName}}
  • Name:Clan Siege
{{#dplvar:set|varStart|{{#time:d F Y|{{#replace:{{#explode:{{#explode:Clan Siege (22/08/08)|(|-1}}|)}}|/|-}}}}}}{{#dplvar:varStart}}
  • Start: 08 August 2022
{{#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 --> }}
  • End: 12 August 2022
{{#if:{{{type|}}}|{{{type}}}|{{#sub:Clan Siege (22/08/08)|0|-11}}}}
  • Type: Clan Siege
{{#dplvar:varDuration}}
  • Value of varDuration: 4 Days

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.

Template parameters

ParameterDescriptionTypeStatus
%TITLE%%TITLE%

DPL3 variable for page title (without namespace)

Stringrequired
%PAGE%%PAGE%

DPL3 variable for page name (with namespace)

Page namerequired
durationduration

"duration" parameter from the {Event} template, which is used by the {Slider} and feeds values to it.

Stringrequired
endedended

"ended" parameter from the {Event} template, which is used by the {Slider} and feeds values to it.

Daterequired
typetype

"type" parameter from the {Event} template, which is used by the {Slider} and feeds values to it.

Stringrequired
vipvip

"vip" parameter from the {Event} template, which is used by the {Slider} and feeds values to it.

Booleanoptional
imageimage

When "|image=value" is specified in the {EventBox} template, it overrides the image in this template to whatever value is specified.

Stringoptional


This Wiki is created by players for other players and is not maintained by, or affiliated with, the game maker (Gameloft).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.