Home
Random
Log in
Settings
About ARC Technical Repository
Disclaimers
Search
Editing
Module
:
Wikt
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
require('strict') local p = {} --p stands for package local getArgs = require('Module:Arguments').getArgs local yesno = require('Module:Yesno') local error_message = require('Module:Error')['error'] function p._wikt(args) local link = args.link or args[1] if not link then return error_message({message = '[[Module:Wikt]] error: no link provided'}) end local text = args.text or args[2] or link local anchor = args.anchor or args[3] local gray = yesno(args.gray or false) if gray then text = tostring(mw.html.create('span'):css({['color'] = 'dimgray'}):wikitext(text)) end if anchor then anchor = mw.uri.anchorEncode(anchor) end return '[[' .. mw.title.makeTitle('', link, anchor, 'wikt').fullText .. '|' .. text .. ']]' end function p.wikt(frame) return p._wikt(getArgs(frame)) end return p
Summary:
Please note that all contributions to ARC Technical Repository may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TechRepo:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Page included on this page:
Module:Wikt/doc
(
edit
)