Template:Sister/doc: Difference between revisions
Appearance
[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 |
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 === |
||
*{{para|text}} – text of the message |
*{{para|text}} – text of the message |
||
*{{para|project}} – the sister project to link to. Used to select which project logo is displayed. |
*{{para|project}} – the sister project to link to. Used to select which project logo is displayed. |
||
*{{para|below}} – optional text to display in a full-width row below the main content. Use sparingly |
*{{para|below}} – optional text to display in a full-width row below the main content. Use sparingly |
||
*{{para|position}} – set to < |
*{{para|position}} – 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=== |
|||
<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 === |
||
⚫ | |||
⚫ | |||
<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 documentation subpage for Template:Sister It contains usage information, categories and other content that is not part of the original template page. |
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}}}}}}}}]]''''' }}
Wikimedia Commons has media related to: Sister/doc |
See also
[edit source]- {{side box}}