Difference between revisions of "Module:PrevNext"

m
Making these arrows look a bit nicer with characters that aren't used for usual coding.
(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 = "<-- " .. args["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"
448

edits