Editing Module:BSW/MainPage
From the only original and legitimate Battlestar Wiki: the free-as-in-beer, non-corporate, open-content encyclopedia, analytical reference, and episode guide on all things Battlestar Galactica. Accept neither subpar substitutes nor subpar clones.
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 217: | Line 217: | ||
function p.photolab( frame ) | function p.photolab( frame ) | ||
local args = frame.args | local args = frame.args | ||
local content = | local content = args.content or '' | ||
local prev_url = mw.text.trim( args.prev_url or '' ) | local prev_url = mw.text.trim( args.prev_url or '' ) | ||
local prev_lbl = mw.text.trim( args.prev_label or '‹' ) | local prev_lbl = mw.text.trim( args.prev_label or '‹' ) | ||
local caption = mw.text.trim( args.caption or '' ) | |||
local next_url = mw.text.trim( args.next_url or '' ) | local next_url = mw.text.trim( args.next_url or '' ) | ||
local next_lbl = mw.text.trim( args.next_label or '›' ) | local next_lbl = mw.text.trim( args.next_label or '›' ) | ||
-- Hide if today's PotD subpage doesn't exist yet | -- Hide if today's PotD subpage doesn't exist yet | ||
if isRedlink( content ) then return '' end | if isRedlink( content ) then return '' end | ||
local hd = | local hd = | ||
| Line 263: | Line 238: | ||
'<div class="bsw-photo-nav">' .. | '<div class="bsw-photo-nav">' .. | ||
prev_link .. | prev_link .. | ||
'<span class="bsw-photo-caption">' .. caption .. '</span>' .. | '<span class="bsw-photo-caption">' .. e(caption) .. '</span>' .. | ||
next_link .. | next_link .. | ||
'</div>' | '</div>' | ||
return '<div class="bsw-card">' .. hd .. | return '<div class="bsw-card">' .. hd .. content .. nav .. '</div>' | ||
end | end | ||