Difference between revisions of "Template:Day/video"

From Gunsopedia
Jump to: navigation, search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{#tag:videoflash|{{{ID}}}{{!}}400{{!}}{{{height|265}}}}}
 
{{#tag:videoflash|{{{ID}}}{{!}}400{{!}}{{{height|265}}}}}
 
+
{{#ifeq:{{FULLPAGENAME}}|{{BASEPAGENAME}}/video|[[category:{{{month}}}]]}}<noinclude>
{{#if:{{{sort|}}} |
+
* [[Template:day]]
<includeonly><noinclude></includeonly>{{DEFAULTSORT:{{{sort}}}/history}}<includeonly></noinclude></includeonly>
+
* [[Template:day/article]]
}}
+
* [[Template:day/history]]
[[category:{{{month}}}| ]]
+
* [[Template:day/gallery]]
<includeonly><noinclude></includeonly>[[category:featured videos]]<includeonly></noinclude></includeonly><noinclude>
+
* [[Template:day/image]]
 
+
* [[Template:day/video]]
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
Line 13: Line 13:
 
|height=  
 
|height=  
 
|month=  
 
|month=  
|sort=
 
 
}}
 
}}
</pre>
+
<noinclude>[[category:featured videos]]
 +
{{DEFAULTSORT:}}</pre>
 
; Parameters
 
; Parameters
 
* '''ID''' &mdash; the id of the youtube vid.  eg., if the url is "youtu.be/HDz0Nr6RMfw" the ID is "HDz0Nr6RMfw".  (it's a funny video about cats, if you're wondering.
 
* '''ID''' &mdash; the id of the youtube vid.  eg., if the url is "youtu.be/HDz0Nr6RMfw" the ID is "HDz0Nr6RMfw".  (it's a funny video about cats, if you're wondering.
 
* '''height''' &mdash; '''optional:''' number in pixels (don't put "px" in) - default is 265
 
* '''height''' &mdash; '''optional:''' number in pixels (don't put "px" in) - default is 265
 
* '''month''' &mdash; what it says on the tin
 
* '''month''' &mdash; what it says on the tin
* '''sort''' &mdash; the value to be given to the {{DEFAULTSORT:}} key. Only used to provide a leading zero to the first nine days of a month. Eg., June 4 is June 04. For 2-digit dates, leave blank.  
+
* '''sort''' &mdash; the value to be given to the {{DEFAULTSORT:}} key. Only used to provide a leading zero to the first nine days of a month. Eg., June 4 is June 04. For 2-digit dates, leave blank. (not working as of 4/23/13)
  
 
[[category:featured videos| ]]
 
[[category:featured videos| ]]
Line 28: Line 28:
 
[[category:Format templates]]
 
[[category:Format templates]]
 
{{permalock}}
 
{{permalock}}
<noinclude>
+
</noinclude>

Latest revision as of 18:55, 29 June 2015

[edit] Usage

{{day/video
|ID= 
|height= 
|month= 
}}
<noinclude>[[category:featured videos]]
{{DEFAULTSORT:}}
Parameters
  • ID — the id of the youtube vid. eg., if the url is "youtu.be/HDz0Nr6RMfw" the ID is "HDz0Nr6RMfw". (it's a funny video about cats, if you're wondering.
  • heightoptional: number in pixels (don't put "px" in) - default is 265
  • month — what it says on the tin
  • sort — the value to be given to the key. Only used to provide a leading zero to the first nine days of a month. Eg., June 4 is June 04. For 2-digit dates, leave blank. (not working as of 4/23/13)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox