User:Mathglot/sandbox/Templates/Interlang grid cell

{{Documentation|content= Given a Wikipedia language code (usually two letters, like 'fr' for French or 'de' for German) and a shortcut in Wikipedia namespace (or its equivalent, like VP: in Catalan or ВП: in Russian) like NPOV, generate a table cell for the interlang table, consisting of one or two vertically-stacked shortcut codes linked to the Wikipedia namespace article with that shortcut for the given language code. If no shortcut is given, an empty cell is generated; if two are given, separated by a comma, it displays two links; if no lang is given, it's an error.

Parameters

 * lang – language prefix; alias: 1
 * sc – One or two shortcut codes in the Wikipedia namespace for the given lang, comma-separated if > 1; alias: 2.

Notes:
 * supports any language where the Wikipedia namespace prefix is 'WP', plus Catalan ('VP') and Russian ('ВП').
 * any number of comma-separated shortcut codes may be entered for param sc but only the first two are displayed.

Examples


}}