Template:Wikipedia: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
-redundant whitespaces
ArrowHead294 (talk | contribs)
mNo edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="floatright" style="border: 1px solid #aaa; font-size: 90%; background: #f9f9f9; width: 250px; padding: 4px; text-align: left;">
<includeonly>{{#invoke: Variable_arguments | wikipedia
<div style="float: left;">[[File:Wikipedia-logo.png|44px|none|link=|alt=]]</div>
| debug_mode = {{lc:{{{debug|}}}}}
<div style="margin-left: 60px;">English [[Wikipedia:Main Page|Wikipedia]] has an article on:
}}</includeonly>[[Category:Pages with Wikipedia articles]]<noinclude>
<div style="margin-left: 10px;">'''[[Wikipedia:{{{1|{{FULLPAGENAME}}}}}|{{{1|{{FULLPAGENAME}}}}}]]'''</div>
{{documentation}}
</div>
</div>[[Category:Pages with Wikipedia articles]]<noinclude>
The '''Wikipedia''' template shows a right-floating sister-project box with a link to a single English Wikipedia page.
 
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 [[#Parameters|parameter]].
 
This template was inspired by [[Wiktionary:Template:wikipedia|the corresponding template on the English Wiktionary]], which includes many more features that are not implemented in this simplified version of the template.
 
== Parameters ==
All parameters are optional.
; <code>1=</code>
: Specifies the Wikipedia page to link to. By default, this is the same as the name of the current Xenharmonic Wiki page.


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 17:33, 12 May 2025

Template documentation[view] [edit] [history] [purge]
English Wikipedia has an article on:

The Wikipedia template shows a right-floating sister-project box with a link to a single English Wikipedia page. It was inspired by the corresponding template on the English Wiktionary, which includes many more features that are not implemented in this simplified version of the template.

Usage

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 in addition to the name of the page itself to link to as an arbitrary number of unnamed arguments.

For example, placing this on the page Frequently asked questions:

{{Wikipedia|Frequently asked questions|page1|page2|page3}}

will yield:

If you do not wish to link the page with the current page's name, simply omit it. For example, placing {{wikipedia|''page1''|''page2''|''page3''}} on Frequently asked questions will yield the same result as above, but without the link to Frequently asked questions.

See also