Difference between revisions of "Template:Comic"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Eave
(use pagename as file prefix, so that dragalia life and adventurer's guide can be differentiated)
>Eave
(just display the ID as padded, and store the regular value)
Line 9: Line 9:
 
|DirectLink=URL
 
|DirectLink=URL
 
}}</noinclude><includeonly><!--
 
}}</noinclude><includeonly><!--
-->{{#vardefine:paddedId|{{padleft:{{{Id|}}}|3}}}}<!--
 
  
 
// Cargo Store
 
// Cargo Store
 
-->{{#cargo_store:_table=Comics
 
-->{{#cargo_store:_table=Comics
 
|Title={{{Title|}}}
 
|Title={{{Title|}}}
|Id={{#var:paddedId}}
+
|Id={{{Id|}}}
 
|ReleaseDate={{#time:F d, Y|{{{ReleaseDate|}}}}}
 
|ReleaseDate={{#time:F d, Y|{{{ReleaseDate|}}}}}
 
|FeaturedCharacter={{{FeaturedCharacter|}}}
 
|FeaturedCharacter={{{FeaturedCharacter|}}}
Line 21: Line 20:
  
 
-->|-
 
-->|-
| #{{#var:paddedId}}: [{{{DirectLink}}} {{{Title|}}}] || {{{FeaturedCharacter|}}} ||{{#time:F d, Y|{{{ReleaseDate|}}}}} || [[File:{{PAGENAME}} {{{Id|}}}.png|300px|link={{{DirectLink}}}]]<!--
+
| #{{padleft:{{{Id|}}}|3}}: [{{{DirectLink}}} {{{Title|}}}] || {{{FeaturedCharacter|}}} ||{{#time:F d, Y|{{{ReleaseDate|}}}}} || [[File:{{PAGENAME}} {{{Id|}}}.png|300px|link={{{DirectLink}}}]]<!--
 
-->[[Category:Comics]]
 
-->[[Category:Comics]]
 
</includeonly>
 
</includeonly>

Revision as of 23:50, 13 May 2020

50px Documentation

Parameters

  • Title= Title as in the Official Website
    • Example:
      The Dragon Choosing
  • Id= Issue of the comic on the Official Website
    • Example:
      01
  • ReleaseDate= Release date, note that the Official Website doesn't have that, but it's given in the news.
    • Example:
      September 27th, 2018
  • FeaturedCharacter= List of characters featured on the comic, in brackets, separated by commas
    • Example:
      [[Euden]], [[Zethia]], [[Notte]], [[Agni]], [[Poliʻahu]], [[Cinder Drake]]
  • DirectLink= The direct link to the comic page on th Official Website
    • Example:
      https://comic.dragalialost.com/dragalialife/en/#detail/9

Example

{{Comic |Title=The Dragon Choosing |Id=01 |ReleaseDate=September 27th, 2018 |FeaturedCharacter=[[Euden]], [[Zethia]], [[Notte]], [[Agni]], [[Poliʻahu]], [[Cinder Drake]] |DirectLink=https://comic.dragalialost.com/dragalialife/en/#detail/9}}

Blank Template

{{Comic |Title=  |Id= |ReleaseDate= |FeaturedCharacter= |DirectLink=}}

This template defines the table "Comics". This table has not been created yet.