Jump to content

Template:Sister/doc: Difference between revisions

From Wikibooks, open books for an open world
[unreviewed revision][checked revision]
Content deleted Content added
m 19 revisions from w:Template:Sister/doc
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{high-risk| 210,000+ }}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->


This is a meta-template used for creating interwiki links to other [[WP:sister projects|sister projects]] of wikipedia. Note that links to other ''language'' wikipedias should ''not'' use links in this form, instead use interwiki links to add them to the sidebar.
This is a meta-template used for creating interwiki links to other sister projects of Wikibooks. Note that links to other ''language'' Wikibooks should ''not'' use links in this form, instead use interwiki links to add them to the sidebar.


=== Usage ===
=== Parameters ===


*{{para|text}} &ndash; text of the message
*{{para|text}} &ndash; text of the message
*{{para|project}} &ndash; the sister project to link to. Used to select which project logo is displayed.
*{{para|project}} &ndash; the sister project to link to. Used to select which project logo is displayed.
*{{para|below}} &ndash; optional text to display in a full-width row below the main content. Use sparingly
*{{para|below}} &ndash; optional text to display in a full-width row below the main content. Use sparingly
*{{para|position}} &ndash; set to <tt>left</tt> for a left-floating box or, ideally, pass through with {{nowrap|<tt><nowiki>|position={{{position|}}}</nowiki></tt>}} to let this be set on a per-page basis.
*{{para|position}} &ndash; set to <kbd>left</kbd> for a left-floating box or, ideally, pass through with {{nowrap|<kbd><nowiki>|position={{{position|}}}</nowiki></kbd>}} to let this be set on a per-page basis.


;Example
===Example===
<pre style="overflow:auto;">
<pre>
{{sister
{{sister
|project=commons
|project=commons
|text=[[Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
|text=[[commons:Wikimedia Commons|]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
}}
}}
</pre>
</pre>
{{sister
{{sister
|project=commons
|project=commons
|text=[[Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]''''' }}
|text=[[commons:Wikimedia Commons|Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]''''' }}

===Location===
This template should normally be placed at the top of the ''External links'' section at the end of an article, if the article has a section for [[WP:EL|external links]]. If no such section exists, then please place it at the top of the last section in the article.

On [[WP:DAB|disambiguation pages]], this template should be listed above other text, but below any cleanup templates, images, infoboxes or navboxes.<!-- Per WP:ACCESS, cleanup templates, images, infoboxes, and navboxes are always first. -->

=== Use with indenting characters ===
There is a known issue with Mediawiki software that causes this template, and all templates built with a table, to display with no box when indented with ''':''' or '''*''' characters.

;Examples
<pre>
:{{sister
|project=wikispecies
|text=[[Wikispecies]] has media related to: '''''[[Wikispecies:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
}}
</pre>
:{{sister
|project=wikispecies
|text=[[Wikispecies]] has media related to: '''''[[Wikispecies:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
}}

<pre>
*{{sister
|project=wikinews
|text=[[Wikinews]] has media related to: '''''[[Wikinews:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
}}
</pre>
*{{sister
|project=wikinews
|text=[[Wikinews]] has media related to: '''''[[Wikinews:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
}}

While this may produce desirable results, this should be considered a bug and not a feature, and as such may disappear in future software updates. Further, this usage should be avoided in article space, as it would lead to inconsistency, and reduce the usefulness of these templates.


=== See also ===
=== See also ===
*{{tl|side box}}

*{{tlx|side box}}

<includeonly>
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Interwiki link templates| ]]
[[Category:Interwiki link templates| ]]
[[Category:Exclude in print|{{PAGENAME}}]]
[[Category:Exclude in print|{{PAGENAME}}]]
[[Category:Metatemplates|{{PAGENAME}}]]

[[ar:قالب:شقيقة]]
[[be-x-old:Шаблён:Роднасны праект]]
[[id:Templat:Sister]]
[[ja:Template:Sister]]
[[pt:Predefinição:Irmão]]
[[tr:Şablon:Kardeş proje]]
[[uk:Шаблон:Sister]]
[[vi:Tiêu bản:Dự án liên quan]]
</includeonly>
</includeonly>

Latest revision as of 13:39, 15 August 2020

This is a meta-template used for creating interwiki links to other sister projects of Wikibooks. Note that links to other language Wikibooks should not use links in this form, instead use interwiki links to add them to the sidebar.

Parameters

[edit source]
  • |text= – text of the message
  • |project= – the sister project to link to. Used to select which project logo is displayed.
  • |below= – optional text to display in a full-width row below the main content. Use sparingly
  • |position= – set to left for a left-floating box or, ideally, pass through with |position={{{position|}}} to let this be set on a per-page basis.

Example

[edit source]
{{sister
|project=commons
|text=[[commons:Wikimedia Commons|]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
}}

See also

[edit source]