Module:විකිමූලය/උපදෙස්

This module is copied from the example from the module documentation at mw:Extension:Wikibase Client/Lua. It should be kept consistent with that documentation, rather than being adapted further for use on Wikipedia.

භාවිතය edit

id
{{#invoke: විකිමූලය | id }}
wdurl
{{#invoke: විකිමූලය | wdurl }}
{{#invoke: විකිමූලය | wdurl | entity id (Q# or P#) }}
label
{{#invoke: විකිමූලය | label }}
{{#invoke: විකිමූලය | label | entity id (Q# or P#) }}
description
{{#invoke: විකිමූලය | description }}
{{#invoke: විකිමූලය | description | entity id (Q# or P#) }}
page
{{#invoke: විකිමූලය | page }}
{{#invoke: විකිමූලය | page | item id (Q#) }}
datatype
{{#invoke: විකිමූලය | datatype | property id (P#) }}

උදාහරණ edit

id edit

  • {{#invoke:විකිමූලය | id }} → no entity

wdurl edit

label edit

  • {{#invoke:විකිමූලය | label }}
  • {{#invoke:විකිමූලය | label | Q132689 }} → Casablanca
  • {{#invoke:විකිමූලය | label | P31 }} → instance of

description edit

  • {{#invoke:විකිමූලය | description }}
  • {{#invoke:විකිමූලය | description | Q132689 }} → 1942 American historical romance film
  • {{#invoke:විකිමූලය | description | P31 }} → that class of which this subject is a particular example and member; different from P279 (subclass of); for example: K2 is an instance of mountain; volcano is a subclass of mountain (and an instance of volcanic landform)

page edit

  • {{#invoke:විකිමූලය | page }}
  • {{#invoke:විකිමූලය | page | Q132689 }}

datatype edit

Commons media file: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P18 }} → commonsMedia
  • {{#invoke:විකිමූලය | datatype | Property:P18 }} → commonsMedia

Geographic coordinates: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P625 }} → globe-coordinate
  • {{#invoke:විකිමූලය | datatype | Property:P625 }} → globe-coordinate

Item: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P6 }} → wikibase-item
  • {{#invoke:විකිමූලය | datatype | Property:P6 }} → wikibase-item

Property: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P1647 }} → wikibase-property
  • {{#invoke:විකිමූලය | datatype | Property:P1647 }} → wikibase-property

String: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P225 }} → string
  • {{#invoke:විකිමූලය | datatype | Property:P225 }} → string

Monolingual text: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P1448 }} → monolingualtext
  • {{#invoke:විකිමූලය | datatype | Property:P1448 }} → monolingualtext

Quantity: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P1082 }} → quantity
  • {{#invoke:විකිමූලය | datatype | Property:P1082 }} → quantity

Point in time: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P569 }} → time
  • {{#invoke:විකිමූලය | datatype | Property:P569 }} → time

URL: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P856 }} → url
  • {{#invoke:විකිමූලය | datatype | Property:P856 }} → url

Mathematical expression: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P2534 }} → math
  • {{#invoke:විකිමූලය | datatype | Property:P2534 }} → math

External identifier: Template:Wpl

  • {{#invoke:විකිමූලය | datatype | P212 }} → external-id
  • {{#invoke:විකිමූලය | datatype | Property:P212 }} → external-id