Module:Annotated link/testcases: Difference between revisions

Content deleted Content added
due to template linking behavior, kinda fudging it a bit
a few fixes
Line 83:
 
function p:test__nonexistent_page_name()
self:preprocess_equals('{{#invoke:Annotated link|main|name=Intentionally permanent red link}}', '[[:Intentionally permanent red link]]')
end
 
Line 109:
 
function p:test__template_link__only_explicit()
self:preprocess_equals('{{#invoke:Annotated link|main|template_link=no|name=Template:Annotated link|only=explicit}}', "{{[[:Template:Annotated link|Annotated link]]}}")
end
 
Line 303:
 
function p:test__only_explicit__explicit_exists__wikidata_exists()
self:preprocess_equals('{{#invoke:Annotated link|main|name=Wikipedia|prefer=explicit}}', "[[:Wikipedia|Wikipedia]] – Free online crowd-sourcedcrowdsourced encyclopedia")
end