extensions/TemplateData/tests/parser/parserTests.txt
raw| 1 | !! options |
| 2 | version=2 |
| 3 | !! end |
| 4 | |
| 5 | !! hooks |
| 6 | templatedata |
| 7 | !! endhooks |
| 8 | |
| 9 | !! test |
| 10 | Empty |
| 11 | !! options |
| 12 | disabled |
| 13 | !! wikitext |
| 14 | <templatedata /> |
| 15 | !! html |
| 16 | <div class="mw-message-box-error mw-message-box"><p>Syntax error in JSON. |
| 17 | </p></div> |
| 18 | !! end |
| 19 | |
| 20 | !! test |
| 21 | Minimal JSON |
| 22 | !! wikitext |
| 23 | <templatedata>{"params":{}}</templatedata> |
| 24 | !! html |
| 25 | <section class="mw-templatedata-doc-wrap"><header><p class="mw-templatedata-doc-desc mw-templatedata-doc-muted">No description.</p></header><table class="wikitable mw-templatedata-doc-params"><caption><p class="mw-templatedata-caption">Template parameters</p></caption><thead><tr><th colspan="2">Parameter</th><th>Description</th><th>Type</th><th>Status</th></tr></thead><tbody><tr><td class="mw-templatedata-doc-muted" colspan="7">No parameters specified</td></tr></tbody></table></section> |
| 26 | !! end |