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 40: | Line 40: | ||
a('onclick', onclick) .. | a('onclick', onclick) .. | ||
'>' .. (label or '') .. '</span>' | '>' .. (label or '') .. '</span>' | ||
end | end | ||
| Line 185: | Line 164: | ||
local lurl = mw.text.trim( args.linkurl or '' ) | local lurl = mw.text.trim( args.linkurl or '' ) | ||
local content = args.content or '' | local content = args.content or '' | ||
return '<div class="bsw-card">' .. | return '<div class="bsw-card">' .. | ||
| Line 217: | Line 193: | ||
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 '›' ) | ||
local hd = | local hd = | ||
| Line 263: | Line 211: | ||
'<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 | ||