Template:Comic: Difference between revisions

From SMBC Wiki
Jump to navigation Jump to search
(Centered text within middle btn, increased size of arrow btns)
(Slightly increased middle btn font size, increased bottom margin of navbar)
Line 6: Line 6:


       Now make an unordered list which will display as the navigation bar
       Now make an unordered list which will display as the navigation bar
   --><ul style="display: flex; height: auto; justify-content: center; margin: 0 0 10px 0;" class="no-link-underline"><!--
   --><ul style="display: flex; height: auto; justify-content: center; margin: 0 0 20px 0;" class="no-link-underline"><!--


       Generate the |< and prev buttons, but only if {{{number}}} exists and is greater than 1
       Generate the |< and prev buttons, but only if {{{number}}} exists and is greater than 1
Line 34: Line 34:
       --><li style="background-color: #fa9b63;
       --><li style="background-color: #fa9b63;
           border-radius: 1px;
           border-radius: 1px;
           display: flex; font-size: 16px; font-variant: small-caps; font-weight: 600;
           display: flex; font-size: 17px; font-variant: small-caps; font-weight: 600;
           margin: 0 0.5em; padding: 0.5em 0.75em;"
           margin: 0 0.5em; padding: 0.5em 0.75em;"
           class="plainlinks">
           class="plainlinks">

Revision as of 13:59, 19 November 2024


This is the basic infobox-style header template used to display xkcd comics on their own pages, including the comic number (with external link to xkcd), publication date, title, comic image, and title text.

Sample

The following is a sample usage of this template:

2008-03-25
2008-03-25
Title text: 2008-03-25

Votey

20080325after.gif




Usage

{{comic
| number    =
| date      =
| title     =
| name      =
| before    =
| image     =
| custom    =
| customvotey=
| imagesize =
| noexpand  =
| titletext =
| ldomain   =
| lappend   =
}}

Notes

The above sample is produced by the following code:

{{comic
| number    = 1127
| date      = March 25, 2008
| title     = 2008-03-25
| name      = 2008-03-25
| image     = 20080325.gif
| votey     = 20080325after.gif
| titletext = 2008-03-25
}}