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)
mNo edit summary
Joe Beaudoin Jr. (talk | contribs)
italics only for linked part of template
Line 1: Line 1:
<includeonly>''{{#if:{{{nolink|}}}
<includeonly>{{#if:{{{nolink|}}}
|{{#if:{{{2|}}}|{{#if:{{{short|}}}|<nowiki>#</nowiki>{{{2|}}}|{{comics/switch|{{{1}}}}}&nbsp;#{{{2|}}}}}}}
|{{#if:{{{2|}}}|{{#if:{{{short|}}}|<nowiki>#</nowiki>{{{2|}}}|{{comics/switch|{{{1}}}}}&nbsp;#{{{2|}}}}}}}
|[[{{comics/switch|{{{1}}}}}&nbsp;{{#if:{{{2|}}}|{{#if:{{{short|}}}|{{{2|}}}{{!}}#{{{2|}}}|{{{2|}}}{{!}}{{comics/switch|{{{1}}}}}&nbsp;#{{{2|}}}}}}}]]
|''[[{{comics/switch|{{{1}}}}}&nbsp;{{#if:{{{2|}}}|{{#if:{{{short|}}}|{{{2|}}}{{!}}#{{{2|}}}|{{{2|}}}{{!}}{{comics/switch|{{{1}}}}}&nbsp;#{{{2|}}}}}}}]]''
}}''</includeonly><noinclude>
}}</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 17: Line 17:
* <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:
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):


* <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|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:26, 28 March 2020


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

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|short=y|nolink=y}} creates #1[1]

The parameters switch for this template may be found here.

References

  1. Not that this is really necessary, anyway...