Module:Mountain table cell and Module:Mountain table cell/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
call to cite peakware instead |
create sandbox module |
||
Line 48: | Line 48: | ||
local rnd = require('Module:Math')._round |
local rnd = require('Module:Math')._round |
||
local vo = tonumber(args['vo']) |
local vo = tonumber(args['vo']) |
||
vo = (vo > 0 and '+' or '') |
vo = (vo > 0 and '+' or '') .. ' m (' .. rnd(vo / 0.3048, 1) .. ' ft)' |
||
table.insert(notes, {'G', 'The summit elevation of ' .. n .. ' includes a vertical offset of ' .. vo .. ' from the station benchmark.'}) |
table.insert(notes, {'G', 'The summit elevation of ' .. n .. ' includes a vertical offset of ' .. vo .. ' from the station benchmark.'}) |
||
end |
end |
||
Line 54: | Line 54: | ||
local rnd = require('Module:Math')._round |
local rnd = require('Module:Math')._round |
||
local va = tonumber(args['va']) |
local va = tonumber(args['va']) |
||
va = (va > 0 and '+' or '') |
va = (va > 0 and '+' or '') .. ' m (' .. rnd(va / 0.3048, 2) .. ' ft)' |
||
table.insert(notes, {'H', 'The elevation of ' .. n .. ' includes an adjustment of ' .. va .. ' from [[NGVD 29|NGVD 29]] to [[NAVD 88|NAVD 88]].'}) |
table.insert(notes, {'H', 'The elevation of ' .. n .. ' includes an adjustment of ' .. va .. ' from [[NGVD 29|NGVD 29]] to [[NAVD 88|NAVD 88]].'}) |
||
end |
end |
||
Line 74: | Line 74: | ||
end |
end |
||
if args['pw'] and args['nor'] == nil then |
if args['pw'] and args['nor'] == nil then |
||
local r = frame:expandTemplate{ title = 'cite |
local r = frame:expandTemplate{ title = 'cite web', args = { |
||
title = args['name'] or args[1], |
title = args['name'] or args[1], |
||
url = 'http://www.peakware.com/peaks.html?pk=' .. args['pw'], |
|||
website = 'Peakware.com', |
|||
accessdate = args['date'] } } |
accessdate = args['date'] } } |
||
table.insert(refs, {'K', r}) |
table.insert(refs, {'K', r}) |