Template:Comic: Difference between revisions

From crawfishcomic Wiki
No edit summary
No edit summary
Line 106: Line 106:
</noinclude><includeonly>
</noinclude><includeonly>
<div class="comic">
<div class="comic">
<span class="title">{{{number}}}: {{{title}}}</span>
<div class="prev-title-next"><!--
--><span class="previous"><span class="dim-label">''Previous:''</span> {{#ifeq: {{{is video|false}}}|true|<!--
    is video:    -->{{#if: {{{prev is comic|}}}|[[{{{prev is comic}}}]]|[[Video {{#expr: {{{number}}} - 1}}]]}}<!--
    is not video: -->{{#if: {{{prev is video|}}}|[[Video {{{prev is video}}}]]|[[{{#expr: {{{number}}} - 1}}]]}}<!--
--></span>}}<!--
--><span class="title">{{{number}}}: {{{title}}}</span><!--
--><span class="next"><span class="dim-label">''Next:''</span> {{#ifeq: {{{is video|false}}}|true|<!--
    is video:    -->{{#if: {{{next is comic|}}}|[[{{{next is comic}}}]]|[[Video {{#expr: {{{number}}} + 1}}]]}}<!--
    is not video: -->{{#if: {{{next is video|}}}|[[Video {{{next is video}}}]]|[[{{#expr: {{{number}}} + 1}}]]}}<!--
--></span>}}<!--
--></div>
<div class="image-container">[{{{url}}} {{{image}}}]</div>
<div class="image-container">[{{{url}}} {{{image}}}]</div>
<span class="caption"><span class="dim-label">''Caption:''</span> {{{caption|{{{title}}}}}}</span>
<span class="caption"><span class="dim-label">''Caption:''</span> {{{caption|{{{title}}}}}}</span>

Revision as of 15:31, 6 August 2024


Template representing a comic.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
URLurl

URL of the post.

Example
https://www.tumblr.com/crawfishcomic/698282921150316545/equation
URLrequired
Imageimage

URL of the image for the comic. To get this, open the image in the post, click "copy link" and replace .pnj with .png.

Example
https://64.media.tumblr.com/65d9bac35c8f28a5e6299ade31194d51/e99e4de49bd847f7-3f/s1280x1920/604cd805f1b53d146c89f95058c7eb92790a2946.png
URLrequired
Titletitle

Title of the comic. This will usually be the caption.

Example
Equation
Stringrequired
Numbernumber

Number of the comic.

Numberrequired
Datedate

Date of the comic's creation, from the post tags, in YYYY-MM-DD format.

Example
2022-10-16
Daterequired
Captioncaption

Full caption of the image. Only fill this is the caption is more than just the title.

Contentoptional
Tagstags

Tags of the post, separated by commas. Don't include the "crawfishcomic" and date tags.

Unknownoptional
Post datepost date

Date of the comic being posted, in YYYY-MM-DD format. Only fill this if the post date is different from the date in the tags. Note that crawfishcomic seems to be in the Australlian timezone; dates should match said timezone.

Example
2022-10-16
Unknownoptional
Is videois video

"true" if the comic is a video.

Default
false
Auto value
false
Booleanoptional
prev is videoprev is video

no description

Unknownoptional
next is videonext is video

no description

Unknownoptional
prev is comicprev is comic

no description

Unknownoptional
next is comicnext is comic

no description

Unknownoptional

Examples

Previous: 69: EquationNext:
604cd805f1b53d146c89f95058c7eb92790a2946.png

Caption: Equation #CrawfishComic #October 16 2022 #tag1#tag2


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