Module:Sandbox/Was a bee/getLinkedName/doc

Retrieving text from Wikidata and formatting it in wiki-linked style. Algorithm of this module is as follows.
 * Case 1. If there is sitelink, then use sitelink.
 * Case 2 If sitelink has disambiguation brackets, then remove the brackets.
 * Case 3. If there is no sitelink, then use label.
 * Case 4. If there is no sitelink and label, then use item ID (with editing pencil like this "Blue pencil.svg").

Case 1: Sitelink exists

 * Input
 * Output

Case 2: Sitelink exists but which has disambiguation brackets

 * Input
 * Output

Case 3: Sitelink doesn't exist but label exists

 * Input
 * Output

Case 4: Both sitelink and label doesn't exist

 * Input
 * Output

alias
alias parameter specifies text shown as alias without changing the link target.
 * Input


 * Output