Template:Link/doc

From Mo' Creatures Wiki
Jump to: navigation, search
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information

Used for linking to websites in references. Similar to Wikipedia's {{cite web}} template.

Usage[edit source]

Short template

{{link|url=|title=}}

Full template

{{link|url=|title=|website=|author=|date=|quote=|dead-url=(true)|archive-url=}}

Examples[edit source]

Simple[edit source]

{{link
|url=https://www.pcgamesn.com/minecraft/minecraft-to-the-last-tree-polish-primeval-forest
|title=How Minecraft helped save one of the world's biggest primeval forests
|website=PC Games N
}}
Will give...

{{[[Template:{{{1}}}|{{{1}}}]]}}

Extended[edit source]

{{link
|url=https://www.pcgamesn.com/minecraft/minecraft-to-the-last-tree-polish-primeval-forest
|title=How Minecraft helped save one of the world's biggest primeval forests
|website=PC Games N
|author=Kirk McKeand
|date=January 26, 2018
}}
Will give...

{{[[Template:{{{1}}}|{{{1}}}]]}}

With dead link[edit source]

{{link
|url=https://www.pcgamesn.com/minecraft/minecraft-to-the-last-tree-polish-primeval-forest
|title=How Minecraft helped save one of the world's biggest primeval forests
|website=PC Games N
|dead-url=true
}}
Will give...

{{[[Template:{{{1}}}|{{{1}}}]]}}

With archive url[edit source]

Note:{{{archive-url}}} only shows if {{{dead-url}}} is set.

{{link
|url=https://www.pcgamesn.com/minecraft/minecraft-to-the-last-tree-polish-primeval-forest
|title=How Minecraft helped save one of the world's biggest primeval forests
|website=PC Games N
|dead-url=true
|archive-url=http://web.archive.org/web/20180510040828/https://www.pcgamesn.com/minecraft/minecraft-to-the-last-tree-polish-primeval-forest
}}
Will give...

{{[[Template:{{{1}}}|{{{1}}}]]}}