Modifica di
Modulo:WikidataIB/doc
(sezione)
Vai alla navigazione
Vai alla ricerca
Attenzione:
non hai effettuato l'accesso. Se effettuerai delle modifiche il tuo indirizzo IP sarà visibile pubblicamente. Se
accedi
o
crei un'utenza
, le tue modifiche saranno attribuite al tuo nome utente, insieme ad altri benefici.
Controllo anti-spam.
NON
riempirlo!
===Utilities functions=== # <code>getLink</code> if there is a sitelink to an article on the local Wiki, it returns a link to the article with the Wikidata label as the displayed text. If there is no sitelink, it returns the label as plain text. If there is no label in the local language, it returns the entity-ID # <code>getAT</code> (Article Title) If there is a sitelink to an article on the local Wiki, it returns the sitelink as plain text, otherwise nothing # <code>getSiteLink</code> gets the plain text link to an article on a given wiki # <code>getLabel</code> returns the Wikidata label for the local language as plain text. If there is no label in the local language, it returns the entity-ID # <code>getAllLabels</code> fetches the set of labels and formats it for display as wikitext # <code>labelorid</code> returns the label with all wikitext removed, or the entity-ID if no label # <code>getDescription</code> returns the article description for the Wikidata entity if the local parameter is "Wikidata". # <code>getAllDescriptions</code> fetches the set of descriptions and formats it for display as wikitext # <code>getAliases</code> returns the aliases for the entity in the current or given language # <code>getAllAliases</code> fetches the set of aliases and formats it for display as wikitext # <code>pageId</code> returns the connected Wikidata page id (entity-ID, Q-number) of the current page # <code>formatDate</code> takes a datetime of the usual format from mw.wikibase.entity:formatPropertyValues and formats it according to the df (date format) and bc parameters # <code>formatNumber</code> formats a number according to the supplied language code # <code>checkBlacklist</code> returns true if the field is ''not'' blacklisted (i.e. allowed) # <code>emptyor</code> returns nil if the parameter is just punctuation, whitespace or html tags, otherwise returns the argument unchanged # <code>getLang</code> returns the MediaWiki language code or the full language name of the current content # <code>getItemLangCode</code> looks for country (P17), then for that country's official language (P37), and returns its language code (P424) # <code>findLanguage</code> returns (1) supplied language if valid; or (2) the user's set language; or (3) the language of the current wiki # <code>getQid</code> returns (1) the entity-ID, if supplied; or (2) the entity ID of the "category's main topic (P301)"; or (3) the entity ID associated with the current page; or (4) nothing # <code>followQid</code> given a list of properties, looks for each property in turn and returns the entity-ID of the first value that matches (optionally, returns all entity-IDs that match) # <code>getGlobe</code> returns the entity-ID of the globe used in P625 (coordinate location), or nil if there isn't one # <code>getCommonsLink</code> returns one of the following in order of preference: the Commons sitelink of the linked Wikidata item; the Commons sitelink of the topic's main category of the linked Wikidata item; # <code>siteID</code> returns the root of the globalSiteID, e.g. "en" for "enwiki", "enwikisource", "en-gb", etc. # <code>projID</code> same as siteID # <code>location</code> scans from the current location upwards along the chain of higher-level locations, returning each one until it reaches a country # <code>examine</code> returns a formatted dump of the given property # <code>url2</code> takes a parameter that is a proper url and formats it for use in an infobox; it accepts its own output as input # <code>getWebsite</code> fetches the Official website (P856) and formats it for use in an infobox # <code>checkvalue</code> looks through a property for a given entity-ID as its value and returns that entity-ID if found; otherwise nil # <code>checkValidity</code> returns whether the first unnamed parameter represents a valid entity-id # <code>showNoLinks</code> displays the article titles that should not be linked
Oggetto:
Per favore tieni presente che tutti i contributi a Tematiche di genere si considerano pubblicati nei termini d'uso della licenza Creative Commons Attribuzione-Condividi allo stesso modo (vedi
Tematiche di genere:Copyright
per maggiori dettagli). Se non desideri che i tuoi testi possano essere modificati e ridistribuiti da chiunque senza alcuna limitazione, non inviarli qui.
Inviando il testo dichiari inoltre, sotto tua responsabilità, che è stato scritto da te personalmente oppure è stato copiato da una fonte di pubblico dominio o similarmente libera.
Non inviare materiale protetto da copyright senza autorizzazione!
Annulla
Guida
(si apre in una nuova finestra)
Menu di navigazione
Strumenti personali
Accesso non effettuato
discussioni
contributi
entra
Namespace
Modulo
Discussione
italiano
Visite
Leggi
Modifica sorgente
Cronologia
Altro
Navigazione
Pagina principale
Ultime modifiche
Categorie
Principali Categorie
Pagine orfane
Pagine prive di categorie
Semantic Ask
Una pagina a caso
Aiuto su MediaWiki
Modifica Sidebar
Strumenti
Puntano qui
Modifiche correlate
Carica un file
Pagine speciali
Informazioni pagina