Template:Storylink: Difference between revisions

From No Man's Land - A Trigun Wiki
Jump to navigation Jump to search
m (4 revisions imported)
m (added template data)
Line 34: Line 34:
</noinclude>
</noinclude>
<includeonly><span style="font-size: 12px; background-color: #E5E4E2;">[[{{{1}}}|{{{2|{{{1}}}}}}]]</span></includeonly>
<includeonly><span style="font-size: 12px; background-color: #E5E4E2;">[[{{{1}}}|{{{2|{{{1}}}}}}]]</span></includeonly>
<noinclude>
<templatedata>
{
"params": {
"1": {
"label": "Page name",
"description": "Name of page being linked to WITHOUT WikiText.",
"example": "Vash the Stampede (episode)",
"type": "wiki-page-name",
"required": true
},
"2": {
"label": "Display name",
"description": "Use this field if the linked page name contains (chapter) or (episode) in the name to shorten it to just the title. ",
"example": "Vash the Stampede",
"type": "content"
}
}
}
</templatedata>
</noinclude>

Revision as of 08:52, 27 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. This template creates a link to a story article here on No Man's Land - A Trigun Wiki.

In non-fiction sections, it's better to refer to the work of fiction normally, e.g., "The first appearance of Wolfwood's Punisher is in episode 9, 'MURDER MACHINE'."

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
|param1
|param2
}}

Examples

Code

Lorem ipsum dolor sit amet {{Storylink|TRUTH OF MISTAKE|Episode 2}}, 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|TRUTH OF MISTAKE}}

Result

Lorem ipsum dolor sit amet Episode 2 , 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. TRUTH OF MISTAKE


No description.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Page name1

Name of page being linked to WITHOUT WikiText.

Example
Vash the Stampede (episode)
Page namerequired
Display name2

Use this field if the linked page name contains (chapter) or (episode) in the name to shorten it to just the title.

Example
Vash the Stampede
Contentoptional