Difference between revisions of "Template:Interproject box/doc"

From blackwiki
Jump to navigation Jump to search
imported>L293D
(created documentation)
 
imported>L293D
(detail)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
  
This template is used to generate links to sister projects similar to [[Help:Interlanguage links|Interlanguage links]]. The template creates a box with the listed links above the display of interwiki links in the sidebar. It is not intended for use in the article namespace.
+
This template is used to generate links to sister projects similar to [[Help:Interlanguage links|Interlanguage links]] or Interproject links. The template creates a box with the listed links above the display of interwiki links in the sidebar. It is not intended for use in the article namespace.
  
 
== Usage ==
 
== Usage ==
Line 15: Line 15:
 
</pre>
 
</pre>
  
== Parameters ==
+
==Interproject Example==
For every parameter the page name must be entered separately. It should be noted that the localized name of the target wiki or the international name is used for the namespace (for example, ''user'' for the user-namespaces). A leading colon is not required.
 
 
 
For every sister project you can exactly specify one link. In sister projects with different languages (like Wikibooks), however, you can link to languages other than English: with <code><nowiki>{{Interprojekt|b=de:User:Example}}</nowiki></code> you link to the German-language Wikibooks.
 
 
 
==Example==
 
 
<pre style="white-space:pre-wrap;">
 
<pre style="white-space:pre-wrap;">
 
{{Interproject box
 
{{Interproject box
Line 37: Line 32:
 
|Project name = Wikimedia Commons
 
|Project name = Wikimedia Commons
 
|User name = Example}}
 
|User name = Example}}
 +
 +
 +
 +
 +
 
 +
==Interlanguage Example==
 +
<pre style="white-space:pre-wrap;">
 +
{{Interproject box
 +
|Image = Wikipedia's W.svg
 +
|Alt text= Wikipedia, la enciclopedia libre
 +
|Project link = w:es:
 +
|Project name = Spanish Wikipedia
 +
|User name = Example
 +
}}
 +
</pre>
 +
renders:
 +
{{Interproject box
 +
|Image = Wikipedia's W.svg
 +
|Alt text= Wikipedia, la enciclopedia libre
 +
|Project link = w:es:
 +
|Project name = Spanish Wikipedia
 +
|User name = Example
 +
}}
 +
<noinclude>
 +
[[Category:Template documentation pages]]
 +
</noinclude>

Latest revision as of 15:31, 8 March 2018

This template is used to generate links to sister projects similar to Interlanguage links or Interproject links. The template creates a box with the listed links above the display of interwiki links in the sidebar. It is not intended for use in the article namespace.

Usage

{{Interproject box
|Alt text=
|Image=
|Project link=
|Project name=
|User name=
}}

Interproject Example

{{Interproject box
|Image = Commons-logo.svg
|Alt text = Wikimedia Commons
|Project link = commons:
|Project name = Wikimedia Commons
|User name = Example
}}

renders:

Wikimedia Commons Wikimedia Commons
User:
Example (talk)




Interlanguage Example

{{Interproject box
|Image = Wikipedia's W.svg
|Alt text= Wikipedia, la enciclopedia libre
|Project link = w:es:
|Project name = Spanish Wikipedia
|User name = Example
}}

renders:

Wikipedia, la enciclopedia libre Spanish Wikipedia
User:
Example (talk)