Title: Module:Hatnote inline - freem URL Source: https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline Markdown Content: From freem _Documentation for this module may be created at [Module:Hatnote inline/doc](https://freemwiki.com/index.php?title=Module:Hatnote\_inline/doc&action=edit&redlink=1 "Module:Hatnote inline/doc (page does not exist)")_ [](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-1)--------------------------------------------------------------------------------[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-2)-- Module:Hatnote-inline --[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-3)-- --[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-4)-- This module produces hatnote-style links, and links to related articles, --[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-5)-- but inside a , instead of the
used by Module:Hatnote. It --[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-6)-- implements the {{[hatnote-inline](https://freemwiki.com/wiki/Template:Hatnote-inline "Template:Hatnote-inline")}} meta-template. --[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-7)--------------------------------------------------------------------------------[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-8)[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-9)local mHatnote = require(['Module:Hatnote'](https://freemwiki.com/wiki/Module:Hatnote))[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-10)local mArguments = require(['Module:Arguments'](https://freemwiki.com/wiki/Module:Arguments))[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-11)local yesno = require(['Module:Yesno'](https://freemwiki.com/wiki/Module:Yesno))[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-12)local p = {}[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-13)[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-14)function p.hatnoteInline (frame)[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-15)local args = mArguments.getArgs(frame)[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-16)local hatnote = mHatnote.hatnote(frame:newChild{title="Module:Hatnote inline", args = args})[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-17)if args.inline == nil or yesno(args.inline, true) then[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-18)local subs = {[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-19)['$'] = ''[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-21)}[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-22)for k, v in pairs(subs) do hatnote = string.gsub(hatnote, k, v, 1) end[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-23)end[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-24)return hatnote[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-25)end[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-26)[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-27)p.hatnote = p.hatnoteInline --alias[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-28)[](https://freemwiki.com/index.php?oldid=579834&title=Module%3AHatnote_inline#L-29)return p