Jump to content

Template:Toolbar/testcases

From Wikipedia, the free encyclopedia

Default separator

[edit]
Doc example test
{{Toolbar|[[User:Example|User]]|[[User talk:Example|talk]]|[[Special:BlockIP/Example|block]]}}

{{Toolbar}}

(User | talk | block)

{{Toolbar/sandbox}}

(User | talk | block)

Custom separators

[edit]

Tests for parameter |separator=.

comma
{{Toolbar|[[User:Example|User]]|[[User talk:Example|talk]]|[[Special:BlockIP/Example|block]]|separator=comma}}

{{Toolbar}}

(User, talk, block)

{{Toolbar/sandbox}}

(User, talk, block)

dot
{{Toolbar|[[User:Example|User]]|[[User talk:Example|talk]]|[[Special:BlockIP/Example|block]]|separator=dot}}

{{Toolbar}}

(User · talk · block)

{{Toolbar/sandbox}}

(User · talk · block)

tpt-languages
{{Toolbar|[[User:Example|User]]|[[User talk:Example|talk]]|[[Special:BlockIP/Example|block]]|separator=tpt-languages}}

{{Toolbar}}

(User⧼tpt-languages-separator⧽talk⧼tpt-languages-separator⧽block)

{{Toolbar/sandbox}}

(User⧼tpt-languages-separator⧽talk⧼tpt-languages-separator⧽block)

pipe
{{Toolbar|[[User:Example|User]]|[[User talk:Example|talk]]|[[Special:BlockIP/Example|block]]|separator=pipe}}

{{Toolbar}}

(User | talk | block)

{{Toolbar/sandbox}}

(User | talk | block)

Parameter span

[edit]
Just |span=yes
{{Toolbar|[https://en.wikipedia.org/wiki/Special:Random random]|[https://en.wikipedia.org/wiki/Main_Page main]|[[Template:Toolbar]]|span=yes}}

{{Toolbar}}

(random | main | Template:Toolbar)

{{Toolbar/sandbox}}

(random | main | Template:Toolbar)

With |class=template-documentation
{{Toolbar|[https://en.wikipedia.org/wiki/Special:Random random]|[https://en.wikipedia.org/wiki/Main_Page main]|[[Template:Toolbar]]|3=[https://en.wikipedia.org/w/index.php?title=Template:Toolbar/testcases&action=info info] |5=[https://en.wikipedia.org/w/index.php?title=Template:Toolbar/testcases&action=info info] |class=template-documentation |span=yes}}

{{Toolbar}}

(random | main | info | Template:Toolbar | info)

{{Toolbar/sandbox}}

(random | main | info | Template:Toolbar | info)

With |style=text-decoration: overline wavy rebeccapurple
{{Toolbar|[[Template:Toolbar]]|1=[https://en.wikipedia.org/w/index.php?title=Template:Toolbar/testcases&action=info info] |span=yes |style=text-decoration: overline wavy rebeccapurple}}

{{Toolbar}}

(info | Template:Toolbar)

{{Toolbar/sandbox}}

(info | Template:Toolbar)

Manual test

[edit]
{{Toolbar|[[Template:Toolbar|template]]|[[Template_talk:Toolbar|talk]]|[https://en.wikipedia.org/w/index.php?title{{=}}Template:Toolbar/testcases&action{{=}}info info]|span=yes|style=text-decoration: overline wavy rebeccapurple}}

{{Toolbar}}

(template | talk | info)

{{Toolbar/sandbox}}

(template | talk | info)

Demo for {{=}}

[edit]
Demo for {{[[Template:{{{1}}}|{{{1}}}]]}}
{{Toolbar|1== |span=yes}}

{{Toolbar}}

(=)

{{Toolbar/sandbox}}

(=)