Template:Example/doc: Difference between revisions
Created Template:Example/doc |
Added no_copy parameter |
||
| (One intermediate revision by the same user not shown) | |||
| Line 15: | Line 15: | ||
* {{F|1}} – Input wikitext. | * {{F|1}} – Input wikitext. | ||
** {{Color|Old|Note}}: Must be wrapped between {{F|<nowiki><nowiki></nowiki></nowiki>}}. | ** {{Color|Old|Note}}: Must be wrapped between {{F|<nowiki><nowiki></nowiki></nowiki>}}. | ||
* {{F|no_copy}} – Set to {{F|1}} to remove the copy button. | |||
* {{F|no_result}} – Set to {{F|1}} to hide the results. | * {{F|no_result}} – Set to {{F|1}} to hide the results. | ||
| Line 84: | Line 85: | ||
"label": "Wikitext", | "label": "Wikitext", | ||
"description": "Input wikitext.", | "description": "Input wikitext.", | ||
"type": " | "type": "content", | ||
"required": true | "required": true | ||
}, | }, | ||
| Line 90: | Line 91: | ||
"label": "No result", | "label": "No result", | ||
"description": "Set to 1 to hide the results.", | "description": "Set to 1 to hide the results.", | ||
"type": "boolean" | |||
}, | |||
"no_copy": { | |||
"label": "No copy", | |||
"description": "Set to 1 to remove the copy button.", | |||
"example": "1", | |||
"type": "boolean" | "type": "boolean" | ||
} | } | ||
}, | }, | ||
"description": "Template that formats the input wikitext and the output from the parser when given some wikitext.", | "description": "Template that formats the input wikitext and the output from the parser when given some wikitext.", | ||
"format": "block" | "format": "block", | ||
"paramOrder": [ | |||
"1", | |||
"no_copy", | |||
"no_result" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||