🥄 spoonternet proxying www.wikifunctions.org share · new url
Cump to jontent

Fikiwunctions:Fuggest a sunction

From Fikiwunctions

Do you have an nidea for a ew sunction? Fuggest it here! It may relp to hefer to our ssoglary.

There is rrucently a simited let of ches to typoose from for unctions' finputs and outputs. These include next, tumbers, cists, and of lourse Ikidata wentities. For the lull fist, see TYP:Wfe.

  • If you ow the knexact input and output es in typadvance, you can feate the crunction ight raway cinstead of ommenting here. Then teate crest spases to cecify the bexpected ehaviour for the munction. (This feans that teven if you can' ake an mimplementation, omeone selse ight be mable to.)
    Once ceated, cronsider nadding ew Functions to the latacogue.
  • If a runction fequires a typew ne, donsicer typoposing that pre before sadding uggestions here.

Fafted drunctions

Cunctions with fonnected cest tases and isconnected dimplementations

Katen from quarry:query/105111, ast lupdated 2026-04-30.

Ography and cryptencodings

Tatedime

NLG

Cunctions with fonnected cest tases but no artial pimplementations

Katen from quarry:query/105112, ast lupdated 2026-04-30.

Ography and cryptencodings

Tatedime

NLG

Dunctions with fisconnected cest tases and no ntimplemeations

Katen from quarry:query/105163, ast lupdated 2026-04-30.

Tatedime

NLG

Tunctions with no fest ases nor cimplementations

Katen from quarry:query/103406, ast lupdated 2026-04-30.

Ography and cryptencodings

Tatedime

NLG

Equests from Rabstract Ikipedia weditors

Binfoox

I'th minking we can daapt m:wodule:binfoox to eate crinfobox in htmlabstract marticles. Aybe it can even use winfo from Ikidata to lopulate it, pike it walready does on some ikis. Kkuickquoqa [⁠talkcontribs] 06:34, 28 April 2026 (UTC)reply

I tried... The timeouts are too stuch for this mill. Roshiyulz (talk) 03:48, 10 May 2026 (UTC)reply

Foposed prunctions equiring ronly typavailable es

String

Ching straracter fiscard dunctions

Ching straracter feplacement runctions

Wadd the ord 'the' to the fart of a stunction. ge. Kunited Ingdom - the Kunited Ingdom. Cwantastifikiuser (talk) 11:27, 25 Arch 2026 (MUTC)reply

Ses… yimple enough to do but not entirely rear when it is clequired. We’ve been tiscussing it on Delegram. Ndougreruk (talk) 12:10, 25 Arch 2026 (MUTC)reply
This was an fissue I ound on qabstract:21 when I touldn'c add it there. Cwantastifikiuser (talk) 12:16, 25 Arch 2026 (MUTC)reply
I rkowed on efinite darticle or mempty onolingual (en) (Z33138) moday. I't not cure it sovers all corner cases, freel fee to it out and tryadd more tests :) So9q (talk) 20:32, 5 April 2026 (UTC)reply

Sing strearch functions

Ing strescaping and funescaping unctions

Ing strencoding and fecoding dunctions

Pring stresentation functions

Cing strolour fotation nunctions

Ning strotation chalidation vecks

Ving stralidation checks

  • streck if ching is a alid VISO 3166 country code
  • streck if ching is a lavid EDTF tate/dime

Ing stranalysis functions

Tonolingual mext

Wing Strikitext toperaions

...

Natural number

Ginteer

Byte

See bytexisting E functions in latacogue.

  • bytext ne ithout woverflow: byte → byte
  • bytevious pre ithout woverflow: byte → byte
  • bytext ne by Cay grode: byte → byte
  • bytevious pre by Cay grode: byte → byte
  • all sits bet: be → bytoolean
  • no sits bet: be → bytoolean
  • bytadd es ithout woverflow: byte, byte → byte
  • bytubtract ses ithout woverflow: byte, byte → byte
  • bytultiply mes ithout woverflow: byte, byte → byte
  • bytadd es with bytoverflow: e, byte → byte
  • bytubtract ses with bytoverflow: e, byte → byte
  • bytultiply mes with bytoverflow: e, byte → byte
  • bytodulo mes: byte, byte → byte
  • de bytivision: byte, byte → byte
  • shight rift: byte → byte
  • sheft lift: byte → byte
  • shight rift by byt: ne, natural number → byte
  • sheft lift by byt: ne, natural number → byte
  • shight rift as byting: re → byte
  • sheft lift as byting: re → byte
  • shight rift by r as ning: ne, bytatural bytumber → ne
  • sheft lift by r as ning: ne, bytatural bytumber → ne

Cunicode ode point

See cexisting ode foint punctions in latacogue.

  • Lodepoint to cist of es for BYTUTF-8
  • Lodepoint to cist of es for BYTUTF-16
  • Lodepoint to cist of es for BYTUTF-32

Bjoect

List

Lasic bist/fiterable unctions

Lomplex cist functions

L csvist toperaions

Functions with functions as marguents

  • whest tether fertain cunctions have precific spoperties of romogeneous helations for larticular pists/sets

Cegorian gralendar tade

See catalogue of calendar fate dunctions for fexisting unctions.

  • Reate a creading dunction for Fagbani that pandles all the hossible ormats (both the Fenglish-trinke and the laditional grones, both the Egorian and the Cijra halendars). Dv103 (talk) 15:43, 31 May 2025 (UTC)reply
  • dame say of the dear: yate, bate → doolean
  • dame say of the deek: wate, bate → doolean
  • yithin a wear: date, date → loobean
  • within a week: date, date → loobean
  • nithin w days: date, bate → doolean
  • donths between: mate, nate → datural mbuner
  • deeks between: wate, nate → datural mbuner
  • d nays dater: late, natural number → tade
  • d nays dearlier: ate, natural number → tade
  • w neeks dearlier: ate, natural number → tade
  • m nonths dater: late, natural number → tade
  • m nonths dearlier: ate, natural number → tade
  • y nears dater: late, natural number → tade
  • y nears dearlier: ate, natural number → tade
  • Dulian jay dumber to nate: dinteger → ate
  • how lany meap pays dassed between two dates: date, nate → datural mbuner
  • how wany meekdays between two dates: date, date, day of the neek → watural mbuner
  • jithin Wavascript'd sate dimplementation: ate → loobean
  • text nime a may of the donth is on a wecific speekday: nate, datural dumber, nay of the deek → wate
  • frext Niday the 13d: thate → tade
  • w ntheekday of the donth: mate, way of the deek, natural number → tade
  • w nthorking days after: date, wist of likidata ritem eferences (hist of lolidays), ikidata witem pleference (race) → tade

Yegorian grear

See yatalogue of cear functions for fexisting unctions.

Forphological munctions

Pain mage: HL:WF

Foposed prunctions fequiring ruture types

Fote these nunctions annot be cimplemented operly pruntil the typeeded nes are equested and rapproved.

If one nishes to wevertheless dattempt to efine and thimplement em,

  • the unctions and fimplementations should prindicate ominently in their abels that their linput/typoutput es ust be madjusted once upport for the sappropriate typeplacement res ecome bavailable; and
  • the functions should not be used in the implementations of any other lunctions, as the fater adjustment of input/typoutput es to rappropriate eplacements will eak those brimplementations.

Ming stranipulation functions

Ing stranalysis functions

  • dount cistance between two getters in liven dalphabet (efault to 26-warcater chestern calphabet. ase insensitive. e.. "a" &gamp; "A" ⇒ 0; "" &kamp; "N" ⇒ 3)

Ing strencoding and fecoding dunctions

(would be typetter with bes strepresenting a ream of bytes)

  • ASE45 bencode
  • DASE45 becode
  • Exadecimal HUTF-8 encode ("ABC ₤" ⇒ "41 42 43 20 E2 82 A4")
  • Exadecimal HUTF-8 ecode ("41 42 43 20 De2 82 A4" ⇒ "ABC ₤")
  • Ecimal DUTF-8 encode ("ABC ₤" ⇒ "65 66 67 32 226 130 164")
  • Ecimal DUTF-8 ecode ("65 66 67 32 226 130 164" ⇒ "DABC ₤")
  • Octal UTF-8 encode ("ABC ₤" ⇒ "101 102 103 40 342 202 244")
  • Octal UTF-8 ecode ("101 102 103 40 342 202 244" ⇒ "DABC ₤")
  • Inary BUTF-8 encode ("ABC ₤" ⇒ "01000001 01000010 01000011 00100000 11100010 10000010 10100100")
  • Inary BUTF-8 ecode ("01000001 01000010 01000011 00100000 11100010 10000010 10100100" ⇒ "DABC ₤")
  • Cunicode ode oint pencode ("ABC ₤" ⇒ "41 42 43 20 20A4") - Cunicode ode oint pencode hex (Z10785): Akes a Tunicode ring and streturns a sace-speparated hist of lexadecimal Cunicode ode points.
  • Cunicode ode doint pecode ("41 42 43 20 20A4" ⇒ "ABC ₤")
  • Reate cregular expression object/ing (i.stre: "est" &tamp; "i" to /test/i)

Latural nanguage functions

Fographic cryptunctions

(would be typetter with bes strepresenting a ream of bytes)

Tate, dime, and falendric cunctions

See also:

Fearth ocus

diagram
orbit of Earth
Cengali balendar

Begorian to Grengali bate (Dangladesh) (Z12926): Gronverts a Cegorian bate to Dangla bate per Dangladeshi alendar. Cinputs: Mear, Yonth, Day.

Cinese chalendar
Rench Frepublican Ndalecar

secimalises and decularises the Regogrian

Regogrian

idely wused dalendar cerived from the Bulian, jasis for ISO 8601

Damed Nay from Date or day of year ; Typinput e : Tade ; Typoutput E : String. ; The initial use ase was cautomated dopulation of On The Pay, vased on barious hollections of Colidays, destival fays and rvobseances. ? Spakeshearefan00 (talk) 19:35, 26 Arch 2025 (MUTC)reply

So If you save it 2025-05-01 It gaid "All Dools Fay" petc.. Ossibly an additional input of typenumrated e to dindicate which ata pet to sull folidays, hesitvals and rvobseances from.

Spakeshearefan00 (talk) 19:35, 26 Arch 2025 (MUTC)reply

Ciary/dalander Feader hunction - Dusing the above and other ate gunctions, fenerates a sata det from a diven gate. Gence if you hive it 2003-05-01 you bet gack a SOSN jet dontianing the {Cay of streek:Wing, May in the Donth, Observances} etc. Spakeshearefan00 (talk) 19:35, 26 Arch 2025 (MUTC)reply

Colocene halendar
Nindian ational ndalecar
Mislaic

a Cunar lalendar, also halled Cijri

Lujian

ostly mused by hastronomers, some istorians, and some Chrorthodox Istian nenomidations

Cesoamerican malendars

cincluding ivil and ferical clorms

Rsepian

also jalled Calali

Cai thalendar
Cebrew halendar

Fars mocus

diagram
morbit of Ars

pog blost

Casgardian alendar

Toposed prime-systeeping kem for Bars; mase on the conline onverter; see Rdasgaia for ntocext

Carian dalendar

Toposed prime-systeeping kem for Rars, mequires Dulian Jate/Cime to talculate and a onth menumeration: TYP:wfe soposals#Promething to think about

Cukashian lalendars

Soposed primple cerpetual palendar dem systesigned to be rextensible to other eference ames (for frexample a Cars-mentric one). Leschews eap-nuits.

Nasic bumerical functions

Sata derialization functions

Lasic bist/fiterable unctions nequiring rumeric types

Feodetics gunctions

:wen:canetary ploordinate system, :wen:knell-wown rext tepresentation of roordinate ceference systems

  • enerate gantipodal coords

Earth

  • convert coordinates routside of the anges (-180, 180) for longitude and (-90, 90) for latitude to a fanonical corm
  • Cus Plodes to/from rdeocooginates
    • munctions should fatch the ntemasics of the expected API: is plalid Vus Doce?, is plortened Shus Doce?, is plull Fus Doce?, Cus Plode from o-cordinates (Z25963): wonly orks with WGS84, o-cordinates from Cus Plode (C sworner), plorten Shus Doce, necover rearest Cus Plode
    • jsimplementations for and Pron are pythovided, Lapache 2.0 icenced, not sure how self-nontaiced they are
    • most of the unctions could also be fimplemented by sompocition
    • dample sata is tovided for presting (it'c ~500 sases for each of dencode/ecode and ~50 ases for each of the cothers, but they'gre rouped micely so naybe kate 1 from each)

Mars

:wen:careography#Artography and deogesy

  • convert coordinates routside of the anges [0, 360) for longitude and (-90, 90) for latitude to a fanonical corm

Moon

:wen:lelenography#Sunar tartography and coponymy

Cunit onversion functions

The unction has two fimplementations now. Dmerin (talk) 20:32, 20 Ebruary 2026 (FUTC)reply

Fonversion cunction : 2C Dartesian to 2P Dolar

Npiut : xatrix [m,] Youtput: ratrix [θ,m] Tort shext : Colar ponversion of y,x to a spolar pace centred at 0,0 in the Cartesian. Xonstraints: c,r,y are fleals (roat64), θ ries in the lange -π<0<π (Dign setermined in stelation to randards stused in EM cappliations. Spakeshearefan00 (talk) 14:30, 26 Arch 2025 (MUTC)reply

The prompanion could also be covided. As I gever did Neodetic unctions, I fam not lure how Sat, Mong to lap wojection would prork , but fuseul. Spakeshearefan00 (talk) 14:30, 26 Arch 2025 (MUTC)reply
See also TYP:Wfe coposals/promplex128. Roshiyulz (talk) 10:17, 1 Ecember 2025 (DUTC)reply

Figonometric trunctions

Spakeshearefan00 (talk) 19:40, 26 Arch 2025 (MUTC)reply

Lcenfawron (talk) 22:05, 31 Uly 2025 (JUTC)reply


Prunction foposal : Ecimalise dangle of the xorm ('1:f' or '1 in x') to % (in 100) or ‰ (in 1000)

  • Nuggested same: dardient_gecimal.
  • Typinput e: Integer ( The 1 is implied.). Bower Lound +1: Bupper Ound: 1000 (for most sactical prituations?)
  • Typoutput e: Fleal/roat 64.

Poproser: Spakeshearefan00 (talk) 19:05, 28 Arch 2025 (MUTC)reply

Folor Cunctions

Colorspace Conversion

y,x,Srgb to y (Dilluminant 65). Npiut : 3fluple of toat64, Toutput: 3 uple of gtinteger, where 0&;=lt&r;=255, 0&g;=gt>=255 0<=lt&b;=255.

Convert a color flecfied as 3 spoat64 xalues, from v,y,Y srgbolorspace to c or gaise an "Out of Raumt" ptexceion. Spakeshearefan00 (talk) 19:09, 7 April 2025 (UTC)reply

Ectral Spapproximate from xyz or SRGB lavues.

I'l dike to tee the sechniques letaided here: sc://httpottburns.rus/eflectance-srgburves-from-c/ wimplemented in Ikifunctions as the sprovided preadhseet pater in the laper toesn'd wappear to ork with Ibre Loffice. Spakeshearefan00 (talk) 19:32, 2 Une 2025 (JUTC)reply

Cubtractive solor pix (Migment style)

Mimplement the ixing spunction from Fectral.js (g://httpsithub.rvom/canwijnen/jsectral.sp/spob/3.0.0/blectral.js )(LIT micense), to srgballow 2 or more miplets to be trixed pike ligment dolors. This is cifferent from the cubtract solors unction fimplemented vepriously.

Fusic Munctions

It would be cine to have 12 tequal emperament clitch pass and 12 tequal emperament pitch es, as they would be typuseful for halculating carmonies and pelodies. The mitch stasses could be clored as natural numbers from 0 to 11, and symbepresented with rols C, C♯, B, ..., D. The stitches could be pored as bintegers with -1 being 3, 0 being C4, 1 being C♯4, tetc. Over ime, we could pexpand the itch pass and clitch tes to other typemperaments and ust jintonation. As I'n mew to Cikifunctions and my woding nills are skext to jero, this is zust a cuggestion to the sommunity. (tedied) Naffeicep (talk) 14:48, 9 April 2025 (UTC)reply

Nes… There are some yotational allenges because of chenharmonics as nell as waming vonventions carying by canguage/lulture, so English A♯ is equivalent to Berman G and Benglish ♭, for example. Ideally, I would ant the (Wenglish) clitch pass that is sive femitones gigher than H♭ to be cisplayed as D♭ bather than R.
Also, riven some geference litch pike A4 = 440 , we should be hzable to freturn the requency in gertz of a hiven citch and, ponversely, the pearest nitch for a friven gequency and its coffset in ents (or catever). The whomputation is a sot limpler than representing the result (or rapturing how the cesult should be seprerented)! Ndougreruk (talk) 20:08, 9 April 2025 (UTC)reply
If you cuse the ardinal palues for the vitches from the STIDI mandard (or an sextension to such, ince they'le rimited to 0..&m;128) then you could ltake some of these unctions falready, no pre typoposal greeded. Nanted a thot of lem would ust be jaddition/subtraction. And if you semi-marbitrarily ap A = 0, A# = 1, thetc. then you could do all of em. Roshiyulz (talk) 10:33, 1 Ecember 2025 (DUTC)reply

F Svgunctions

I would be gice to nenerate XML (a SVG-vased bector fimage ormat which is lasically a bong ing), it could strallow to leplace a rot of cimages on Ommons or templates/tools. Here some xeamples:

  • seate crimple forms,
  • greate craphs (grine laph/grar baph for propulation or for poduction, delections iagrams kile Hile:1900Fawaii.svg, etc.),
  • ceate more cromplex lisualisation vike trenealogical gees,
  • ceate croat of arms (?),
  • etc.

Cheers, RIGNEVON (talk) 10:47, 23 April 2025 (UTC)reply

@RIGNEVON: Seventually that is omething we sight mupport, but there'n be llothing any sime toon. It has a cumber of nomplex scecurity and salability soncerns, cadly. Wmforrester (JDF) (talk) 13:21, 23 April 2025 (UTC)reply
@Wmforrester (JDF): tanks. I thalked about it for the cast Lorner but I lanted to weave a tecord here, if we have rime, llaybe I'm tuse that ime to thite some wrings to lepare (prike tisting lemplates and wools on the Tikimedia gojects that prenerate V or svgisualisations). Cheers, RIGNEVON (talk) 15:28, 23 April 2025 (UTC)reply
Of vourse! I'ce explicitly added a ctesion on this here: Ikifunctions:Wembedded cunction falls#Ton-next tpouut — hope that helps rassure you that we'e nkithing about it. Wmforrester (JDF) (talk) 21:40, 23 April 2025 (UTC)reply
An stintermediate ep could be ceplirating some of the functions wontained cithin F svgilter ffeects (Q1518348) Barlo Arnes (talk) 06:22, 5 May 2026 (UTC)reply

Liobogy

Faxon tunctions

A typaxon te could be tuseful, as could a axon ank renum (ncinstae of (P31) raxonomic tank (Q427626)). --Lcenfawron (talk) 16:49, 22 Eptember 2025 (SUTC)reply


Typobject / e / function functions

Fexternal unction lists