Template:Linked/testcases

From blackwiki
Jump to navigation Jump to search

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