448
edits
Welcome to the Lylat Wiki, all about the Star Fox series! If you'd like to help out, please take a look at our community portal.
(Created page with "local p = {} --p stands for package function p.prevnext(frame) -- A passthrough that gets args from the frame and all mArguments = require('Module:Arguments') args = mArguments.getArgs(frame) return p._prevnext(args) end function p._prevnext(args, options) if args["prev"] ~= nil then prev = "<-- " .. args["prev"] else prev = "First of the series" end if args["next"] ~= nil then next = args["next"] .. " -->" else next = "Last of the...") |
m (Making these arrows look a bit nicer with characters that aren't used for usual coding.) |
||
Line 10: | Line 10: | ||
function p._prevnext(args, options) | function p._prevnext(args, options) | ||
if args["prev"] ~= nil then | if args["prev"] ~= nil then | ||
prev = " | prev = "← " .. args["prev"] | ||
else | else | ||
prev = "First of the series" | prev = "First of the series" | ||
Line 16: | Line 16: | ||
if args["next"] ~= nil then | if args["next"] ~= nil then | ||
next = args["next"] .. " | next = args["next"] .. " →" | ||
else | else | ||
next = "Last of the series" | next = "Last of the series" |
edits