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>{{ | + | <includeonly>{{ComicTitle|{{{1}}}|type=_link|_color={{{color|}}}}}</includeonly><noinclude> |
==Documentation== | ==Documentation== | ||
− | This template produces nicely formatted links to | + | 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 | + | |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> | + | |<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>{{ | + | * 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>{{ | ||
− | * Link with custom color: <code><nowiki>{{ |
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"