Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Comics: Difference between revisions

Template page
Joe Beaudoin Jr. (talk | contribs)
lets see if this works...
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{nolink|}}}|
<includeonly>{{#if:{{{nolink|}}}|
{{#if:{{{2|}}}|{{void}}|{{comics/switch|{{{1}}}|{{{2}}}}}}}
{{#if:{{{2|}}}|{{void}}|{{comics/switch|{{{1}}}|{{{2}}}}}}}
{{#if:{{{template|}}}|{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}|&nbsp;{{{2|}}}}}{{!}}''{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}|&nbsp;#{{{2|}}}''}}|{{#if:{{{2|}}}|{{#if:{{{short|}}}|<nowiki>#</nowiki>{{{2|}}}|{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}|&nbsp;{{{2|}}}}}}}}}}}|{{#ifeq:{{{sup|yes}}}|no||<sup>}}([[List of comics|Comics]]:&nbsp;{{#if:{{{comic1|}}}
{{#if:{{{template|}}}|{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}|&nbsp;{{{2|}}}}}{{!}}''{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}|&nbsp;#{{{2|}}}''}}|{{#if:{{{2|}}}|{{#if:{{{short|}}}|<nowiki>#</nowiki>{{{2|}}}|{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}|&nbsp;{{{2|}}}}}}}}}}}|{{#ifeq:{{{sup|yes}}}|no||<sup>(}}[[List of comics|Comics]]:&nbsp;{{#if:{{{comic1|}}}
  |{{#ifeq:{{{comic1}}}|marvel
  |{{#ifeq:{{{comic1}}}|marvel
   |''[[{{comics/switch|{{{comic1}}}|{{{issue1}}}}}]]''
   |''[[{{comics/switch|{{{comic1}}}|{{{issue1}}}}}]]''
Line 41: Line 41:
     }}
     }}
   }}
   }}
}}){{#ifeq:{{{sup|yes}}}|no||)</sup>}}}}
}}{{#ifeq:{{{sup|yes}}}|no||)</sup>}}}}
{{#if:{{{nocat|}}}||{{#if:{{{comic1|}}}
{{#if:{{{nocat|}}}||{{#if:{{{comic1|}}}
  |[[Category:{{#ifeq:{{{comic1}}}|marvel|{{comics/switch|{{{comic1}}}|{{{issue1}}}}}|{{comics/switch|{{{comic1}}}}}}}]]
  |[[Category:{{#ifeq:{{{comic1}}}|marvel|{{comics/switch|{{{comic1}}}|{{{issue1}}}}}|{{comics/switch|{{{comic1}}}}}}}]]

Revision as of 20:03, 26 August 2025

Documentation

This template creates a link to a comic for inline citations. It supports citing a single issue, a range of issues, or multiple different comics at once.

Single Issue Citation

This is the basic usage for citing a single comic book issue.

You can also link to just the main series page by omitting the issue number:

Issue Range Citation

To cite a range of issues from the same comic series, use three unnamed parameters in the format {{comics|series|start_issue|end_issue}}. This format links the series title and both the start and end issue numbers.

Multiple Comic Citation

To cite issues from different comic series in one reference, use numbered parameters like comic1, issue1, comic2, issue2, etc. This format now adds a category for each comic cited.

Marvel Comics

For Marvel comics, the parameter for the series must be marvel (all lowercase), and the issue number must be provided. The template will automatically format the link correctly.

Other Parameters

  • nolink=y: Prints the comic title without linking. Note: This currently only works for single issue citations using the first and second unnamed parameters.
    • {{comics|vol3|nolink=y}} will produce: Classic Battlestar Galactica Vol. 3
  • template=y: Works in templates like infoboxes.
  • nocat=y: Prevents the template from adding a category to the page.
  • sup=no: Disables the default superscript formatting for the citation.