Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:FlashEmbed: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="flash-wrapper" style="background-image: url('{{{background|https://www.gamebrew.org/images/5/52/Gb-logo-v3.png}}'); background-size: cover; background-position: center; padding: 40px; text-align: center; border-radius: 12px; position: relative;">
<templatestyles src="Template:FlashEmbed/styles.css" />


  <div class="flash-overlay" style="background: rgba(0, 0, 0, 0.5); padding: 20px; display: inline-block; border-radius: 12px;">
<htmltag tagname="script"  
    <h2 style="color: #fff; font-size: 28px; margin-bottom: 20px;">{{{title|Gamebrew}}}</h2>
    src="/index.php?title=MediaWiki:RuffleLoader.js&amp;action=raw&amp;ctype=text/javascript">
</htmltag>


     <div class="preloader_button" style="display: inline-block; background: #ff4081; color: #fff; padding: 12px 24px; border-radius: 6px; font-size: 18px; cursor: pointer;" onclick="document.getElementById('flash-embed').style.display='block'; this.style.display='none';">
<htmltag tagname="object"
      {{{button|Play Now}}}
    type="application/x-shockwave-flash"
    </div>
    data="{{{url}}}"
  </div>
    width="{{{width|600}}}"
     height="{{{height|400}}}"  
    style="display:block; margin-left:auto; margin-right:auto;">
  <htmltag tagname="param" name="movie" value="{{{url}}}" selfclose="true" />
  <htmltag tagname="param" name="allowScriptAccess" value="never" selfclose="true" />
</htmltag>


  <div id="flash-embed" style="display: none; margin-top: 20px;">
    <htmltag tagname="object" type="application/x-shockwave-flash" data="{{{url}}}" width="{{{width|600}}}" height="{{{height|400}}}">
      <htmltag tagname="param" name="movie" value="{{{url}}}" selfclose="true" />
      <htmltag tagname="param" name="allowScriptAccess" value="never" selfclose="true" />
    </htmltag>
  </div>
</div>
</includeonly>
</includeonly>
<noinclude>
Usage:
<pre>{{FlashEmbed|url=https://example.com/yourgame.swf|width=640|height=480}}</pre>
edit JS - https://www.gamebrew.org/wiki/MediaWiki:RuffleLoader.js
edit css - https://www.gamebrew.org/wiki/Template:FlashEmbed/styles.css
</noinclude>

Latest revision as of 15:14, 18 May 2025


Usage:

{{FlashEmbed|url=https://example.com/yourgame.swf|width=640|height=480}}

edit JS - https://www.gamebrew.org/wiki/MediaWiki:RuffleLoader.js edit css - https://www.gamebrew.org/wiki/Template:FlashEmbed/styles.css

Advertising: