Template:Panel: Difference between revisions
Template page
More actions
Created page with "<templatestyles src="Panel/styles.css" /> <div class="wiki-panel wiki-panel-{{{type|info}}}"> <div class="wiki-panel-icon">{{#switch:{{{type|info}}} | warning = ⚠️ | note = 📝 | tip = 💡 | #default = ℹ️ }}</div> <div class="wiki-panel-body">{{{1}}}</div> </div>" |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
}}</div> | }}</div> | ||
<div class="wiki-panel-body">{{{1}}}</div> | <div class="wiki-panel-body">{{{1}}}</div> | ||
</div> | </div><noinclude> | ||
<templatedata> | |||
{ | |||
"description": "Displays a colored panel box (info/note/warning/tip), similar to Confluence panels.", | |||
"params": { | |||
"1": { | |||
"label": "Content", | |||
"description": "The text to display inside the panel.", | |||
"type": "content", | |||
"required": true | |||
}, | |||
"type": { | |||
"label": "Type", | |||
"description": "Panel style: info, note, warning, or tip.", | |||
"type": "string", | |||
"default": "info", | |||
"suggestedvalues": ["info", "note", "warning", "tip"] | |||
} | |||
}, | |||
"paramOrder": ["1", "type"] | |||
} | |||
</templatedata> | |||
</noinclude> | |||
Latest revision as of 15:30, 3 August 2026
{{{1}}}
Displays a colored panel box (info/note/warning/tip), similar to Confluence panels.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Content | 1 | The text to display inside the panel. | Content | required |
| Type | type | Panel style: info, note, warning, or tip.
| String | optional |