Difference between revisions of "Template:CastleStoriesMP"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Seraii
>Kittymmeow
(remove use of extension:css. css moved to MediaWiki:Common.css)
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<noinclude>{{doc}}[[Category:Templates]]</noinclude><!--
 
<noinclude>{{doc}}[[Category:Templates]]</noinclude><!--
  
--><includeonly>{{#css:
+
--><includeonly><div class="CastleStoriesMP" style="text-align:center;margin:5px;">[[File:{{{Id}}}.png|500px|link={{{Title}}}]]<br />[[{{{Title}}}]]</div>
@media screen and (min-width: 550px) {
 
.CastleStoriesMP img {
 
width: 500px;
 
height: auto;
 
}
 
}
 
@media screen and (max-width: 549px) {
 
.CastleStoriesMP img {
 
width: 100%;
 
height: auto;
 
}
 
}
 
}}<div class="CastleStoriesMP" style="text-align:center">[[File:{{{Id}}}.png|500px|link={{{Title}}}]]<br />[[{{{Title}}}]]</div><br />
 

Latest revision as of 01:50, 14 September 2019

50px Documentation

Usage

This template is used to call Castle Stories on Event pages or the Main Page.

{{#invoke:CargoQuery|main
|q?tables=CastleStories
|q?fields=_pageName=Title,Event=Name,Id=Id
|q?where=Event="Trick or Treasure!/October 2018"
|q?group by=_pageName
|q?order by= ReleaseDate DESC, Id ASC
|template=CastleStoriesMP
|default=''There are no castle stories released alongside this event.''
|delimiter=
}}

Example

Lua error: Error: Table CastleStories not found..