Template:Cite source: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
2,708 bytes added ,  18 February 2023
No edit summary
Line 104: Line 104:


== Errors and troubleshooting ==
== Errors and troubleshooting ==
''to be added''
Due to the complex nature of this large template, there are a number of ways in which it could go wrong and produce an error. This section details these errors, providing potential solutions.
 
=== Lua errors ===
[[File:Lua error.JPG|750px]]
If you see any errors like the one above, please remove the use of this template that is causing it and report it on the [[{{TALKPAGENAME}}|talk page]] with as much detail as you can as soon as possible. These errors generally mean that there is some form of mistake with the template's actual code.
 
=== Error: code 1 - data table empty ===
This error means that the source's infobox was unable to collect any data to put the additional information together. To fix this, first [[Special:Purge|purge the cache of the source's page and the page the citation is being used on]]. If that doesn't work, make sure that the infobox contains at least one of the pieces of data listed [[#Exact nature of the additional information|here]]. If all else fails, manually define the additional information using the <tt>|citation text=</tt> parameter within the infobox.
 
=== Error: Code 2 - no data stored in variables, cache or SMW ===
This error means that the template is unable to get the additional information from the source's infobox. To fix this, first [[Special:Purge|purge the cache of the source's page and the page the citation is being used on]]. If this doesn't work, check that the source's page is actually using {{tlx|Bongolium500/Infobox Story SMW}} and, if it isn't, convert it so that it is. If this doesn't work, report the error on the [[{{TALKPAGENAME}}|talk page]].
 
=== Error: code 3 - no story given in template transclusion ===
This is a simple one and means that the template has been used without providing a source to actually be cited. To fix this, include a source like is shown in the first few paragraphs of this page.
 
=== Error: Code 4 - no data in variables or cache and SMW returned information for multiple variants, the one required here not being clear ===
This rather verbose error is an extreme edge case that should never occur. It means that you've attempted to cite a variant where more than one variant for that source exist and, for whatever reason, there is no additional information provided for said variant in the 2 preferred means of storing this information yet [[T:SMW|Semantic MediaWiki]], the last resort, does have this information, the problem being that it is not possible to properly distinguish the multiple variants coming from SMW. To fix this, first [[Special:Purge|purge the cache of the source's page and the page the citation is being used on]]. If that doesn't work, report the error on the [[{{TALKPAGENAME}}|talk page]].


== Full parameters list ==
== Full parameters list ==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.