Template:Gbstorylink: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Created page with "<includeonly><span class="tt1_istorylink">[[gbwiki:{{{1}}}|{{{2|{{{1}}}}}}]]</span></includeonly><noinclude> This template is intended for use in fiction sections, allowing fo..."
 
Tigerpaw28 (talk | contribs)
Automated documentation update
Line 1: Line 1:
<includeonly><span class="tt1_istorylink">[[gbwiki:{{{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 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.


Line 12: Line 13:


:<div style="background:#ececec">Lorem ipsum dolor sit amet {{Gbstorylink|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. {{Gbstorylink|King of the Hill!}}</div>
:<div style="background:#ececec">Lorem ipsum dolor sit amet {{Gbstorylink|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. {{Gbstorylink|King of the Hill!}}</div>
==Usage==
===Parameters===
====Required====
This template takes one required anonymous parameter.
====Optional====
This template takes one optional anonymous parameter.
===Code===
<pre>
{{Gbstorylink
|param2
|param1
}}
</pre>
==Examples==
===Code===
<pre>
{{Gbstorylink
|param2
|param1
}}
</pre>
===Result===
{{Gbstorylink
|param2
|param1
}}


[[Category:Fiction section templates]]
[[Category:Fiction section templates]]
</noinclude>
</noinclude>
<includeonly><span class="tt1_istorylink">[[gbwiki:{{{1}}}|{{{2|{{{1}}}}}}]]</span></includeonly>

Revision as of 02:41, 19 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.

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'."

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.

{{Gbstorylink|King of the Hill|Marvel US #27}}
{{Gbstorylink|King of the Hill}}

These examples are rendered in the dummy text below, in the same order:

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!

Usage

Parameters

Required

This template takes one required anonymous parameter.

Optional

This template takes one optional anonymous parameter.

Code

{{Gbstorylink
|param2
|param1
}}

Examples

Code

{{Gbstorylink
|param2
|param1
}}

Result

[[gbwiki:param2 |param1 ]]