Difference between revisions of "Template:series"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
Line 42: Line 42:
 
  | #default      = }}}}}}.|}}<!--  
 
  | #default      = }}}}}}.|}}<!--  
  
  - Previous/next --> The {{#if:{{{prev_title|}}}|previous one ([[{{{prev_title}}}]]) was released on {{{prev_date}}}{{#if:{{{next_title|}}}|, while the|.}}|}} {{#if:{{{next_title|}}}| next one ([[{{{next_title}}}]]) was released on {{{next_date}}}.}}|}} {{#if:{{{extra_text|}}}|{{{extra_text}}} }} [[April Fools' Day comics|View all April Fools' Day comics]] or [[:Category:April Fools' Day comics|learn more about them]].
+
  - Previous/next --> The {{#if:{{{prev_title|}}}|previous one ([[{{{prev_title}}}]]) was released on {{{prev_date}}}{{#if:{{{next_title|}}}|, while the|.}}|}} {{#if:{{{next_title|}}}| next one ([[{{{next_title}}}]]) was released on {{{next_date}}}.}}|}} {{#if:{{{extra_text|}}}|{{{extra_text}}} }} You can [[April Fools' Day comics|view all April Fools' Day comics]] or [[:Category:April Fools' Day comics|learn more about them]].
 
{{!}}-
 
{{!}}-
 
! {{#if:{{{prev_title|}}}|[[{{{prev_title|}}}|<&nbsp;Previous&nbsp;April&nbsp;Fools'&nbsp;Day&nbsp;comic]]|<!--
 
! {{#if:{{{prev_title|}}}|[[{{{prev_title|}}}|<&nbsp;Previous&nbsp;April&nbsp;Fools'&nbsp;Day&nbsp;comic]]|<!--
Line 49: Line 49:
  
 
--> }}<!--
 
--> }}<!--
                             --> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!--
+
                             --> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!--
  
 
                             -->[[:Category:April Fools' Day comics|View&nbsp;all]]<!--
 
                             -->[[:Category:April Fools' Day comics|View&nbsp;all]]<!--
  
                             --> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{#if:{{{next_title|}}}|[[{{{next_title|}}}|Next&nbsp;April&nbsp;Fools'&nbsp;Day&nbsp;comic&nbsp;>]] &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }}</center>
+
                             --> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{#if:{{{next_title|}}}|<!--
 +
 
 +
                            -->[[{{{next_title|}}}|Next&nbsp;April&nbsp;Fools'&nbsp;Day&nbsp;comic&nbsp;>]] &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }}</center>
 
{{!}}}</includeonly><noinclude>This template is used in the [[:Category:April Fools' Day comics|April Fools' Day comics]] such as [[3074: Push Notifications]]. Example:
 
{{!}}}</includeonly><noinclude>This template is used in the [[:Category:April Fools' Day comics|April Fools' Day comics]] such as [[3074: Push Notifications]]. Example:
 
{{series
 
{{series
Line 134: Line 136:
 
; extra_text
 
; extra_text
  
: Any additional sentence or phrase you'd like to display at the end of the main description. Optional.
+
: Any additional sentences to be display at the end of the main description, such as the text '''<code>Hello!</code>''' in the example above. Optional.
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 22:53, 11 May 2025

This template is used in the April Fools' Day comics such as 3074: Push Notifications. Example:

< Previous                 April Fools' Day comics                 Next >      
This is the 2nd xkcd April Fools' Day comic, released by Randall on April 1, 2007. It was published 55 days late on a Sunday, deviating from the standard release schedule to honor April Fools' Day. Hello! You can view all April Fools' Day comics or learn more about them!

This was generated by:

{{series
| series        = April
| date          = April 1, 2007
| number        = 2
| days_late     = 55
| day_category  = Sunday
| prev_title    = Syndication
| prev_date     = April 1, 2007
| next_title    = 404: Not Found
| next_date     = April 1, 2009
| extra_text    = Hello!
}}

Documentation

{{series
| series        = April
| date          = April 1, 2007
| number        = 2
| days_late     = 55
| day_category  = Sunday
| prev_title    = Syndication
| prev_date     = April 1, 2007
| next_title    = 404: Not Found
| next_date     = April 1, 2009
| extra_text    = Hello!
}}
series
Specifies which series this comic belongs to. Currently, only April is supported, which refers to the April Fools' Day comics by Randall.
date
The release date of this comic, e.g., April 1, 2008. This is shown after Randall Munroe's name. Optional.
number
The ordinal number of this comic in the series. For example, 4 if it's the fourth April Fools' Day comic. Must be a number.
days_late
The number of days this comic was released after its intended date. If provided alone, the text will say it was released that many days late. Optional.
day_category
A category label such as Monday or Friday (without the word comics) used to link to a category like Category:Friday comics. If given in addition to days_late, it will say the comic was released X days late on a Y.
prev_title
The title of the previous comic in the series, e.g., 2915: Lab Report. This will be linked as the prior entry in the sequence. Optional.
prev_date
The release date of the previous comic. Required if prev_title is provided, to show when it came out.
next_title
The title of the next comic in the series, e.g., 2917: AI Future. Optional. Adds a forward navigation link.
next_date
The release date of the next comic. Required if next_title is provided, to show when it came out.
extra_text
Any additional sentences to be display at the end of the main description, such as the text Hello! in the example above. Optional.