Module:BibleQuote: Difference between revisions
no edit summary
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) No edit summary |
||
Line 36: | Line 36: | ||
function p._main( args ) | function p._main( args ) | ||
if (in_table(args.version, VERSIONS_AVAILABLE)) then | if (in_table(args.version, VERSIONS_AVAILABLE)) then | ||
return "<span class=\"bibleQuoteRef\" | return "<span class=\"bibleQuoteRef\" data-ref=\"" .. args.ref .. "\" data-version=\"" .. args.version .. "\">" .. args.ref .. "</span>" | ||
else | else | ||
return "<span style=\"color:red;\" | return "<span data-ref=\"" .. args.ref .. "\" data-version=\"" .. args.version .. "\">" .. args.ref .. "</span><sup style=\"color:red;\" title=\"The Bible version '" .. args.version .. "' is not supported by the BibleGet endpoint.\">[!]</sup>" | ||
end | end | ||