Diff: Help/YouTubePlugin

Note: You are viewing an old revision of this page. View the current version.

Differences between version 4 and previous revision of Help/YouTubePlugin.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 4 Last edited on 9 September 2007 0:16 by harold Revert
Older page: version 3 Last edited on 22 May 2014 3:01 by harold Revert
@@ -1,117 +1,76 @@
-== Usage ==  
-{{{  
- << YouTube v=-dnL00TdmLY  
- width=425 height=350  
- size=medium|small|large 
+! Usage  
+<verbatim>  
+ <?plugin YouTube v=HxXnYEqaRiQ  
+ width=425 height=350  
+ size=medium|small|large 
  style=inline|link 
  autoplay=0|1 
- browse="Daily Pick|Most Recent|Most Viewed|Top Rated|  
- Most Discussed|Top Favorites|Most Linked|  
- Recently Featured|Most Responded|Watch on Mobile"  
- time="Today|This week|This month|All Time"  
- category="All|Autos & Vehicles|Comedy|Entertainment|  
- Film & Animation|Gadgets & Games|Howto & DIY|Music  
- News & Politics|People & Blogs|Pets & Animals|  
- Sports|Travel & Places"  
- language="All|English|Spanish|Japanese|German|Chinese|French"  
- > >  
-}}}  
+ browse="Daily Pick|Most Recent|Most Viewed|Top Rated|  
+ Most Discussed|Top Favorites|Most Linked|  
+ Recently Featured|Most Responded|Watch on Mobile"  
+ time="Today|This week|This month|All Time"  
+ category="All|Autos & Vehicles|Comedy|Entertainment|  
+ Film & Animation|Gadgets & Games|Howto & DIY|Music  
+ News & Politics|People & Blogs|Pets & Animals|  
+ Sports|Travel & Places"  
+ language="All|English|Spanish|Japanese|German|Chinese|French"  
+ ? >  
+</verbatim>  
  
-== Arguments ==  
+! Arguments 
  
-{| class="bordered"  
-|-  
-! Argument  
-! Description  
-! Default value  
-|-  
-| * *v**  
-| key of the video  
-| required, or define browse  
-|-  
-| * *browse**  
-| One of "Daily Pick", "Most Recent", "Most Viewed", "Top Rated",  
-"Most Discussed", "Top Favorites", "Most Linked", "Recently Featured",  
-"Most Responded", "Watch on Mobile"  
-| optional, if v is empty  
-|-  
-| * *time**  
-| One of "Today", "This Week", "This Month", "All Time" (optional).  
-| Today  
-|-  
-| **category**  
-| One of "All", "Autos & Vehicles", "Comedy", "Entertainment",  
-"Film & Animation", "Gadgets & Games", "Howto & DIY", "Music",  
-"News & Politics", "People & Blogs", "Pets & Animals", "Sports",  
-"Travel & Places" (optional).  
-| All  
-|-  
-| **language**  
-| One of "All", "English", "Spanish", "Japanese", "German", "Chinese", "French" (optional).  
-| All  
-|-  
-| * *width**  
-| Video width (optional) .  
-| 425  
-|-  
-| * *height**  
-| Video height (optional) .  
-| 350  
-|-  
-| * *autoplay**  
-| If autoplay=1 it starts automatically to play, otherwise to have to click on it (optional) .  
-| 0  
-|-  
-| * *style**  
-| If link will display a small icon with a link to the Youtube video (optional).  
-| inline  
-|-  
-| * *size**  
-| Video size ( medium or small or large). Overrides width and height (optional) .  
-| medium  
-|}  
+ * v=... ( required, or define browse)  
+ key of the video  
+ * browse=... (optional, if v is empty)  
+ One of "Daily Pick", "Most Recent", "Most Viewed", "Top Rated",  
+ "Most Discussed", "Top Favorites", "Most Linked", "Recently Featured",  
+ "Most Responded", "Watch on Mobile"  
+ * time=Today (optional)  
+ One of "Today", "This Week", "This Month", "All Time"  
+ * category=All (optional)  
+ One of "All", "Autos & Vehicles", "Comedy", "Entertainment",  
+ "Film & Animation", "Gadgets & Games", "Howto & DIY", "Music",  
+ "News & Politics", "People & Blogs", "Pets & Animals", "Sports",  
+ "Travel & Places"  
+ * language=All (optional)  
+ One of "All", "English", "Spanish", "Japanese", "German", "Chinese", "French"  
+ * width=425 (optional. Default: 425)  
+ * height=350 (optional. Default: 350)  
+ * autoplay=0 (optional. Default: 0)  
+ if autoplay=1 it starts automatically to play, otherwise to have to click on it.  
+ * style=inline or link (optional. Default: inline)  
+ if link will display a small icon with a link to the youtube video  
+ * size= medium or small or large (optional. Default: medium ).  
+ Overrides width and height. 
  
-== Examples ==  
+! Example  
  
-=== Link === 
+<verbatim>  
+link:  
+ <?plugin YouTube v =HxXnYEqaRiQ style =link ?>  
+inline:  
+ <?plugin YouTube v =HxXnYEqaRiQ ?>  
+Daily Pick:  
+ <?plugin YouTube browse ="Daily Pick" ?>  
+Top Rated (This Month):  
+ <?plugin YouTube browse ="Top Rated" time ="This Month" ?>  
+</verbatim>  
  
-{{{  
-<< YouTube v=-dnL00TdmLY style=link>>  
-}}}  
+link:  
+ <?plugin YouTube v=HxXnYEqaRiQ style=link ?
  
-<< YouTube v=-dnL00TdmLY style=link>
+inline:  
+ <?plugin YouTube v=HxXnYEqaRiQ ?
  
-=== Inline ===  
+Daily Pick:  
+ <?plugin YouTube browse ="Daily Pick" ?>  
  
-{{{  
-<< YouTube v =-dnL00TdmLY >>  
-}}}  
+Top Rated (This Month):  
+ <?plugin YouTube browse ="Top Rated" time="This Month" ?
  
-<<YouTube v=-dnL00TdmLY>>  
+See LisaNova  
  
-=== Daily Pick ===  
-  
-{{{  
-<<YouTube browse="Daily Pick">>  
-}}}  
-  
-< !-- <<YouTube browse="Daily Pick">> -->  
-  
-=== Top Rated (This Month) ===  
-  
-{{{  
-<<YouTube browse="Top Rated" time="This Month">>  
-}}}  
-  
-<!-- <<YouTube browse="Top Rated" time="This Month">> -->  
-  
-== See Also ==  
-* [[Help:VideoPlugin]]  
-  
-== Author ==  
-* [[Help :Reini Urban|Reini Urban]]  
-  
-<noinclude>  
+! Author  
+PhpWiki :ReiniUrban  
 ---- 
-[[ PhpWikiDocumentation]] [[CategoryWikiPlugin]]  
-</noinclude>  
+PhpWikiDocumentation Help:WikiPlugin  

version 4

Usage

  <?plugin YouTube v=HxXnYEqaRiQ
           width=425 height=350
           size=medium|small|large
           style=inline|link
           autoplay=0|1
           browse="Daily Pick|Most Recent|Most Viewed|Top Rated|
                   Most Discussed|Top Favorites|Most Linked|
                   Recently Featured|Most Responded|Watch on Mobile"
           time="Today|This week|This month|All Time"
           category="All|Autos & Vehicles|Comedy|Entertainment|
                   Film & Animation|Gadgets & Games|Howto & DIY|Music
                   News & Politics|People & Blogs|Pets & Animals|
                   Sports|Travel & Places"
           language="All|English|Spanish|Japanese|German|Chinese|French"
  ?>

Arguments

  • v=... (required, or define browse) key of the video
  • browse=... (optional, if v is empty) One of "Daily Pick", "Most Recent", "Most Viewed", "Top Rated", "Most Discussed", "Top Favorites", "Most Linked", "Recently Featured", "Most Responded", "Watch on Mobile"
  • time=Today (optional) One of "Today", "This Week", "This Month", "All Time"
  • category=All (optional) One of "All", "Autos & Vehicles", "Comedy", "Entertainment", "Film & Animation", "Gadgets & Games", "Howto & DIY", "Music", "News & Politics", "People & Blogs", "Pets & Animals", "Sports", "Travel & Places"
  • language=All (optional) One of "All", "English", "Spanish", "Japanese", "German", "Chinese", "French"
  • width=425 (optional. Default: 425)
  • height=350 (optional. Default: 350)
  • autoplay=0 (optional. Default: 0) if autoplay=1 it starts automatically to play, otherwise to have to click on it.
  • style=inline or link (optional. Default: inline) if link will display a small icon with a link to the youtube video
  • size=medium or small or large (optional. Default: medium). Overrides width and height.

Example

link:
  <?plugin YouTube v=HxXnYEqaRiQ style=link ?>
inline:
  <?plugin YouTube v=HxXnYEqaRiQ ?>
Daily Pick:
  <?plugin YouTube browse="Daily Pick" ?>
Top Rated (This Month):
  <?plugin YouTube browse="Top Rated" time="This Month" ?>
link
YouTube video HxXnYEqaRiQ
inline
Daily Pick
Plugin YouTube failed. Invalid argument v
Top Rated (This Month)
Plugin YouTube failed. Invalid argument v

See LisaNova

Author

PhpWiki:ReiniUrban


PhpWikiDocumentation Help:WikiPlugin