Jump to content
Sign in to follow this  
DoubleYou

Videos / Related Videos

Recommended Posts

Could you show an example of how/where this might be used on the wiki and place this info on the template page?

 

Just trying to envision when/why/how to employ ... also, you should probably move it to "RelatedVideos" and edit accordingly.

Share this post


Link to post
Share on other sites

I've been using it extensively on the Mod Organizer guide to integrate videos throughout. I need to figure out how to make it parse so that I don't have to put the whole

<hsyoutube title="Mod Organizer: Introduction (by Gopher)" caption="" autoplay>http://www.youtube.com/watch?v=j4ZQpzf_iAE</hsyoutube>

code in every time, as that is annoying.

 

Probably should move it to RelatedVideos, or perhaps RelVids for short.

Share this post


Link to post
Share on other sites

Unfortunately, I cannot find a way to incorporate symbols into the template without either screwing up the template calls or rendering the embedded YT HTML tags useless (e.g., using < or >). I even tried creating templates for the symbols, but same problems. If there is a way to do this, I have not found it other than possibly using a beta extension that s4n will not want us to use, due to security risk.

 

You might also want to play with the embedvideo plugin:

{{#ev:youtube|NnvZok9J3Qw|200|left|caption}}

Share this post


Link to post
Share on other sites

I got a working template here using the

{{#tag:tagname|content|attribute1=value1|attribute2=value2}}

"magic words"

 

https://wiki.step-project.com/User:DoubleYou/testpack/RelVids

 

Only thing is, I'm stuck on being able to allow it to show multiple videos. I think I can manage it by separating it into two separate templates, one to display the video, and one two do the whole "Related Videos:" thing.

 

I thought about using the embedvideo plugin, but not sure as of now. Maybe I'll expand it so the basic Video template has that option (far easier than remembering all those parameters!).

Share this post


Link to post
Share on other sites

Well, it was working a moment ago, but I'm guessing you're messing around with something...

 

Edit: Ah! NVM. It was I who was messing around...

 

Edit2: OK. I got a working solution. Will create/replace/delete templates

Share this post


Link to post
Share on other sites

Wow, I became very confused in looking at your User: template page before reading on but then saw that you did employ the #tag parser function in a way that made sense.

 

Nice work! I knew there must be a way, but I did not explore all of the magic words links that kept beckoning me in my searches for a solution :P ... glad you hunted down the method.

 

Isn't 'programming' in wiki fun?

 

Now, off with you to the SMW tutorials!

Share this post


Link to post
Share on other sites

Param 3 is the caption and would show in the lower left of the frame depicting the video.

 

There is no brake built into the video template, but the RelatedVideo template uses bullets, which act as breaks between the Video template calls.

 

You can do:

{{Video|j4ZQpzf_iAE|This is the title|This is the caption}}
{{Video|j4ZQpzf_iAE|This is the title|This is the caption}}
or:

* {{Video|j4ZQpzf_iAE|This is the title|This is the caption}}* {{Video|j4ZQpzf_iAE|This is the title|This is the caption}}
or a break could easily be added ... or use:

{{clear}}
... or a

could be added to the template, but that would require changes to RelatedVideo template.

Share this post


Link to post
Share on other sites

Which template is giving you a page break?

Edit: Ok, I see what you're getting. I'll look into that.

 

Edit2: Ok, I fixed it. Seems that you need to have right after the to not get a

paragraph added to the template, which is strange, but whatever. BTW, I also fixed it so that if you don't have a caption, it doesn't display {{{3}}} as the caption.

Share this post


Link to post
Share on other sites

Boy has this template been useful! I've used it 21 times in the Mod Organizer Guide, and now I don't have to look up the highslide code every time!

Share this post


Link to post
Share on other sites

Updated Video template

  • Made having a title optional
  • Added Embedded Video option
  • Added custom width of embedded video option
  • Added custom alignment of embedded video option

Fully backwards-compatible with old template code.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By TechAngel85
      Modlisting Template
       
      Purpose & Usage
      This template displays a stylized mod listing and instruction set/info boxes on the page. It's meant to replace the templates users are creating on their own Userspaces (which likely originated from here), as well as, replaces this template: {{Fallout4Mod}}

      Template & Parameters

      This is a large template with lots of parameters. See template page for implementation.
       
      It includes a helper template to display the flags: Template:ModlistFlag
    • By TechAngel85
      Alert Small Template
       
      Purpose & Usage
      This template displays a small, inline-block "alert" on the page.
       
      This template replaces the following templates: {{Bug Small}} , {{Construction Small}} , {{FO3 Note}} , {{FNV Note}} , {{Loot Rule}} ,  {{Notice Small}} , and {{Warning Small}}
       
      Template

      {{alert small|type=keyword|size=##|text=ContentHere}}  Parameters
      type is required and the keyword entered which determines the alert displayed. size is optional and sets the width in percentage. Default is 70. text is required and is the content of the alert.
    • By TechAngel85
      Alert Template
       
      Purpose & Usage
      This template displays a blocked out "alert" on the page.
       
      This template replaces the following templates: {{bug}} , {{construction}} , {{mcm note}} , {{MO Note}} , {{notice}} , and {{warning}}
       
      Template

      {{alert|type=keyword|size=##|text=ContentHere}}  
      Parameters
      type is required and the keyword entered which determines the alert displayed. size is optional and sets the width in percentage. Default is 70. text is required and the content of the alert.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.