Module:Citation/CS1: Difference between revisions
Jump to navigation
Jump to search
Infobox>Uncle G Started module. |
Infobox>Uncle G Expanded SFNID function. |
||
Line 6: | Line 6: | ||
-- This is used by templates such as {{SfnRef}} to create the (encoded) anchor name for a Harvard cross-reference hyperlink. | -- This is used by templates such as {{SfnRef}} to create the (encoded) anchor name for a Harvard cross-reference hyperlink. | ||
function p.SFNID() | function p.SFNID() | ||
return "CITEREF" | local pframe = frame:getParent() | ||
local P1 = pframe.args[1] or "" | |||
local P2 = pframe.args[2] or "" | |||
local P3 = pframe.args[3] or "" | |||
local P4 = pframe.args[4] or "" | |||
local P5 = pframe.args[4] or "" | |||
return "CITEREF" .. P1 .. P2 .. P3 .. P4 .. P5 | |||
end | end | ||
return p | return p |
Revision as of 11:13, 25 August 2012
Documentation for this module may be created at Module:Citation/CS1/doc
local p = {}
-- This is used by templates such as {{Harvard citation}} to create the Harvard footnote.
function p.Harvard()
return "PLACEHOLDER"
end
-- This is used by templates such as {{SfnRef}} to create the (encoded) anchor name for a Harvard cross-reference hyperlink.
function p.SFNID()
local pframe = frame:getParent()
local P1 = pframe.args[1] or ""
local P2 = pframe.args[2] or ""
local P3 = pframe.args[3] or ""
local P4 = pframe.args[4] or ""
local P5 = pframe.args[4] or ""
return "CITEREF" .. P1 .. P2 .. P3 .. P4 .. P5
end
return p