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
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
  <!-- load the template’s CSS -->
<templatestyles src="Template:FlashEmbed/styles.css" />
  <templatestyles src="Template:FlashEmbed/styles.css" />


  <div class="ruffle-player">
<htmltag tagname="script"  
     <div class="preloader">
     src="/index.php?title=MediaWiki:RuffleLoader.js&amp;action=raw&amp;ctype=text/javascript">
      <!-- background/logo image -->
</htmltag>
      <img
 
        src="{{{bgimage|https://flashmuseum.org/wp-content/uploads/2023/06/The_Right_Mix_logo.png}}}"
<htmltag tagname="object"
        alt="{{{title|Play}}}"
    type="application/x-shockwave-flash"
      />
    data="{{{url}}}"  
      <!-- title text -->
    width="{{{width|600}}}"  
      <div class="preloader_title">
    height="{{{height|400}}}"
        {{{title|The Right Mix}}}
    style="display:block; margin-left:auto; margin-right:auto;">
      </div>
  <htmltag tagname="param" name="movie" value="{{{url}}}" selfclose="true" />
      <!-- play button -->
  <htmltag tagname="param" name="allowScriptAccess" value="never" selfclose="true" />
      <div class="preloader_button wp-block-button__link">
</htmltag>
        {{{button|Play Now}}}
      </div>
    </div>


    <!-- your original Flash embed -->
    <htmltag
      tagname="object"
      type="application/x-shockwave-flash"
      data="{{{url}}}"
      width="{{{width|600}}}"
      height="{{{height|400}}}"
    >
      <htmltag name="movie"      value="{{{url}}}"                tagname="param" selfclose="true" />
      <htmltag name="allowScriptAccess" value="never" tagname="param" selfclose="true" />
    </htmltag>
  </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: