Extension:PromotedInterlanguages/InterlanguageMerge

Looks on the centralized wiki for  categories to append CSS class (one changing the standard bullet into a star, likely...) to the interlanguage links pointing to [langcode] wiki. The CSS class depends on the [status]. For now, [status] is not supposed to contain spaces

Example
This example page on the central wiki contains : Test Test Test Test

If a page in our local en: wiki contains, Interlanguage interprets it, fetches the page on the central wiki, and returns to the parser :  , where [featuredCSS] and [goodCSS] are placeholders for the CSS classes respectively defined in LocalSettings.php to display "featured" and "good" articles promoted statuses.

The parser then calls PromotedInterlanguages to interpret the #promoted functions, and displays the three interlanguage links with the good CSS style.

The call to Interlanguage is cached : the remote page is retrieved only once, the local page needs to be purged if the remote page changes.
 * 1) promoted tags are however parsed on each display : this is necessary to display correctly the interlanguage links.

Installation
PromotedInterlanguage has to be configured first.

PromotedInterlanguages/Promoted.php
(minor changes)

PromotedInterlanguages/Promoted.body.php
(minor changes)

Interlanguage.php
(changed)