Template:Wikipedia/doc: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 8: | Line 8: | ||
=== Parameters === | === Parameters === | ||
All parameters are optional. Pass in all pages to link to as an arbitrary number of unnamed arguments | 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]]: | |||
<pre>{{wikipedia|''page1''|''page2''|''page3''}}</pre> | |||
will yield: | |||
<div class="floatright" style="border: 1px solid #aaa; font-size: 90%; background: #f9f9f9; width: 300px; padding: 4px; text-align: left;"> | |||
<div style="float: left;">[[File:Wikipedia-logo.png|44px|none|link=|alt=]]</div> | |||
<div style="margin-left: 60px;">English [[Wikipedia:Main Page|Wikipedia]] has an article on: | |||
<div style="margin-left: 10px;">'''[[wikipedia:Frequently asked questions|Frequently asked questions]]'''</div> | |||
<div style="margin-left: 10px;">'''[[wikipedia:page1|page1]]'''</div> | |||
<div style="margin-left: 10px;">'''[[wikipedia:page2|page2]]'''</div> | |||
<div style="margin-left: 10px;">'''[[wikipedia:page3|page3]]'''</div> | |||
</div> | |||
</div>{{clear}} | |||
If you do not wish to link the page with the current page's name, add in <code>pname=false</code>. For example, placing <code>{{<nowiki />wikipedia|pname=false|''page1''|''page2''|''page3''}}</code> on [[Frequently asked questions]] will yield the same result as above, but without the link to [[Frequently asked questions]]. | |||
=== See also === | === See also === | ||
* {{modlink|Variable arguments}} | * {{modlink|Variable arguments}} |
Revision as of 03:33, 29 October 2024
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|''page1''|''page2''|''page3''}}
will yield:

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