Module talk:Footnotes/anchor id list: Difference between revisions

Content deleted Content added
rm cite LSA section; template being deleted
ce
 
(One intermediate revision by the same user not shown)
Line 5:
There has always been a problem with the {{tlx|harv}} and {{tlx|sfn}} families of templates: except that every link that is created by these templates is tested at creation, editors don't know if the link works. A remedy for that has been user-scripts like [[User:Ucucha/HarvErrors]]. But, not all editors use that script so broken harv links can go undetected for a long time. At the moment, there is [[Wikipedia:Bots/Requests_for_approval/AntiCompositeBot|prospective bot]] that would mark broken-link harv templates by adding {{tlx|broken footnote}} after the broken-link harv template.
 
I have another possible solution. I have created a [[Module:Sandbox/trappist the monk/harv link test|lua module]] that extracts reference linking data from cs1|2 and vcite templates. I have modified [[Module:Footnotes/sandbox]] to use the extracted data to determine if:
:the harv template does not have a matching citation template
:more than one citation template matches the harv template
Line 511:
|-
| <code><nowiki>{{Cite book |date={{ISOtoMOS|2020-03-05}} |last=Gray |last2=White |title=Title |ref=harv}}</nowiki></code> || {{Cite book |date={{ISOtoMOS|2020-03-05}} |last=Gray |last2=White |title=Title |ref=harv}}
|}
 
== vcite templates ==
 
{| class="wikitable" width="100%"
|+vcite templates
!template !! rendering
|-
| <code><nowiki>{{Harvard citation no brackets/sandbox|White|Black|2020|ref=WhiteBlack2020}}</nowiki></code> || {{Harvard citation no brackets/sandbox|White|Black|2020|ref=WhiteBlack2020}}
|-
| <code><nowiki>{{Harvard citation no brackets/sandbox|White|Brown|2020}}</nowiki></code> || {{Harvard citation no brackets/sandbox|White|Brown|2020}}
|-
| <code><nowiki>{{Harvard citation no brackets/sandbox|White|Red|2020|ref=WhiteRed2020}}</nowiki></code> || {{Harvard citation no brackets/sandbox|White|Red|2020|ref=WhiteRed2020}}
|-
| <code><nowiki>{{Harvard citation no brackets/sandbox|White|Yellow|2020}}</nowiki></code> || {{Harvard citation no brackets/sandbox|White|Yellow|2020}}
|-
! colspan="2" | using {{pipe}}ref=
|-
| <code><nowiki>{{vcite book |year=2020 |author=White, Black |title=Title |ref=WhiteBlack2020}}</nowiki></code> || {{vcite book |year=2020 |author=White, Black |title=Title |ref=WhiteBlack2020}}
|-
! colspan="2" | using {{pipe}}harvid= (makes CITEREF...)
|-
| <code><nowiki>{{vancite book |year=2020 |author=White, Brown |title=Title |harvid=WhiteBrown2020}}</nowiki></code> || {{vancite book |year=2020 |author=White, Brown |title=Title |harvid=WhiteBrown2020}}
|-
! colspan="2" | using {{pipe}}ref= and {{pipe}}harvid=
|-
| <code><nowiki>{{vcite book |year=2020 |author=White, Red |title=Title |ref=WhiteRef2020 |harvid=WhiteOrange2020}}</nowiki></code> || {{vcite book |year=2020 |author=White, Red |title=Title |ref=WhiteRed2020 |harvid=WhiteOrange2020}}
|-
! colspan="2" | using {{pipe}}ref={{tl|sfnref}}
|-
| <code><nowiki>{{vcite book |year=2020 |author=White, Black |title=Title |ref={{sfnref|White|Yellow|2020}}}}</nowiki></code> || {{vcite book |year=2020 |author=White, Black |title=Title |ref={{sfnref|White|Yellow|2020}}}}
|}