Template:Tooltip/testcases: Difference between revisions
Jump to navigation
Jump to search
Testling with lists |
m Formatting |
||
| Line 2: | Line 2: | ||
{{Testcase | {{Testcase | ||
|title=Parameters by index | |title=Parameters by index | ||
|<nowiki>{{Tooltip|Word|Some additional text}}</nowiki> | |<pre><nowiki>{{Tooltip|Word|Some additional text}}</nowiki></pre> | ||
|{{Tooltip|Word|Some additional text}} | |{{Tooltip|Word|Some additional text}} | ||
|{{Tooltip/sandbox|Word|Some additional text}} | |{{Tooltip/sandbox|Word|Some additional text}} | ||
| Line 10: | Line 10: | ||
{{Testcase | {{Testcase | ||
|title=Parameters by name | |title=Parameters by name | ||
|<nowiki>{{Tooltip|text=Words in text|description=Some additional text}}</nowiki> | |<pre><nowiki>{{Tooltip|text=Words in text|description=Some additional text}}</nowiki></pre> | ||
|{{Tooltip|text=Words in text|description=Some additional text}} | |{{Tooltip|text=Words in text|description=Some additional text}} | ||
|{{Tooltip/sandbox|text=Words in text|description=Some additional text}} | |{{Tooltip/sandbox|text=Words in text|description=Some additional text}} | ||
| Line 18: | Line 18: | ||
{{Testcase | {{Testcase | ||
|title=Testing the tooltip within a list | |title=Testing the tooltip within a list | ||
|<nowiki>* Item 1 at the beginning | |<pre><nowiki>* Item 1 at the beginning | ||
* Item 2 with {{Tooltip|a tooltip|Some additional text}} in text | * Item 2 with {{Tooltip|a tooltip|Some additional text}} in text | ||
* Item 3 at the end</nowiki> | * Item 3 at the end</nowiki></pre> | ||
|* Item 1 at the beginning | | | ||
* Item 1 at the beginning | |||
* Item 2 with {{Tooltip|a tooltip|Some additional text}} in text | * Item 2 with {{Tooltip|a tooltip|Some additional text}} in text | ||
* Item 3 at the end | * Item 3 at the end | ||
|* Item 1 at the beginning | | | ||
* Item 1 at the beginning | |||
* Item 2 with {{Tooltip/sandbox|a tooltip|Some additional text}} in text | * Item 2 with {{Tooltip/sandbox|a tooltip|Some additional text}} in text | ||
* Item 3 at the end | * Item 3 at the end | ||
}} | }} | ||
Latest revision as of 17:36, 16 September 2018
This page is for testcases. Testcases should handle general use cases to test the parameters of a templae. Full-page templates like the T-Doll template should only call one testcase.
| Parameters by index | |
|---|---|
| Wiki code | {{Tooltip|Word|Some additional text}}
|
| Main version | WordSome additional text |
| Sandbox version | Word Some additional text
|
| Parameters by name | |
|---|---|
| Wiki code | {{Tooltip|text=Words in text|description=Some additional text}}
|
| Main version | Words in textSome additional text |
| Sandbox version | Words in text Some additional text
|
| Testing the tooltip within a list | |
|---|---|
| Wiki code | * Item 1 at the beginning
* Item 2 with {{Tooltip|a tooltip|Some additional text}} in text
* Item 3 at the end
|
| Main version |
|
| Sandbox version |
|
