Template:Modal

From cm2.liecourt.com


Parameters

{{Modal
|Targetid= <id> of the modal div, also used for the button that links to it. e.g. "myModal", "myModal1", "myModal2"
|ButtonText= <text> text for button that links to modal 
|ButtonClass= <class> class for button that links to modal. defaults to btn btn-success btn-sm
|TargetClass=defaults to modal fade
|Show modal header= <optional: "No"> to hide the modal header (default Yes)
|ModalHeading=
|BodyClass=defaults to modal-body
|BodyText=
|FooterText=
|VisitPage=
|contentstyle=add class and/or style (default: class="modal-content")
|width=
|Hide link=<optional: "Yes"> if you do not want this template to generate a link to your modal
}}
test
This is a sick modal m8

Example modal with custom :

{{#widget:Button link |href=#test-modal |datatoggle=modal |class=btn btn-primary |buttontext=Link}}

{{Modal
|Targetid=test-modal
|ModalHeading=My modal header
|BodyText=text fdfsafs
afsfas
sdfsd
|FooterText=Footertext with close button! {{#widget:Button link |type=a |href=#test-modal |datatoggle=modal |class=btn btn-default |buttontext=X}}
|Hide link=Yes
}}