Template:Wp: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Protected "Template:Wp": As is with other formatting templates. ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m (Text replacement - "automatic section links" to "automatic section link")
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[:wikipedia:{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude><br>
<includeonly>[[wikipedia:{{#if:{{{l|}}}|{{{l}}}:}}{{{1}}} {{#if:{{{id|}}}|({{{id}}})}}|{{{2|{{{1}}}}}}]]</includeonly><noinclude>
==Usage==
== Usage ==
Use <nowiki>{{Wp|Shigeru Miyamoto}}</nowiki> to create the following link:<br>
Use <code><nowiki>{{wp|Shigeru Miyamoto}}</nowiki></code> to create the following link:
{{Wp|Shigeru Miyamoto}}.<br>
:{{wp|Shigeru Miyamoto}}
 
Use <code><nowiki>{{wp|Donkey Kong|id=character}}</nowiki></code> to create the following link:
:{{wp|Donkey Kong|id=character}}
 
Use <code><nowiki>{{wp|Nintendo Entertainment System|NES}}</nowiki></code> to create the following link:
:{{wp|Nintendo Entertainment System|NES}}
 
Use <code><nowiki>{{wp|l=de|Frank Buschmann}}</nowiki></code> to create the following link:
:{{wp|l=de|Frank Buschmann}}
 
== About ==
This template simplifies interwiki linking to '''Wikipedia'''. The first parameter is the page title. An optional <code>id</code> parameter can be used to add an identifier to the page link (but not the link text), an optional second parameter can be used to change the link text, and an optional <code>l</code> parameter can be used to change the destination Wikipedia language.
 
It should not be used in headings since doing so breaks the automatic section link in the edit summary; use the following format instead: <code><nowiki>[[wikipedia:Page title|Display text]]</nowiki></code>


Use <nowiki>{{Wp|Nintendo Entertainment System|NES}}</nowiki> to create the following link:<br>
{{Wp|Nintendo Entertainment System|NES}}.<br>
[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Latest revision as of 14:18, January 4, 2025

Usage

Use {{wp|Shigeru Miyamoto}} to create the following link:

Shigeru Miyamoto

Use {{wp|Donkey Kong|id=character}} to create the following link:

Donkey Kong

Use {{wp|Nintendo Entertainment System|NES}} to create the following link:

NES

Use {{wp|l=de|Frank Buschmann}} to create the following link:

Frank Buschmann

About

This template simplifies interwiki linking to Wikipedia. The first parameter is the page title. An optional id parameter can be used to add an identifier to the page link (but not the link text), an optional second parameter can be used to change the link text, and an optional l parameter can be used to change the destination Wikipedia language.

It should not be used in headings since doing so breaks the automatic section link in the edit summary; use the following format instead: [[wikipedia:Page title|Display text]]