No edit summary |
No edit summary |
||
(33 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <span style="width:{{{DivWidth|180px}}}; height: auto; display:table; background: linear-gradient(to bottom, #7d7e7d 0%,#0e0e0e 68%,#0e0e0e 100%);color:#fff;text-align:center;padding: 3px 3px 0;margin:0;"> | ||
<span style=" | <span style="margin: 3px auto 0; display:block;"> | ||
{{{ | [[Image:{{{ImageSRC|SF logo.png}}}|{{{ThumbWidth|174px}}}|link=]]</span> | ||
{{{ID| | [[#{{{ID|yourID}}}|enlarge]] | ||
<div id="{{{ID|yourID}}}" class="modalDialog"> | |||
<div id="{{{ID| | |||
<div style="width: 60%;height: auto;margin: 5% auto;"> | <div style="width: 60%;height: auto;margin: 5% auto;"> | ||
<div class="close">[[#close2|X]]</div> | <div class="close">[[#close2|X]]</div> | ||
<div style="max-height:700px;overflow:auto;"> | <div style="max-height:700px;overflow:auto;width: fit-content;"> | ||
{{{ | [[Image:{{{ImageSRC|SF logo.png}}}|link=]] | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
</span> | |||
<noinclude> | |||
== Usage == | |||
<div style="font-family: Courier New !important;display: block;padding: 5px 10px;background: rgba(255, 255, 10, 0.65);color: #000;width: fit-content;border: 2px double #ff0;border-radius: 10px;"> | |||
<nowiki>{{ModalCSS</nowiki><br> | |||
<nowiki>| DivWidth=180px</nowiki><br> | |||
<nowiki>| ThumbWidth=174px (same as DivWidth minus 6px)</nowiki><br> | |||
<nowiki>| ImageSRC=name_your_image.jpg/png/gif/jpeg/webp</nowiki><br> | |||
<nowiki>| ID=your_unique_ID_for_each_modal_on_the_page</nowiki><br> | |||
<nowiki>}}</nowiki> | |||
</div> | |||
</noinclude> |