Template:Interwiki: Difference between revisions

Xenwolf (talk | contribs)
fixed typo (copy error)
Xenwolf (talk | contribs)
removed div enabled display in sidebar for *all* languages (even EN on JA pages)
Line 1: Line 1:
<div style="
{{#if: {{{de|}}} |
border: 1px solid lightgrey;
  [[de:{{{de}}}]] |
margin: 0 0 1em 2em;
}}{{#if: {{{en|}}} |
padding: 2px;
   {{#ifeq: {{{en}}} | {{PAGENAME}} | <!-- don't display perfect self-references --> |
display: block;
     [[en:{{{en}}}]]
float: right;
">{{#if: {{{en|}}} |
   {{#ifeq: {{{en}}} | {{PAGENAME}} | <!-- don't display self-references --> |
     [[{{{en|}}}|English]] <includeonly>[[Category:Pages with faked interwiki links]]</includeonly>
   }} |
   }} |
}}{{#if: {{{ja|}}} |
}}{{#if: {{{ja|}}} |
   {{#ifeq: {{{ja}}} | {{PAGENAME}} | <!-- don't display self-references --> |
   {{#ifeq: {{{ja}}} | {{PAGENAME}} | <!-- don't display perfect self-references --> |
     [[{{{ja|}}}|日本語]] <includeonly>[[Category:Pages with faked interwiki links]]</includeonly>
     [[ja:{{{ja}}}]]
   }} |
   }} |
}}</div>{{#if: {{{de|}}} |
  [[de:{{{de}}}]] |
}}{{#if: {{{es|}}} |
}}{{#if: {{{es|}}} |
   [[es:{{{es}}}]] |
   [[es:{{{es}}}]] |
}}<noinclude>
}}<noinclude>
This template controls the appearance of interwiki links between German (de) English (en) Spanish (sp) Japanse (ja) in the English Xenwiki.
This template controls the appearance of interwiki links between German (de) English (en) Spanish (sp) Japanse (ja) in the English Xenwiki.


Line 26: Line 19:
! parameter !! argument and special rules
! parameter !! argument and special rules
|-
|-
| de || name of a page in the German wiki without the de prefix
| de || name of a page in the German wiki  
|-
|-
| en || name of an English page: use on a Japanese pages
| en || name of an English page (from Japanese pages only)
|-
|-
| es || name of a page in the Spanish wiki without the es prefix
| es || name of a page in the Spanish wiki
|-
|-
| ja || name of a Japanese page: use on English pages
| ja || name of a Japanese page
|}
|}


Line 54: Line 47:
  <nowiki>}}</nowiki>
  <nowiki>}}</nowiki>


This causes a small box in the upper right corner if the built-in interwiki feature is not feasible.
[[Category:Templates]]


There is also a [[:category:pages with faked interwiki links]] that contains affected Japanese pages (and currently also affected English pages).
<!-- interwiki -->
 
[[de:Vorlage:Interwiki]]
[[Category:Templates]]
[[es:Plantilla:Interwiki]]
</noinclude>
</noinclude>