Module:Sandbox/Was a bee/getLinkedName/doc explained

Retrieving text from Wikidata and formatting it in wiki-linked style. Algorithm of this module is as follows.

Usage

<nowiki>{{#invoke:Sandbox/Was a bee/getLinkedName|getLinkedName|QID}}</nowiki>

Examples

Case 1: Sitelink exists

Input<nowiki>{{#invoke:Sandbox/Was a bee/getLinkedName|getLinkedName|Q42}}</nowiki>
  • Output
  • Case 2: Sitelink exists but which has disambiguation brackets

    Input<nowiki>{{#invoke:Sandbox/Was a bee/getLinkedName|getLinkedName|Q6258348}}</nowiki>
  • Output
  • Case 3: Sitelink doesn't exist but label exists

    Input<nowiki>{{#invoke:Sandbox/Was a bee/getLinkedName|getLinkedName|Q23366230}}</nowiki>
  • Output
  • Case 4: Both sitelink and label doesn't exist

    Input<nowiki>{{#invoke:Sandbox/Was a bee/getLinkedName|getLinkedName|Q11485627}}</nowiki>
  • Output
  • Parameters

    alias

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

    Input<nowiki>{{#invoke:Sandbox/Was a bee/getLinkedName|getLinkedName|Q30}}</nowiki>

    <nowiki>{{#invoke:Sandbox/Was a bee/getLinkedName|getLinkedName|Q30|alias=US}}</nowiki>

    Output