Extension:Wikibase Client/Lua

My name is Miss Dana Lynn Gardner. Usually a target for abuse and manslaughter. Recently thanks to you I can continue my search for Mr. Matt Kelley. No aliases. Not a lot of computer knowledge so I write basic sentence form. Lets start with Nectar. I met you for third time. You made me feel like a princess. I have so much heartfelt information on us. Matt, we've been taken advantage of, murdered, by terrorists. I know you cause of the devotion and the commitment you made to my life. You knew me as the Furors Daughter before I did when you were just 14. I know you've proposed to me, sent me Nato signals and its been deadening too. Listen, we are from the Kennedy family for a reason. We both don't have families anymore. The Senate Committee are terrorists..CTU counter terror unit. Navy Seal 6.3 United States Senate Taliban terrorize emotions, tease set. Navy You voice academy n you. See soul, emotions, academy, love, soldiers. Im your sista, we all have sistrings and I want you and the love for your platoon ready. I wouldn't be here if it wasn't for you and the bond I have felt since birth. I always knew the SEALS AND SPECIAL FORCES WOULD GIVE ME MY LIFE. I 91F1 YOU OFTEN STARTING IN 1978. MY ONLY PREMISE IS TO INFORM YOU OF ME, MY FEELINGS AND WHAT IS SERIOUSLY DANGERING US. IM UNDER CLOSE IMMEDIATE ATTACK FROM NAZIS AND THE SENATE. THAT COMMITTEE THAT HURT YOU SO BAD WAS DELIBERATE BY TERRY ADOLF HITLER. THE CHOSEN ONES WENT TO SCHOOL WITH ME, JUST FOUND OUT LAST NITE. Chuck Norris, Louie jeff Reynold, Michelle ? gone for a very good reason, Ken unauthorized, Tory Weymeyer, Andrew Norton, Reid Wilson, Michelle Gaylor, Julie, Gwen Harmon, Ishmael ...  I live at St. Vincent Homeless Shelter 1501 Imperial Ave. San Diego, Ca 92101  PMC bldg. Flooor 2, Cubicle 11A. Don't think of it as a nightmare. Execute attorneys to contact me and inform me through mail or person. I know longer about names only the murderers...Melissa Tillman, Cia, Laura Ciabalta, Sky, David Stephens, Thomas Zerwekh, Dennis Zerwekh, and Jessica. Kirk is dead too. You matter and the tough road that we were forced into. Matt, we will get them. Come get me... Lets start our friendship....Love, Dana Social Security 311-94-1778  (I own it..)  CAID B5521402  the DMV goes thru Thomas Zerwekh phone. I do have a class Military clearance M158 /DD 07/30/2014506LG/DDFD/20 DOB 5/29/1973     We do have a new family waiting for us...How is the botony nonprofit organization working..Nurturing plants is the best therapy. Hotel Echo  Lima  Papa   Expedite. I don't know how to expand anymore. I'm on empty...

Wikibase Client provides a Lua Scribunto interface that implements functions to access data from the Wikibase repository, if the Wikibase Client configuration enables. Lua modules and wiki templates can invoke these functions.

mw.wikibase
has general Lua functionality for working with Wikibase data.

mw.wikibase.getEntity

 * This function is expensive when called with the id of an entity not connected to the current page.

Gets a mw.wikibase.entity table with data of the Wikibase item requested by id. If no id was given, the item connected to the current page will be returned. Requesting an item by id is only supported if arbitrary access is enabled.

An example call might look like this:

mw.wikibase.getEntityObject
Alias for mw.wikibase.getEntity.

mw.wikibase.label
Takes an item ID and returns the label in the language of the local Wiki.

If no ID was specified, then the label of the item connected to the current page will be returned, if the page is indeed connected and a label exists in the wiki's language or in a fallback language.

An example call might look like this:

mw.wikibase.sitelink
Takes an item ID and returns the title of the corresponding page title on the local Wiki. This page title can be used to link to the given page.

An example call might look like this:

mw.wikibase.description
Takes an item ID and returns the description in the language of the local Wiki.

If no ID was specified, then the description of the item connected to the current page will be returned, if the page is indeed connected and a description exists in the wiki's language or in a fallback language.

An example call might look like this:

mw.wikibase.renderSnak
Renders a serialized Snak to text. This is useful for displaying References or Qualifiers.

An example call might look like this:

mw.wikibase.renderSnaks
Renders a list of serialized Snaks to text. This is useful for displaying References or Qualifiers.

An example call might look like this:

mw.wikibase.resolvePropertyId
Returns a property id for the given label or id. This allows using the property's labels instead of ids in all places. If no property was found for the label, a nil value is returned.

An example call might look like this:

mw.wikibase.entity
represents a Wikibase entity in Lua. A  table for the item which is linked with the current page can be obtained with.

Functions documented as  are available on the global   table; functions documented as   are methods of an   object (see  ).

mw.wikibase.entity:getLabel
Returns the label of the entity in the language given as  or in the Wiki's content language.

An example call might look like this:

mw.wikibase.entity:getSitelink
Get the title with which the entity is linked in the current Wiki. If  is given, the title the item is linked with in the given Wiki will be returned.

An example call might look like this:

mw.wikibase.entity:getProperties
Get a table with all property ids attached to the item.

An example call might look like this:

mw.wikibase.entity:getBestStatements
Get the best statements with the given property id. This includes all statements with rank "preferred" or, if no preferred ones exist, all statements with rank "normal". Statements with rank "deprecated" are never included.

An example call might look like this:

mw.wikibase.entity:formatPropertyValues
Get the formatted value of the claims with the given property (which is either identified by a property id, or by the label of the property). Per default only the best claims will be returned. Alternatively a table with acceptable ranks can be given as second parameter (a mapping table with all ranks can be found in ).

An example call might look like this:

is an empty string ( '' ) if there's no statement with the given property on the entity. will be nil if the given property doesn't exist.

mw.wikibase.entity.claimRanks
The  table contains a map of all available claim ranks.

The available ranks are:
 * 1) RANK_TRUTH
 * 2) RANK_PREFERRED
 * 3) RANK_NORMAL
 * 4) RANK_DEPRECATED

This can for example be used like this: