Template:Comics: Difference between revisions
More actions
lets see if this works... |
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}}| {{{2|}}}}}{{!}}''{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}| #{{{2|}}}''}}|{{#if:{{{2|}}}|{{#if:{{{short|}}}|<nowiki>#</nowiki>{{{2|}}}|{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}| {{{2|}}}}}}}}}}}|{{#ifeq:{{{sup|yes}}}|no||<sup>}} | {{#if:{{{template|}}}|{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}| {{{2|}}}}}{{!}}''{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}| #{{{2|}}}''}}|{{#if:{{{2|}}}|{{#if:{{{short|}}}|<nowiki>#</nowiki>{{{2|}}}|{{comics/switch|{{{1}}}|{{{2}}}}}{{#ifeq:{{{1}}}|marvel|{{void}}| {{{2|}}}}}}}}}}}|{{#ifeq:{{{sup|yes}}}|no||<sup>(}}[[List of comics|Comics]]: {{#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>}}}} | ||
{{#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.
{{comics|starbuck|1}}will produce: (Comics: Battlestar Galactica: Starbuck #1){{comics|origins|5}}will produce: (Comics: Battlestar Galactica: Origins #5)
You can also link to just the main series page by omitting the issue number:
{{comics|vol3}}will produce: (Comics: Classic Battlestar Galactica Vol. 3)
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.
{{comics|starbuck|1|4}}will produce: (Comics: Battlestar Galactica: Starbuck #1 — 4)
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.
{{comics|comic1=starbuck|issue1=1|comic2=origins|issue2=5}}will produce: (Comics: Battlestar Galactica: Starbuck #1, Battlestar Galactica: Origins #5)
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.
{{comics|marvel|13}}will produce: (Comics: Collision Course!){{comics|comic1=marvel|issue1=13|comic2=starbuck|issue2=1}}will produce: (Comics: Collision Course!, Battlestar Galactica: Starbuck #1)
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.
{{comics|vol3|template=y|nolink=y}}will produce: (Comics: Classic Battlestar Galactica Vol. 3)
- nocat=y: Prevents the template from adding a category to the page.
{{comics|vol3|nocat=y}}will produce: (Comics: Classic Battlestar Galactica Vol. 3)
- sup=no: Disables the default superscript formatting for the citation.
{{comics|vol3|sup=no}}will produce: Comics: Classic Battlestar Galactica Vol. 3