Template:Storylink: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Steve-o (talk | contribs)
fiddling with format; this requires saving many times instead of previewing. sorry.
Abates (talk | contribs)
mNo edit summary
 
(37 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<includeonly><span style="float:right; padding-left:1em; background:inherit; font-size:90%; text-transform:uppercase; text-decoration:underline">[[{{{1}}}|({{{2|{{{1}}}}}}[]]</span></includeonly><noinclude>
<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]].


Use this template to link to a story without disrupting the flow of an article. The link will appear to the right of the article text.
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>


'''''Note:''' The style in which this information is displayed is still under discussion.  The link which currently appears off to the side may in the future be changed to appear inline, be given a border, background color, etc..  Regardless future changes in layout, links made now using this template will continue to function.''
===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!}}


The layout is supposed to evoke line-markers, a type of bookmark used to mark a specific line.
[[Category:Fiction section templates]]
 
</noinclude><includeonly><span class="tt1_storylink">[[{{{1}}}|{{{2|{{{1}}}}}}]]</span></includeonly>
This template accepts two arguments, the first should be the article being linked to, and the second is an optional description which will appear as the link text.  If the second argument is omitted, the text of the link will default to the name of the article being referenced.  Additionally, you may make the second argument "blank" by including the pipe for it but putting no text (or a space) there -- in this case, the storylink will appear as a simple "tab" to click on.  Here are examples of these three ways of invoking the template:
 
:<tt><nowiki>{{Storylink | King of the Hill | Marvel US #27 }}</nowiki></tt>
:<tt><nowiki>{{Storylink | King of the Hill}}</nowiki></tt>
:<tt><nowiki>{{Storylink | King of the Hill | }}</nowiki></tt>
 
These examples are rendered in the dummy text below, in the same order:
 
: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}} Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.{{Storylink | King of the Hill |}}
 
[[Category:Templates]]
</noinclude>

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.

  1. The title of the story article to link to.

Optional

This template takes one optional anonymous parameter.

  1. The custom text to use for the link

Code

{{Storylink
|param2
|param1
}}

Examples

The below example includes fake Lorem ipsum text for the purpose of showing the template in the flow of a paragraph.

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!