Module talk:Footnotes: Difference between revisions

Content deleted Content added
Line 146:
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 11:14, 22 June 2018 (UTC)
::Nice, thank you. [[Special:Contributions/72.43.99.138|72.43.99.138]] ([[User talk:72.43.99.138|talk]]) 15:43, 23 June 2018 (UTC)
 
== consolidating and abandoning [[Template:Harvard citation/core]] ==
 
[[Module:Footnotes]] has, at present, these functions:
:<code>harvard_core()</code> – support for {{tlx|harvcol}}, {{tlx|harvcolnb}}, {{tlx|harvcoltxt}}, {{tlx|harvtxt}}, {{tlx|Harvp}} via a call through {{tlx|Harvard citation/core}}
:<code>harvard_citation()</code> – support for {{tlx|harv}}
:<code>harvard_citation_no_bracket()</code> – support for {{tlx|harvnb}}
:<code>sfn()</code> – support for {{tlx|sfn}} and {{tlx|sfnp}}
The separate function <code>sfn()</code> is required because it is notably different in functionality from the others. All the rest can be combined to use a common function. As part of that, there is no need for the call to {{tld|Harvard citation/core}}. In [[Module:footnotes/sandbox]], and the associated template sandboxen, I have created a common function <code>harvard_citation()</code> and removed the now unused code. The 'core' part of these templates, the creation and rendering of the author-date is not changed. What has changed is the method for specifying bracket and page separator used by the various templates. Here are the modified template sandboxen compared to the current live versions of the same templates:
 
;{{tlx|harv}}
:{{Harvard citation|Blue|Blanc|Rouge|1794|p=5}} – live
:{{Harvard citation/sandbox|Blue|Blanc|Rouge|1794|p=5}} – /sandbox
;{{tlx|harvnb}}
:{{Harvard citation no brackets|Blue|Blanc|Rouge|1794|p=5}} – live
:{{Harvard citation no brackets/sandbox|Blue|Blanc|Rouge|1794|p=5}} – /sandbox
 
 
these use {{tlx|Harvard citation/core}}:
;{{tlx|harvcol}}
:{{Harvcol|Blue|Blanc|Rouge|1794|p=5}} – live
:{{Harvcol/sandbox|Blue|Blanc|Rouge|1794|p=5}} – /sandbox
;{{tlx|harvcolnb}}
:{{Harvcolnb|Blue|Blanc|Rouge|1794|p=5}} – live
:{{Harvcolnb/sandbox|Blue|Blanc|Rouge|1794|p=5}} – /sandbox
;{{tlx|harvcoltxt}}
:{{Harvcoltxt|Blue|Blanc|Rouge|1794|p=5}} – live
:{{Harvcoltxt/sandbox|Blue|Blanc|Rouge|1794|p=5}} – /sandbox
;{{tlx|Harvard citation text}}
:{{Harvard citation text|Blue|Blanc|Rouge|1794|p=5}} – live
:{{Harvard citation text/sandbox|Blue|Blanc|Rouge|1794|p=5}} – /sandbox
;{{tlx|Harvp}}
:{{Harvp|Blue|Blanc|Rouge|1794|p=5}} – live
:{{Harvp/sandbox|Blue|Blanc|Rouge|1794|p=5}} – /sandbox
 
And the sfn templates:
;{{tlx|sfn}}
:live {{sfn|Blue|Blanc|Rouge|1794|p=5}}
:sandbox {{sfn/sandbox|Blue|Blanc|Rouge|1795|p=5}}
;{{tlx|sfnp}}
:live {{sfnp|Blue|Blanc|Rouge|1796|p=5}}
:sandbox {{sfnp/sandbox|Blue|Blanc|Rouge|1797|p=5}}
{{reflist-talk}}
In the sfn templates above, different years are used so that there are four different renderings (brackets are not made part of the FOOTNOTES identifier).
 
I think I've got all of the harv templates did I miss any?
 
If there are no objections, I shall update the live module and templates. When I do that, there will likely be temporary script errors because it is not possible to simultaneously update the module and all of the templates. At the end of this, I think that {{tld|Harvard citation/core}} can be deleted.
 
—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 15:55, 8 August 2018 (UTC)