Template:Interwiki: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Xenwolf (talk | contribs)
test to ignore self-references on en pages
Xenwolf (talk | contribs)
ignore self-references on ja pages as well
Line 10: Line 10:
   }} |
   }} |
}}{{#if: {{{ja|}}} |
}}{{#if: {{{ja|}}} |
   [[{{{ja|}}}|日本語]] <includeonly>[[Category:Pages with faked interwiki links]]</includeonly> |
   {{#ifeq: {{{en}}} | {{PAGENAME}} | <!-- don't display self-references --> |
    [[{{{ja|}}}|日本語]] <includeonly>[[Category:Pages with faked interwiki links]]</includeonly>
  }} |
}}</div>{{#if: {{{de|}}} |
}}</div>{{#if: {{{de|}}} |
   [[de:{{{de}}}]] |
   [[de:{{{de}}}]] |

Revision as of 22:33, 12 October 2018

This template controls the appearance of interwiki links between German (de) English (en) Spanish (sp) Japanse (ja) in the English Xenwiki.

These parameters are supported:

parameter argument and special rules
de name of a page in the German wiki without the de prefix
en name of an English page: use on a Japanese pages
es name of a page in the Spanish wiki without the es prefix
ja name of a Japanese page: use on English pages

Use it for example like this:

{{interwiki| en = en-pagename }}
{{interwiki| de = de-pagename | ja = ja-pagename }}

... or like this:

{{interwiki
| de = German page name
| es = Spanisch page name
| ja = Japanese page name
}}

Here an empty copy template with all parameters in alphabetical order:

{{interwiki
| de = 
| en = 
| es = 
| ja = 
}}

This causes a small box in the upper right corner if the built-in interwiki feature is not feasible.

There is also a category:pages with faked interwiki links that contains affected Japanese pages (and currently also affected English pages).