Vés al contingut

Mòdul Discussió:Delink/tests

El contingut de la pàgina no s'admet en altres llengües.
De la Viquipèdia, l'enciclopèdia lliure

16 tests han fallat.

test01_basic:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Poma]]}} Poma Poma
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|Els [[kiwi]]s són diferents dels [[plàtan]]s}} Els kiwis són diferents dels plàtans Els kiwis són diferents dels plàtans
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|Les [[mandarina|mandarines]] semblen [[taronja|taronges]]}} Les mandarines semblen taronges Les mandarines semblen taronges
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Tot]]s [[wikt:som|]] [[pops]]}} Tots som pops Tots som pops
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Survey]] of [http://books.google.com Google Books] on [[UK|Britain]]}} Survey of Google Books on Britain Survey of Google Books on Britain

test02_cats_and_interwikis:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Categoria:Foo]]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[es:Foo]]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[wikt:Foo]]}} wikt:Foo wikt:Foo
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[es:Wikipedia:Políticas]]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[abcd:efgh:ijkl]]}} abcd:efgh:ijkl abcd:efgh:ijkl
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[cbk-zam:abcd:efgh]]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[meatball:WikiPedia]]}} meatball:WikiPedia meatball:WikiPedia

test03_colontrick:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:Categoria:Foo]]}} Categoria:Foo Categoria:Foo
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:es:Foo]]}} es:Foo es:Foo
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:wikt:Foo]]}} wikt:Foo wikt:Foo
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:es:Wikipedia:Políticas]]}} es:Wikipedia:Políticas es:Wikipedia:Políticas
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:abcd:efgh:ijkl]]}} abcd:efgh:ijkl abcd:efgh:ijkl
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:cbk-zam:abcd:efgh]]}} cbk-zam:abcd:efgh cbk-zam:abcd:efgh
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:meatball:WikiPedia]]}} meatball:WikiPedia meatball:WikiPedia

test04_pipetrick:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Pipe (computing)|]]}} Pipe Pipe
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Boston, Massachusetts|]]}} Boston Boston
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Wikipedia:Verifiability|]]}} Verifiability Verifiability
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Usuari:Exemple|]]}} Exemple Exemple
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Plantilla:Benvinguda|]]}} Benvinguda Benvinguda
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Yours, Mine and Ours (1968 film)|]]}} Yours, Mine and Ours Yours, Mine and Ours
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:es:Wikipedia:Políticas|]]}} Wikipedia:Políticas Wikipedia:Políticas
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Il Buono, il Brutto, il Cattivo|]]}} Il Buono Il Buono
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Wikipedia:Manual of Style (Persian)|]]}} Manual of Style Manual of Style
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Wikipedia:Manual of Style(Persian)|]]}} Manual of Style Manual of Style
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo|bar|]]}} bar| bar|
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo||]]}} | |
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|xx[[foo bar (baz)|]]xx}} xxfoo bar xx xxfoo bar xx

test05_reverse_pipetrick:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[|foo]]}} foo foo
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[|multiple|pipes]]}} [[|multiple|pipes]] [[|multiple|pipes]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[|foo (bar)]]}} foo (bar) foo (bar)
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[|foo, bar (baz)]]}} foo, bar (baz) foo, bar (baz)
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[|simultaneous pipe trick|]]}} [[|simultaneous pipe trick|]] [[|simultaneous pipe trick|]]

test06_badlinks:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[<]]}} [[<]] [[<]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Categoria:<]]}} [[Categoria:<]] [[Categoria:<]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:Categoria:<]]}} [[:Categoria:<]] [[:Categoria:<]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:Categoria:<|Foo]]}} [[:Categoria:<|Foo]] [[:Categoria:<|Foo]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:Categoria:<|]]}} [[:Categoria:<|]] [[:Categoria:<|]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:Categoria:Foo|<]]}} < <
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Categoria:Foo|<]]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Foo:Bar|<]]}} < <
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Foo:Bar:>]]}} [[Foo:Bar:>]] [[Foo:Bar:>]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[es:Wikipedia:<]]}} [[es:Wikipedia:<]] [[es:Wikipedia:<]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[es:Wikipedia:Foo|<]]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:es:Wikipedia:<]]}} [[:es:Wikipedia:<]] [[:es:Wikipedia:<]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[:es:Wikipedia:Foo|<]]}} < <
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Foo:Bar:Foo#>]]}} Foo:Bar:Foo#> [[Foo:Bar:Foo#>]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Foo:Bar:Foo>#Baz]]}} [[Foo:Bar:Foo>#Baz]] [[Foo:Bar:Foo>#Baz]]
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Foo#Bar>#Baz]]}} Foo#Bar>#Baz [[Foo#Bar>#Baz]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[Foo>#Bar#Baz]]}} [[Foo>#Bar#Baz]] [[Foo>#Bar#Baz]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[wikt:es:asdf:&#x0000;Template:title#Fragment]]}} [[wikt:es:asdf:&#x0000;Template:title#Fragment]] [[wikt:es:asdf:&#x0000;Template:title#Fragment]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[?foo]]}} [[?foo]] [[?foo]]

test07_URI_slashes:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[/foo]}} [/foo] [/foo]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[/foo bar]}} [/foo bar] [/foo bar]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[//foo]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[//foo bar]}} bar bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[///foo]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[///foo bar]}} bar bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[////foo]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[////foo bar]}} bar bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[///////////////////////////////////foo]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[///////////////////////////////////foo bar]}} bar bar

test08_URI_prefixes:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[://foo]}} [://foo] [://foo]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[:://foo]}} [:://foo] [:://foo]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[abcd://]}} [abcd://] [abcd://]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[abcd://foo]}} [abcd://foo] [abcd://foo]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://]}} [http://] [http://]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://foo]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[https://]}} [https://] [https://]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[https://foo]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[ftp://]}} [ftp://] [ftp://]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[ftp://foo]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[gopher://]}} [gopher://] [gopher://]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[gopher://foo]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[mailto:]}} [mailto:] [mailto:]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[mailto:foo]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[news]}} [news] [news]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[news at ten]}} [news at ten] [news at ten]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[news:]}} [news:] [news:]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[news: at ten]}} [news: at ten] [news: at ten]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[news:/]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[news:/ at ten]}} at ten at ten
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[news://]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[news://foo]}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[news://foo at ten]}} at ten at ten
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[irc://]}} [irc://] [irc://]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[irc://foo]}}

test09_URI_special_characters:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[:http://foo]}} [:http://foo] [:http://foo]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://<foo]}} <foo <foo
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://foo"bar]}} "bar "bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://"foo]}} [http://"foo] [http://"foo]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://>foo]}} >foo >foo
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://foo<bar]}} <bar <bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://foo>bar]}} >bar >bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http:// foo]}} [http:// foo] [http:// foo]

test10_nesting:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|text[[<s name=]]>stricken</s>more text]]}} text[[<s name=]]>stricken</s>more text]] text[[<s name=]]>stricken</s>more text]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|text[[<s>stricken</s>more text]]}} text[[<s>stricken</s>more text]] text[[<s>stricken</s>more text]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[outer[[inner]]outer]]}} [[outerinnerouter]] [[outerinnerouter]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://outer outer [[inner]] outer]}} outer inner outer outer inner outer
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[outer[http://inner inner]outer]]}} [[outerinnerouter]] [[outerinnerouter]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[outer[http://inner]outer]]]}} [[outerouter]]] [[outerouter]]]

test11_multiple_pipes:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo|bar|baz]]}} bar|baz bar|baz
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo|bar|baz|]]}} bar|baz| bar|baz|
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[|foo|bar|baz]]}} [[|foo|bar|baz]] [[|foo|bar|baz]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[|foo|bar|baz|]]}} [[|foo|bar|baz|]] [[|foo|bar|baz|]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo|bar|baz||]]}} bar|baz|| bar|baz||
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[||foobarbaz]]}} [[||foobarbaz]] [[||foobarbaz]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foobarbaz||]]}} | |

test12_http_links:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http]}} [http] [http]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http:foo]}} [http:foo] [http:foo]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http:]}} [http:] [http:]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http:foo]}} [http:foo] [http:foo]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http:/]}} [http:/] [http:/]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http:/foo]}} [http:/foo] [http:/foo]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://]}} [http://] [http://]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://foo]}}

test13_whitespace:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|xx[[ fruit salad | many kinds of fruit ]]xx}} xx many kinds of fruit xx xx many kinds of fruit xx
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com example]}} example example
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[link with a line break in]]}} [[link with a line break in]] [[link with a line break in]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[link with two line breaks in]]}} [[link with two line breaks in]] [[link with two line breaks in]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com example]}} [http://www.example.com example] [http://www.example.com example]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com example]}} [http://www.example.com example] [http://www.example.com example]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com non-breaking spaces]}} non-breaking spaces non-breaking spaces
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com tab characters]}} tab characters tab characters
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com multiple non-breaking spaces]}} multiple non-breaking spaces multiple non-breaking spaces
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com multiple tab characters]}} multiple tab characters multiple tab characters

test14_full_paragraphs:

Text Esperat Resultat
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|He then studied at [[Saint Patrick Seminary, Menlo Park|St. Patrick's Seminary]] in [[Menlo Park, California|Menlo Park]]. He was [[Holy Orders|ordained]] to the [[Priesthood (Catholic Church)|priesthood]] on June 10, 1933.<ref name=hierarchy>{{cite news|work=Catholic-Hierarchy.org|title=Bishop Merlin Joseph Guilfoyle|url=http://www.catholic-hierarchy.org/bishop/bguimj.html}}</ref> In 1937, he earned a [[Doctor of Canon Law]] from the [[The Catholic University of America|Catholic University of America]] in [[Washington, D.C.]]<ref name=curtis/> He became a [[Monsignor|Domestic Prelate]] in 1949, and was co-founder and [[chaplain]] of [http://www.stthomasmore-sf.org/ St. Thomas More Society].}} He then studied at St. Patrick's Seminary in Menlo Park. He was ordained to the priesthood on June 10, 1933. In 1937, he earned a Doctor of Canon Law from the Catholic University of America in Washington, D.C. He became a Domestic Prelate in 1949, and was co-founder and chaplain of St. Thomas More Society. He then studied at St. Patrick's Seminary in Menlo Park. He was ordained to the priesthood on June 10, 1933.[1] In 1937, he earned a Doctor of Canon Law from the Catholic University of America in Washington, D.C.[2] He became a Domestic Prelate in 1949, and was co-founder and chaplain of St. Thomas More Society.

test15_full_paragraphs_removing_ref_strip_markers:

Text Esperat Resultat
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|refs=yes|He then studied at [[Saint Patrick Seminary, Menlo Park|St. Patrick's Seminary]] in [[Menlo Park, California|Menlo Park]]. He was [[Holy Orders|ordained]] to the [[Priesthood (Catholic Church)|priesthood]] on June 10, 1933.<ref name=hierarchy>{{cite news|work=Catholic-Hierarchy.org|title=Bishop Merlin Joseph Guilfoyle|url=http://www.catholic-hierarchy.org/bishop/bguimj.html}}</ref> In 1937, he earned a [[Doctor of Canon Law]] from the [[The Catholic University of America|Catholic University of America]] in [[Washington, D.C.]]<ref name=curtis/> He became a [[Monsignor|Domestic Prelate]] in 1949, and was co-founder and [[chaplain]] of [http://www.stthomasmore-sf.org/ St. Thomas More Society].}} He then studied at St. Patrick's Seminary in Menlo Park. He was ordained to the priesthood on June 10, 1933. In 1937, he earned a Doctor of Canon Law from the Catholic University of America in Washington, D.C. He became a Domestic Prelate in 1949, and was co-founder and chaplain of St. Thomas More Society. He then studied at St. Patrick's Seminary in Menlo Park. He was ordained to the priesthood on June 10, 1933.[1] In 1937, he earned a Doctor of Canon Law from the Catholic University of America in Washington, D.C.[2] He became a Domestic Prelate in 1949, and was co-founder and chaplain of St. Thomas More Society.

test16_html_comments:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo<!--bar]]-->baz]]}} foobaz foobaz
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|foo<!--bar-->baz}} foobaz foobaz
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|foo<!--bar<!--baz-->bat-->bam}} foobat-->bam foobat-->bam
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|foo[http://abcd<!--bar-->efgh]baz}} foobaz foobaz
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|foo[http://abcd<!--barefgh]baz-->bat}} foo[http://abcdbat foo[http://abcdbat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|foo[http://ab[[cd]]<!--barefgh]baz-->bat}} foo[http://abcdbat foo[http://abcdbat
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|foo[http://ab[[cd<!--bar]]efgh]baz-->bat}} foo[http://ab[[cdbat {{safesubst:#invoke:Delink|delink|foo[http://ab[[cdbat}}
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|foo[[bar<!--baz-->]]bam}} foobarbam foobarbam

test17_nowiki:

Text Esperat Resultat
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|<nowiki>[[foo]]}}</nowiki> [[foo]] [[foo]]
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo]]<nowiki>[[bar]]baz}}</nowiki> foo[[bar]]baz foo[[bar]]baz
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|<nowiki>[http://www.example.com foo]}}</nowiki> [http://www.example.com foo] [http://www.example.com foo]
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo<nowiki>bar]]}}</nowiki> [[foobar]] {{safesubst:#invoke:Delink|delink|[[foobar]]}}
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|<nowiki>[[foobar]]}}</nowiki> [[foobar]] [[foobar]]
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.exa<nowiki>mple.com foo]}}</nowiki> [http://www.example.com foo] [http://www.example.com foo]

test18_decoding:

Text Esperat Resultat
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo%25 bar]]}} foo% bar [[foo%25 bar]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo%25bar]]}} [[foo%25bar]] [[foo%25bar]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo%24bar]]}} foo$bar foo$bar
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo%88bar]]}} [[foo%88bar]] <strong class="error"><span class="scribunto-error mw-scribunto-error-b4b335e0">Error de Lua: bad argument #1 to 'match' (string is not UTF-8).</span></strong>
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo%6Abar]]}} foojbar foojbar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo%11bar]]}} [[foo%11bar]] [[foo%11bar]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo&bar]]}} foo&bar foo&bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo%25bar]]}} [[foo%25bar]] [[foo%25bar]]
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo&a%6Amp;bar]]}} [[foo&a%6Amp;bar]] foo&ajmp;bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo&%61mp;bar]]}} foo&bar foo&bar
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo&%62mp;bar]]}} [[foo&%62mp;bar]] foo&bmp;bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo%bar]]}} [[foo%bar]] [[foo%bar]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo%62bar]]}} [[foo%62bar]] [[foo%62bar]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo&#x0000;bar]]}} [[foo&#x0000;bar]] [[foo&#x0000;bar]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo&#x00000;bar]]}} [[foo&#x00000;bar]] [[foo&#x00000;bar]]
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo"bar]]}} foo"bar foo"bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo"bar]]}} foo"bar foo"bar
2 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[[foo&amp;bar]]}} [[foo&amp;bar]] foo&bar

test19_URL_decoding:

Text Esperat Resultat
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo%25 bar]}} foo%25 bar foo%25 bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo%25bar]}} foo%25bar foo%25bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo%24bar]}} foo%24bar foo%24bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo%88bar]}} foo%88bar foo%88bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo%6Abar]}} foo%6Abar foo%6Abar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo%11bar]}} foo%11bar foo%11bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo&bar]}} foo&bar foo&bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo%25bar]}} foo%25bar foo%25bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo&a%6Amp;bar]}} foo&a%6Amp;bar foo&a%6Amp;bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo&%61mp;bar]}} foo&%61mp;bar foo&%61mp;bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo&%62mp;bar]}} foo&%62mp;bar foo&%62mp;bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo%bar]}} foo%bar foo%bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo%62bar]}} foo%62bar foo%62bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo&#x0000;bar]}} foo&#x0000;bar foo&#x0000;bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo&#x00000;bar]}} foo&#x00000;bar foo&#x00000;bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo"bar]}} foo"bar foo"bar
1 {{<includeonly>safesubst:</includeonly>#invoke:Delink|delink|[http://www.example.com foo"bar]}} foo"bar foo"bar


  1. 1,0 1,1 «Bishop Merlin Joseph Guilfoyle». Catholic-Hierarchy.org.
  2. 2,0 2,1 Error de citació: Etiqueta <ref> no vàlida; no s'ha proporcionat text per les refs nomenades curtis

Comenceu una discussió sobre Mòdul:Delink/tests

Comença una nova discussió