Jump to content

Topic on Project:Village Pump

help: where is "{{int| " ?

8
Summary by Wladek92

thanks all.

Then check for your parameter and language for example as: https://www.mediawiki.org/wiki/MediaWiki:Whatlinkshere/fr

Wladek92 (talkcontribs)

Hi all, on page https://www.mediawiki.org/wiki/Help:Magic_words parser functions speak of {{#foo:...}} but for my translations I often met following format with a pipe {{int|whatlinkshere} Is then 'int' still a magic word ? Manuals says adding the possible MediaWiki: prefix, but page "https://www.mediawiki.org/wiki/MediaWiki:Whatlinkshere" used to exist and has been suppressed. I m a bit lost. Where can I find the documentation to understand which parameters of 'int' are recognized or not ? Thank you.

Christian Wia (talk) 14:17, 3 August 2019 (UTC)

PerfektesChaos (talkcontribs)

The pipe version is Template:Int which is actually wrapping the colon version which is the global magic word. The pipe version does work only on a wiki where such template is defined, while the magic word is always available.

Basically both approaches lead to the same result, but in some edge cases the template is more comfortable.

There are thousands over thousands of possible keywords, and every week some dozens are added and some dozens become invalid.

You may visit translatewiki: and filter for MediaWiki messages.

Wladek92 (talkcontribs)

ok so for everyone to understand when you see the pipe, you go to translatewiki, hit on the 'MediaWikiproject', hit 'Translate' button, select 'ALL messages', enter your text i.e. 'whatlinkshere' in the filter box, wait among the 34700 messages .... and wait .... and wait .... At the end you have all messages containing the string 'whatlinkshere' (today 6 occurences) so I expected to found my single word alone somewhere with its equivalent but there is no such match!

So again Question: => please can someone explain how to reach the translated text starting from the int| parameter ?

One can also request about what is the result of the template for a not translatable text. Let us say we make a mistake and write the improbable 'int|whatlinxhere' . I have made the test and reply is '⧼whatlinxhere⧽'.

Christian Wia (talk) 07:04, 4 August 2019 (UTC)

Wargo (talkcontribs)

This is message name started with mediawiki: prefix. On translatewiki you can also view specific "page" for message(s) and with langcode subpage. For example: Mediawiki:whatlinkshere.

Wladek92 (talkcontribs)

As I said in the subject, the Mediawiki:whatlinkshere has a banner 'this page has been suppressed'. ....so what must the reader understand ?


Cette page a été supprimée. Les journaux des suppressions, protections et déplacements pour la page sont fournis ci-dessous pour référence.

1 mars 2009 à 15:17 Toliño a supprimé la page MediaWiki:Whatlinkshere (content was: 'Was gleicht do ane?' (and the only contributor was 'Strommops'): that's not English) (remercier)

5 janvier 2007 à 23:56 MediaWiki default a supprimé la page MediaWiki:Whatlinkshere (No longer required)

Ciencia Al Poder (talkcontribs)

Pages in the MediaWiki namespace are special. If the page does not exist or has been deleted, then it may still have content if there's a message associated with it, and it will display the default message in the wiki's content language.

As you can see, even deleted, the page displays some text.

Wladek92 (talkcontribs)
Shirayuki (talkcontribs)