Template:Storylink: Difference between revisions
fiddling with format; this requires saving many times instead of previewing. sorry. |
mNo edit summary |
||
| (37 intermediate revisions by 10 users not shown) | |||
| Line 1: | Line 1: | ||
< | <noinclude>__NOTOC__ | ||
==Description== | |||
This template is intended for use in fiction sections, allowing for cross-references to the source of the history being discussed, without needing to break the flow of the story or use footnotes. This template creates a link to a story article here on {{SITENAME}}. To create an external storylink to our sister wiki {{gb|Main Page|GoBots Wiki}} use [[Template:Gbstorylink]]. To create a storylink to our ''other'' sister wiki {{i|Main Page|IDW Hasbro Wiki}}, use [[Template:Istorylink]]. | |||
In non-fiction sections, it's better to refer to the work of fiction normally, e.g., "The last appearance of Bumblebee's Pretender shell is in the comic '[[Dark Creation]]'." | |||
==Usage== | |||
===Parameters=== | |||
====Required==== | |||
This template takes one required anonymous parameter. | |||
# The title of the story article to link to. | |||
====Optional==== | |||
This template takes one optional anonymous parameter. | |||
<ol> | |||
<li value="2">The custom text to use for the link</li> | |||
</ol> | |||
===Code=== | |||
<pre> | |||
{{Storylink | |||
|param2 | |||
|param1 | |||
}} | |||
</pre> | |||
==Examples== | |||
{{note|The below example includes fake {{w|Lorem ipsum}} text for the purpose of showing the template in the flow of a paragraph.}} | |||
===Code=== | |||
<pre> | |||
Lorem ipsum dolor sit amet {{Storylink|King of the Hill!|Marvel US #27}}, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | |||
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. {{Storylink|King of the Hill!}}</pre> | |||
===Result=== | |||
Lorem ipsum dolor sit amet {{Storylink|King of the Hill!|Marvel US #27}}, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | |||
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. {{Storylink|King of the Hill!}} | |||
[[Category:Fiction section templates]] | |||
</noinclude><includeonly><span class="tt1_storylink">[[{{{1}}}|{{{2|{{{1}}}}}}]]</span></includeonly> | |||
</ | |||
Latest revision as of 03:00, 23 June 2022
Description
This template is intended for use in fiction sections, allowing for cross-references to the source of the history being discussed, without needing to break the flow of the story or use footnotes. This template creates a link to a story article here on MediaWiki. To create an external storylink to our sister wiki GoBots Wiki use Template:Gbstorylink. To create a storylink to our other sister wiki IDW Hasbro Wiki, use Template:Istorylink.
In non-fiction sections, it's better to refer to the work of fiction normally, e.g., "The last appearance of Bumblebee's Pretender shell is in the comic 'Dark Creation'."
Usage
Parameters
Required
This template takes one required anonymous parameter.
- The title of the story article to link to.
Optional
This template takes one optional anonymous parameter.
- The custom text to use for the link
Code
{{Storylink
|param2
|param1
}}
Examples
Code
Lorem ipsum dolor sit amet {{Storylink|King of the Hill!|Marvel US #27}}, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. {{Storylink|King of the Hill!}}
Result
Lorem ipsum dolor sit amet Marvel US #27, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. King of the Hill!

