Vorlage:Modal: Unterschied zwischen den Versionen
Aus DragonballWiki
Weitere Optionen
Inhalt gelöscht Inhalt hinzugefügt
| Zeile 1: | Zeile 1: | ||
<includeonly><span class="modal-template">{{ |
<includeonly><span class="modal-template">{{Button2|{{{1|}}}|class=modal-button}}<div class="modal" style="display:none"><div class="modal-content" style="width:{{{Width|max-content}}}"><div class="modal-header">{{{Title|}}}<span class="close">×</span></div><div class="modal-body volume">{{{2|}}}</div></div></div></span></includeonly><noinclude> |
||
This template is used to create a modal that opens up by pressing a button. |
This template is used to create a modal that opens up by pressing a button. |
||
==Usage== |
==Usage== |
||
Aktuelle Version vom 16. März 2026, 18:34 Uhr
This template is used to create a modal that opens up by pressing a button.
Usage
{{Modal|Button Text|Modal Content}}
Optional Parameters:
- Title: For a header
- Width: Change width of the modal
Example
Default
{{Modal|Open|Test}}
Header and Different Width
{{Modal|Click me|Stuff goes here|Title=Cool Modal|Width=80%}}