More actions
italics only for linked part of template |
+ template parameter |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{nolink|}}} | <includeonly>{{#if:{{{nolink|}}} | ||
|{{#if:{{{2|}}}|{{#if:{{{short|}}}|<nowiki>#</nowiki>{{{2|}}}|{{comics/switch|{{{1}}}}} #{{{2|}}}}}}} | |{{#if:{{{template|}}}|{{comics/switch|{{{1}}}}} #{{{2|}}} |{{#if:{{{2|}}}|{{#if:{{{short|}}}|<nowiki>#</nowiki>{{{2|}}}|{{comics/switch|{{{1}}}}} #{{{2|}}}}}}} }} | ||
|''[[{{comics/switch|{{{1}}}}} {{#if:{{{2|}}}|{{#if:{{{short|}}}|{{{2|}}}{{!}}#{{{2|}}}|{{{2|}}}{{!}}{{comics/switch|{{{1}}}}} #{{{2|}}}}}}}]]'' | |''[[{{comics/switch|{{{1}}}}} {{#if:{{{2|}}}|{{#if:{{{short|}}}|{{{2|}}}{{!}}#{{{2|}}}|{{{2|}}}{{!}}{{comics/switch|{{{1}}}}} #{{{2|}}}}}}}]]'' | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 21: | Line 21: | ||
* <nowiki>{{comics|starbuck|1|nolink=y}}</nowiki> creates {{comics|starbuck|1|nolink=y}} | * <nowiki>{{comics|starbuck|1|nolink=y}}</nowiki> creates {{comics|starbuck|1|nolink=y}} | ||
* <nowiki>''{{comics|starbuck|1|nolink=y}}''</nowiki> creates ''{{comics|starbuck|1|nolink=y}}'' | * <nowiki>''{{comics|starbuck|1|nolink=y}}''</nowiki> creates ''{{comics|starbuck|1|nolink=y}}'' | ||
* <nowiki>{{comics|starbuck|1|nolink=y|template=y}}</nowiki> creates {{comics|starbuck|1|nolink=y|template=y}} | |||
* <nowiki>{{comics|starbuck|1|short=y|nolink=y}}</nowiki> creates {{comics|starbuck|1|short=y|nolink=y}}<ref>Not that this is really necessary, anyway...</ref> | * <nowiki>{{comics|starbuck|1|short=y|nolink=y}}</nowiki> creates {{comics|starbuck|1|short=y|nolink=y}}<ref>Not that this is really necessary, anyway...</ref> | ||
Revision as of 05:30, 28 March 2020
This template creates a link to a comic for inline citations, for instance:
- {{comics|1880|1}} creates Steampunk Battlestar Galactica 1880 #1
- {{comics|bsgvsbsg|1}} creates Battlestar Galactica vs. Battlestar Galactica #1
- {{comics|cw|1}} creates Battlestar Galactica: Cylon War #1
- {{comics|origins|1}} creates Battlestar Galactica: Origins #1
- {{comics|starbuck|1}} creates Battlestar Galactica: Starbuck #1
- {{comics|vol3|1}} creates Classic Battlestar Galactica Vol. 3 #1
This template can also be used to shorten a link down to the issue number itself, when citing multiple comics within the same series, e.g.:
- {{comics|starbuck|1|short=y}} creates #1
It can also print out the comic title without being linked, and also strips italics (they can be added on around the template call, of course):
- {{comics|starbuck|1|nolink=y}} creates Battlestar Galactica: Starbuck #1
- ''{{comics|starbuck|1|nolink=y}}'' creates Battlestar Galactica: Starbuck #1
- {{comics|starbuck|1|nolink=y|template=y}} creates Battlestar Galactica: Starbuck #1
- {{comics|starbuck|1|short=y|nolink=y}} creates #1[1]
The parameters switch for this template may be found here.
References
- ↑ Not that this is really necessary, anyway...