Template:Comics: Difference between revisions
More actions
No edit summary |
mNo edit summary |
||
| Line 5: | Line 5: | ||
|{{#if:{{{3|}}} | |{{#if:{{{3|}}} | ||
|''[[{{comics/switch|{{{1}}}}}]] #[[{{comics/switch|{{{1}}}}} {{{2}}}|{{{2}}}]] — [[{{comics/switch|{{{1}}}}} {{{3}}}|{{{3}}}]]'' | |''[[{{comics/switch|{{{1}}}}}]] #[[{{comics/switch|{{{1}}}}} {{{2}}}|{{{2}}}]] — [[{{comics/switch|{{{1}}}}} {{{3}}}|{{{3}}}]]'' | ||
|{{#if:{{{1|}}}|{{#if:{{{2|}}}|''[[{{comics/ | |{{#if:{{{1|}}}|{{#if:{{{2|}}}|''[[{{comics/switch|{{{1}}}}} {{{2}}}|{{comics/switch|{{{1}}}}} #{{{2}}}]]''|''[[{{comics/switch|{{{1}}}}}]]''}}}} | ||
}} | }} | ||
}}){{#ifeq:{{{sup|yes}}}|no||</sup>}} | }}){{#ifeq:{{{sup|yes}}}|no||</sup>}} | ||
| Line 35: | Line 34: | ||
* '''nolink=y''': Prints the comic title without linking. Note: This currently only works for single issue citations using the first and second unnamed 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. | ||
**<code><nowiki>{{comics|vol3|nolink=y}}</nowiki></code> will produce: {{comics|vol3|nolink=y}} | **<code><nowiki>{{comics|vol3|nolink=y}}</nowiki></code> will produce: {{comics|vol3|nolink=y}} | ||
* '''template=y''': Works in templates like infoboxes. | * '''template=y''': Works in templates like infoboxes. | ||
** <code><nowiki>{{comics|vol3|template=y|nolink=y}}</nowiki></code> will produce: {{comics|vol3|template=y}} | ** <code><nowiki>{{comics|vol3|template=y|nolink=y}}</nowiki></code> will produce: {{comics|vol3|template=y}} | ||
* '''nocat=y''': Prevents the template from adding a category to the page. | * '''nocat=y''': Prevents the template from adding a category to the page. | ||
Revision as of 01:16, 24 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: {{#if:|
Battlestar Galactica: Starbuck 1|(Comics: Battlestar Galactica: Starbuck #1)
{{comics|origins|5}}will produce: {{#if:|
Battlestar Galactica: Origins 5|(Comics: Battlestar Galactica: Origins #5)
You can also link to just the main series page by omitting the issue number:
{{comics|vol3}}will produce: {{#if:|
Classic Battlestar Galactica Vol. 3 |(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: {{#if:|
Battlestar Galactica: Starbuck 1|(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: {{#if:|
{{{1}}} |(Comics: Battlestar Galactica: Starbuck #1, Battlestar Galactica: Origins #5)
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: {{#if:y|
Classic Battlestar Galactica Vol. 3 |(Comics: Classic Battlestar Galactica Vol. 3)
- template=y: Works in templates like infoboxes.
{{comics|vol3|template=y|nolink=y}}will produce: {{#if:|
Classic Battlestar Galactica Vol. 3 Classic Battlestar Galactica Vol. 3 |Classic Battlestar Galactica Vol. 3 #|(Comics: Classic Battlestar Galactica Vol. 3)
- nocat=y: Prevents the template from adding a category to the page.
{{comics|vol3|nocat=y}}will produce: {{#if:|
Classic Battlestar Galactica Vol. 3 |(Comics: Classic Battlestar Galactica Vol. 3)
- sup=no: Disables the default superscript formatting for the citation.
{{comics|vol3|sup=no}}will produce: {{#if:|
Classic Battlestar Galactica Vol. 3 |(Comics: Classic Battlestar Galactica Vol. 3)