Difference between revisions of "User:Eave/Sandbox"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Eave
>Eave
m
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
== Filter Icons ==
 +
{{CharacterListFilter}}
 +
<div style="text-align:center">
 +
{{#widget:TestWidget}}
 +
</div>
 +
 
== Boolean {{#if}} proof of concept using IsAffectedByTension ==
 
== Boolean {{#if}} proof of concept using IsAffectedByTension ==
  
Line 14: Line 20:
  
  
== Additional Art Table ==
+
== Icons ==
<pre><!-- Example only
+
{{#vardefine:1|Icon Element Wind.png}}
Caption can be an optional label if the art comes with one, or if there is a logical title for it. It would be used to caption the images where they are used on Misc pages.
+
{{#vardefine:2|Icon Element Flame.png}}
 +
{{#vardefine:size|19}}
 +
{{#vardefine:halfSize|{{#expr:{{#var:size}} / 2}}}}
 +
<span style="display:inline-flex">
 +
<span style="overflow:hidden;margin-right:-{{#var:halfSize}}px">[[File:{{#var:1}}|{{#var:size}}px|middle|link=]]</span>
 +
<span style="overflow:hidden;margin-right:-{{#var:halfSize}}px"><span style="position:relative;left:-{{#var:halfSize}}px">[[File:{{#var:2}}|{{#var:size}}px|middle|link=]]</span></span>
 +
</span> Volk
 +
 
 +
== Bad Mobile Thumbnails ==
 +
[[File:110009 01 r05 portrait.png|150px]]
 +
[[File:110274 01 r05 portrait.png|150px]]
 +
[[File:110260_01_r05_portrait.png|150px]]
 +
 
 +
 
 +
== Weird Cargo Query issue ==
 +
Happens when the WHERE clause mentions a List column name, but as the comparison value for a different field
  
{{#cargo_declare:_table=Art
+
Working:
|Caption=String
+
{{#cargo_query:tables=SummonShowcase
|ReleaseDate=Date
+
|where=Title="5★ A\dventurer Platinum Showcase (Dec 2019)"
|FeaturedCharacters=List (,) of Wikitext
+
|fields=Image,BannerTopImage,Title,Type,MaxSummons,StartDate,EndDate,Adventurer,Dragons,Wyrmprints,Video
|SourceLink=URL
+
|orderBy=StartDate DESC
 +
|default=''There are currently no ongoing summon showcases.''
 
}}
 
}}
  
{{#cargo_store:_table=Art
+
Not working:
|Caption={{{Caption|}}}
+
{{#cargo_query:tables=SummonShowcase
|ReleaseDate={{#time:F d, Y|{{{ReleaseDate|}}}}}
+
|where=Title="5★ Adventurer Platinum Showcase (Dec 2019)"
|FeaturedCharacters={{{FeaturedCharacter|}}}
+
|fields=Image,BannerTopImage,Title,Type,MaxSummons,StartDate,EndDate,Adventurer,Dragons,Wyrmprints,Video
|SourceLink={{{SourceLink|}}}
+
|orderBy=StartDate DESC
 +
|default=''There are currently no ongoing summon showcases.''
 
}}
 
}}
--></pre>
 

Latest revision as of 06:40, 24 July 2020

Filter Icons

Affliction Resistance

">
">
">
">
">
">
">