Difference between revisions of "Template:ComicLink"

From BIONICLEsector01
(Created page with "<includeonly>{{FormattedTitleText|{{{1}}}|type=_link|_color={{{color|}}}}}</includeonly><noinclude> ==Documentation== This template produces nicely formatted links to article...")
 
(Update to reflect the fact that this template only handles comics)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{FormattedTitleText|{{{1}}}|type=_link|_color={{{color|}}}}}</includeonly><noinclude>
+
<includeonly>{{ComicTitle|{{{1}}}|type=_link|_color={{{color|}}}}}</includeonly><noinclude>
  
 
==Documentation==
 
==Documentation==
This template produces nicely formatted links to articles about BIONICLE media by rendering the link text in italics or quotation marks as convention dictates.
+
This template produces nicely formatted links to articles about BIONICLE comic books by rendering the link text in italics or quotation marks as convention dictates.
  
 
===Parameters===
 
===Parameters===
Line 10: Line 10:
 
|-
 
|-
 
|(first parameter)
 
|(first parameter)
|Text representing the piece of media being cited. It can either be the full article name of the piece of media (such as <code>BIONICLE Legends 1: Island of Doom</code>) or a shortcut indicated on that article with Template:Shortcut (such as <code>BL1</code>).
+
|Text representing the piece of media being cited. It can either be the full article name of the piece of media (such as <code>BIONICLE 1: The Coming of the Toa</code>) or a shortcut indicated on that article with Template:Shortcut (such as <code>C1</code>).
 
|-
 
|-
|<code>type</code> '''(optional)'''
+
|<code>color</code> '''(optional)'''
 
|The link color.
 
|The link color.
  
Line 19: Line 19:
  
 
===Examples===
 
===Examples===
 
+
* Passing in an article shortcut: <code><nowiki>{{ComicLink|C1}}</nowiki></code> produces: {{ComicLink|C1}}
 
+
* Passing in an article's full name: <code><nowiki>{{ComicLink|BIONICLE Glatorian 2: The Fall of Atero}}</nowiki></code> produces: {{ComicLink|BIONICLE Glatorian 2: The Fall of Atero}}
* Passing in an article shortcut: <code><nowiki>{{FormattedTitleLink|C1}}</nowiki></code> produces: {{FormattedTitleLink|C1}}
+
* Link with custom color: <code><nowiki>{{ComicLink|BIONICLE 2: Deep into Darkness|color=#00ff00}}</nowiki></code> produces: {{ComicLink|BIONICLE 2: Deep into Darkness|color=#00ff00}}
* Passing in an article's full name: <code><nowiki>{{FormattedTitleLink|BIONICLE Glatorian 2: The Fall of Atero}}</nowiki></code> produces: {{FormattedTitleLink|BIONICLE Glatorian 2: The Fall of Atero}}
 
* Link with custom color: <code><nowiki>{{FormattedTitleLink|BIONICLE 2: Deep into Darkness|color=#00ff00}}</nowiki></code> produces: {{FormattedTitleLink|BIONICLE 2: Deep into Darkness|color=#00ff00}}
 

Latest revision as of 06:44, 11 May 2021


Documentation

This template produces nicely formatted links to articles about BIONICLE comic books by rendering the link text in italics or quotation marks as convention dictates.

Parameters

Parameter Function
(first parameter) Text representing the piece of media being cited. It can either be the full article name of the piece of media (such as BIONICLE 1: The Coming of the Toa) or a shortcut indicated on that article with Template:Shortcut (such as C1).
color (optional) The link color.

Default: nothing (link has default color)

Examples

  • Passing in an article shortcut: {{ComicLink|C1}} produces: "The Coming of the Toa"
  • Passing in an article's full name: {{ComicLink|BIONICLE Glatorian 2: The Fall of Atero}} produces: "The Fall of Atero"
  • Link with custom color: {{ComicLink|BIONICLE 2: Deep into Darkness|color=#00ff00}} produces: "Deep into Darkness"