Editing Module:Sandbox/User:The Gaffer/Modules/Infobox Recipe

Revision as of 16:10, 14 November 2024 by The Gaffer (talk | contribs) (Created page with "-- Lua module to replicate the functionality of the Infobox Recipe template local p = {} function p._main(frame) local args = frame.args local mw = require('mw') -- Define raw material costs based on Semantic MediaWiki queries local rawmat1cost = args.rawmat1 and mw.smw.ask('+Sold item::' .. args.rawmat1 .. '|?Shop buy price|sort=Shop buy price|order=asc|limit=1') or "0" local rawmat2cost = args.rawmat2 and mw.smw.ask('+[[Sold item::'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)
Jump to navigation Jump to search
Warning: You are editing an out-of-date revision of this page. If you publish it, any changes made since this revision will be lost.
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.
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see Brighter Shores:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template