Template:Tfstorylink: Difference between revisions

From The Transformers UK Appendix
Jump to navigationJump to search
Content added Content deleted
(Created page with "<onlyinclude><span class="tt1_tfstorylink">[https://tfwiki.net/wiki/{{{1}}} {{{2}}}]</span></onlyinclude>")
 
No edit summary
Line 1: Line 1:
<noinclude>__NOTOC__
<onlyinclude><span class="tt1_tfstorylink">[https://tfwiki.net/wiki/{{{1}}} {{{2}}}]</span></onlyinclude>
==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.

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>
{{tfstorylink
|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 {{tfstorylink|Earthfall: Part Three|ROM #3}}, 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. {{tfstorylink|Earthfall: Part Three}}</pre>

===Result===
Lorem ipsum dolor sit amet {{tfstorylink|Earthfall: Part Three|ROM #3}}, 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. {{tfstorylink|Earthfall: Part Three}}

[[Category:Fiction section templates]]
</noinclude><includeonly><onlyinclude><span class="tt1_tfstorylink">[https://tfwiki.net/wiki/{{{1}}} {{{2}}}]</span></onlyinclude></includeonly>

Revision as of 19:24, 9 September 2023

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.

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

{{tfstorylink
|param2
|param1
}}

Examples

 The below example includes fake Template:W text for the purpose of showing the template in the flow of a paragraph.

Code

Lorem ipsum dolor sit amet {{tfstorylink|Earthfall: Part Three|ROM #3}}, 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. {{tfstorylink|Earthfall: Part Three}}

Result

Lorem ipsum dolor sit amet Part Three ROM #3, 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. Part Three {{{2}}}