Difference between revisions of "Template:Linked/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Andrybak
(→‎Categories: add tests)
imported>Andrybak
(→‎Files: new tests)
 
Line 6: Line 6:
 
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|[[Foo]]|Bar}}
 
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|[[Foo]]|Bar}}
 
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|:Foo}}
 
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|:Foo}}
 +
=== Files ===
 
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|File:Example.jpg}}
 
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|File:Example.jpg}}
 
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|:File:Example.jpg}}
 
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|:File:Example.jpg}}
 +
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|[[File:Example.jpg]]}}
 +
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|[[:File:Example.jpg]]}}
 
=== Categories ===
 
=== Categories ===
 
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|Category:Food}}
 
{{Test case|_collapsible=yes|_showcode=yes|_titlecode=yes|Category:Food}}

Latest revision as of 18:39, 27 May 2020

Wikilinks

{{Linked|Foo}}
{{Linked|Foo}}

{{Linked}}

Foo

{{Linked/sandbox}}

Foo

{{Linked|Foo|Bar}}
{{Linked|Foo|Bar}}

{{Linked}}

Bar

{{Linked/sandbox}}

Bar

{{Linked|[[Foo]]|Bar}}
{{Linked|[[Foo]]|Bar}}

{{Linked}}

[[:Template:Str crop]]

{{Linked/sandbox}}

[[:Template:Str crop]]

{{Linked|:Foo}}
{{Linked|:Foo}}

{{Linked}}

Foo

{{Linked/sandbox}}

Foo

Files

{{Linked|File:Example.jpg}}
{{Linked|File:Example.jpg}}

{{Linked}}

File:Example.jpg

{{Linked/sandbox}}

File:Example.jpg

{{Linked|:File:Example.jpg}}
{{Linked|:File:Example.jpg}}

{{Linked}}

File:Example.jpg

{{Linked/sandbox}}

File:Example.jpg

{{Linked|[[File:Example.jpg]]}}
{{Linked|[[File:Example.jpg]]}}

{{Linked}}

[[:Template:Str crop]]

{{Linked/sandbox}}

[[:Template:Str crop]]

{{Linked|[[:File:Example.jpg]]}}
{{Linked|[[:File:Example.jpg]]}}

{{Linked}}

File:Example.jpg

{{Linked/sandbox}}

File:Example.jpg

Categories

{{Linked|Category:Food}}
{{Linked|Category:Food}}

{{Linked}}

Category:Food

{{Linked/sandbox}}

Category:Food

{{Linked|:Category:Food}}
{{Linked|:Category:Food}}

{{Linked}}

Category:Food

{{Linked/sandbox}}

Category:Food

{{Linked|[[Category:X2]]}}
{{Linked|[[Category:X2]]}}

{{Linked}}

[[:Template:Str crop]]

{{Linked/sandbox}}

[[:Template:Str crop]]

{{Linked|[[:Category:X2]]}}
{{Linked|[[:Category:X2]]}}

{{Linked}}

Category:X2

{{Linked/sandbox}}

Category:X2

HTTP links

{{Linked| http://example.org}}
{{Linked| http://example.org}}

{{Linked}}

[[[:Template:Str trim]]]

{{Linked/sandbox}}

[[[:Template:Str trim]]]

{{Linked|http://example.org|Bar}}
{{Linked|http://example.org|Bar}}

{{Linked}}

[[[:Template:Str trim]] Bar]

{{Linked/sandbox}}

[[[:Template:Str trim]] Bar]

{{Linked|[http://example.org Foo]|Bar}}
{{Linked|[http://example.org Foo]|Bar}}

{{Linked}}

Foo

{{Linked/sandbox}}

Foo

{{Linked|https://example.org}}
{{Linked|https://example.org}}

{{Linked}}

[[[:Template:Str trim]]]

{{Linked/sandbox}}

[[[:Template:Str trim]]]

{{Linked|https://example.org|Bar}}
{{Linked|https://example.org|Bar}}

{{Linked}}

[[[:Template:Str trim]] Bar]

{{Linked/sandbox}}

[[[:Template:Str trim]] Bar]

{{Linked|[https://example.org Foo]|Bar}}
{{Linked|[https://example.org Foo]|Bar}}

{{Linked}}

Foo

{{Linked/sandbox}}

Foo

Protocol-relative // links

{{Linked|//example.org}}
{{Linked|//example.org}}

{{Linked}}

[1]

{{Linked/sandbox}}

[2]

{{Linked|//example.org|Bar}}
{{Linked|//example.org|Bar}}

{{Linked}}

Bar

{{Linked/sandbox}}

Bar

{{Linked|[//example.org Foo]|Bar}}
{{Linked|[//example.org Foo]|Bar}}

{{Linked}}

Foo

{{Linked/sandbox}}

Foo