Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

Module:IPA symbol

From Wikibooks, open books for an open world
Module documentation[create] [purge]
You might want tocreate a documentation page for thisScribunto module.
Editors can experiment in this module's sandbox(create |mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this module.
localp,__output,args,data={},{},{},mw.loadData("Module:IPA symbol/data")localid,output__output.name=function()returndata.correspondences[id]["name"]end__output.wikipage=function()returndata.correspondences[id]["wikipage"]end__output.soundfile=function()returndata.correspondences[id]["soundfile"]end__output.type=function()returndata.correspondences[id]["type"]endlocalfunctionhtml_error(message)ifargs[2]thenreturnargs[2]elsereturnmw.ustring.format('<strong>Error using {{[[Template:IPA symbol|IPA symbol]]}}: %s%s</strong>',message,mw.title.getCurrentTitle().isContentPageand("[[Category:International Phonetic Alphabet pages needing attention|"..(args[1]or"").."]]")or"")endendfunctionp.main(frame)-- all input is trimmed; accepted parameters are:--   name              description--   ====              ===========--   (1)               the input--   (2)               overwrite the error message--   (3)               overwrite the output when input is empty--   output            the output, one of: input; name; wikipage; soundfile; typefork,vinpairs(frame:getParent().args)doargs[k]=vandmw.text.trim(v)endargs.output=args.outputor'wikipage'ifnotargs[1]orargs[1]==""thenreturnargs[3]or""endid=data.symbols[args[1]]ifnotidthenreturnhtml_error('"'..args[1]..'" not found in list')endreturn__output[args.output]and__output[args.output]()orhtml_error("No such output option")endreturnp
Retrieved from "https://en.wikibooks.org/w/index.php?title=Module:IPA_symbol&oldid=3046529"

[8]ページ先頭

©2009-2025 Movatter.jp