Template:Wikipedia/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
Make documentation page
 
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{dochead}}
{{dochead}}
=== Usage ===
=== Usage ===
{{Wikipedia}}
{{{{ROOTPAGENAME}} }}
The template should be placed at the beginning of the page it refers to, immediately after hatnotes if there are any. If there are also images, box templates such as this should appear first. Alternatively, consider linking to Wikipedia in the "External links" section; see [[Special:Interwiki]] for tips on adding such links.
The template should be placed at the beginning of the page it refers to, immediately after hatnotes if there are any. If there are also images, box templates such as this should appear first. Alternatively, consider linking to Wikipedia in the "External links" section; see [[Special:Interwiki]] for tips on adding such links.


Line 8: Line 8:


=== Parameters ===
=== Parameters ===
All parameters are optional.
All parameters are optional. Pass in all pages to link to as an arbitrary number of unnamed arguments:


; <code>1=</code>
<code>{{<nowiki />wikipedia|''page1''|''page2''|''page3''|...}}</code>
: Specifies the Wikipedia page to link to. By default, this is the same as the name of the current Xenharmonic Wiki page.
 
. Note that if you intend to link multiple pages ''and'' the Wikipedia article with the same name as the current article, it is recommended to use <code>{{<nowiki />wikipedia|{{<nowiki />PAGENAME}}|''page1''|''page2''|''page3''|...}}</code>

Revision as of 03:09, 29 October 2024

Usage

English Wikipedia has an article on:

The template should be placed at the beginning of the page it refers to, immediately after hatnotes if there are any. If there are also images, box templates such as this should appear first. Alternatively, consider linking to Wikipedia in the "External links" section; see Special:Interwiki for tips on adding such links.

The template can also be placed at the beginning of a section. In that case, the title of the Wikipedia page must be explicitly given as a parameter.

Parameters

All parameters are optional. Pass in all pages to link to as an arbitrary number of unnamed arguments:

{{wikipedia|page1|page2|page3|...}}

. Note that if you intend to link multiple pages and the Wikipedia article with the same name as the current article, it is recommended to use {{wikipedia|{{PAGENAME}}|page1|page2|page3|...}}