Template:Comics: Difference between revisions

Template page
(nolink)
Line 1: Line 1:
<includeonly>''[[{{comics/switch|{{{1}}}}}&nbsp;{{#if:{{{2|}}}|{{#if:{{{short|}}}|{{{2|}}}{{!}}#{{{2|}}}|{{{2|}}}{{!}}{{comics/switch|{{{1}}}}}&nbsp;#{{{2|}}}}}}}]]''</includeonly><noinclude>
<includeonly>''{{#if:{{{nolink|}}}|{{void}}|[[}}{{comics/switch|{{{1}}}}}&nbsp;{{#if:{{{2|}}}|{{#if:{{{short|}}}|{{{2|}}}{{!}}#{{{2|}}}|{{{2|}}}{{!}}{{comics/switch|{{{1}}}}}&nbsp;#{{{2|}}}}}}}'{{#if:{{{nolink|}}}|{{void}}|]]}}''</includeonly><noinclude>


This template creates a link to a comic for inline citations, for instance:
This template creates a link to a comic for inline citations, for instance:
Line 13: Line 13:


* <nowiki>{{comics|starbuck|1|short=y}}</nowiki> creates {{comics|starbuck|1|short=y}}
* <nowiki>{{comics|starbuck|1|short=y}}</nowiki> creates {{comics|starbuck|1|short=y}}
It can also print out the comic title ''without'' being linked:
* <nowiki>{{comics|starbuck|1|nolink=y}}</nowiki> creates {{comics|starbuck|1|nolink=y}}


The parameters switch for this template may be [[/switch|found here]].
The parameters switch for this template may be [[/switch|found here]].


[[Category:Battlestar Wiki link templates|Comics]]</noinclude>
[[Category:Battlestar Wiki link templates|Comics]]</noinclude>

Revision as of 04:36, 28 March 2020


This template creates a link to a comic for inline citations, for instance:

  • {{comics|1880|1}} creates {{#if:||[[}}Steampunk Battlestar Galactica 1880 1|Steampunk Battlestar Galactica 1880 #1']]
  • {{comics|bsgvsbsg|1}} creates {{#if:||[[}}Battlestar Galactica vs. Battlestar Galactica 1|Battlestar Galactica vs. Battlestar Galactica #1']]
  • {{comics|cw|1}} creates {{#if:||[[}}Battlestar Galactica: Cylon War 1|Battlestar Galactica: Cylon War #1']]
  • {{comics|origins|1}} creates {{#if:||[[}}Battlestar Galactica: Origins 1|Battlestar Galactica: Origins #1']]
  • {{comics|starbuck|1}} creates {{#if:||[[}}Battlestar Galactica: Starbuck 1|Battlestar Galactica: Starbuck #1']]
  • {{comics|vol3|1}} creates {{#if:||[[}}Classic Battlestar Galactica Vol. 3 1|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 {{#if:||[[}}Battlestar Galactica: Starbuck 1|#1']]

It can also print out the comic title without being linked:

  • {{comics|starbuck|1|nolink=y}} creates {{#if:y||[[}}Battlestar Galactica: Starbuck 1|Battlestar Galactica: Starbuck #1'

The parameters switch for this template may be found here.