Difference between revisions of "Template:Infobox/video"

From CWCki
Jump to navigation Jump to search
m
 
(39 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:260px;"
<noinclude>'''''NOTE:''' This Infobox is for use ONLY with TRUE and HONEST CWC Videos, Listed in [[List_of_videos|the video section]].''
|-
 
! colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em;" | ''{{{name}}}''
''For infoboxes, meant for other videos {{c|Infoboxes|go here}}.''
 
There are two ways to include the video in the infobox, one is by using the video variable and directly inputting the [https://www.mediawiki.org/wiki/Extension:EmbedVideo EmbedVideo] element like in the first example.
The other way is to directly supply the YouTube video ID in question (e.g: AaxuXRbdn4A). This obviously only works for YouTube videos and no other platform (although a custom video id variable can be added for any platform that EmbedVideo supports).
</noinclude>
<includeonly>{| style="border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin: .5em auto .5em auto; padding: 0.2em; font-size:89%; width:260px;-moz-border-radius:10px"
| align="center" colspan=2 bgcolor="#3366CC" style="font-size:110%; color:#ffffff;-moz-border-radius:10px" | '''{{{name}}}'''<br>
|- style="text-align:center;"
|- style="text-align:center;"
{{#if: {{{image|}}} | {{!}} colspan="2" {{!}} {{{image}}}}}
|- style="text-align:center;"
|- style="text-align:center;"
{{#if: {{{image|}}} | {{!}} colspan="2" style="padding:0.5em;" {{!}} [[{{{image}}}|{{{imagewidth|250}}}px]] }}
{{#if: {{{video|}}} | {{!}} colspan="2" {{!}} {{{video}}} }}
|-
|- style="text-align:center;"
{{#if: {{{Stardate|}}} | {{!}} '''Stardate''' {{!!}} {{{Stardate}}} }}
{{#if: {{{ytid|}}} | {{!}} colspan="2" {{!}} {{#ev:youtube|{{{ytid}}} }} }}
|-
|- valign="top"
{{#if: {{{Maker|}}} | {{!}} '''Made by''' {{!!}} {{{Maker}}} }}
{{#if:{{{ytid|}}}|
|-
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Direct link'''
{{#if: {{{Subject Matter|}}} | {{!}} '''Subject Matter''' {{!!}} {{{Subject Matter}}} }}
{{pipe}} [https://youtube.com/watch?v={{{ytid}}} YouTube], [https://ghostarchive.org/varchive/{{{ytid}}} archive] }}
|-
|- valign="top"
{{#if: {{{Performance Style|}}} | {{!}} '''Performance Style''' {{!!}} {{{Performance Style}}} }}
{{#if:{{{video|}}}|
|-
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Search for video'''
{{#if: {{{Saga|}}} | {{!}} '''Saga''' {{!!}} {{{Saga}}} }}
{{pipe}} [https://www.youtube.com/results?search_query={{urlencode:{{{name}}}}} YouTube], [https://ghostarchive.org/vidsearch?q={{urlencode:{{{name}}} }} archive]  
|-
}}
{{#if: {{{Shirt|}}} | {{!}} '''[[Chris_and_fashion|Shirt]]''' {{!!}} {{{Shirt}}} }}
|- valign="top"
|-
{{#if:{{{Stardate|}}}|
{{#if: {{{Other|}}} | {{!}} '''Other''' {{!!}} {{{Other}}} }}
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Stardate'''
{{pipe}} {{{Stardate|Game}}} }}
|- valign="top"
{{#if:{{{stardate|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Stardate'''
{{pipe}} {{{stardate|Game}}} }}
|- valign="top"
{{#if:{{{Subject Matter|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Subject Matter'''
{{pipe}} {{{Subject Matter|Game}}} }}
|- valign="top"
{{#if:{{{subject|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Subject Matter'''
{{pipe}} {{{subject|Game}}} }}
|- valign="top"
{{#if:{{{Performance Style|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Performance Style'''
{{pipe}} {{{Performance Style|Game}}} }}
|- valign="top"
{{#if:{{{style|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Performance Style'''
{{pipe}} {{{style|Game}}} }}
|- valign="top"
{{#if:{{{Saga|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Saga'''
{{pipe}} {{{Saga|Game}}} }}
|- valign="top"
{{#if:{{{saga|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Saga'''
{{pipe}} {{{saga|Game}}} }}
|- valign="top"
{{#if:{{{Shirt|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Shirt'''
{{pipe}} {{{Shirt|Game}}} }}
|- valign="top"
{{#if:{{{shirt|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Shirt'''
{{pipe}} {{{shirt|Game}}} }}
|- valign="top"
{{#if:{{{Location|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Location'''
{{pipe}} {{{Location|Game}}} }}
|- valign="top"
{{#if:{{{location|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Location'''
{{pipe}} {{{location}}} }}
|- valign="top"
{{#if:{{{Other|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Other'''
{{pipe}} {{{Other}}} }}
|- valign="top"
{{#if:{{{other|}}}|
{{pipe}} style="white-space: nowrap;-moz-border-radius:5px;color:#ffffff;" bgcolor="#696969" align="center" {{pipe}} '''Other'''
{{pipe}} {{{other}}} }}
|-
|-
| colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:0.25em; text-align:center;" | Video Guide
{{#if: {{{previous|}}} | {{!}} colspan="2" style="background-color:#3366CC; color:#ffffff; color:#ffffff;-moz-border-radius:10px; font-size:120%; padding:0.25em; text-align:center;" {{!}} OFFICIAL and HONEST CWC [[Videos]]}}
|- style="text-align:center; font-size:95%;" valign="top"
|- style="text-align:center; font-size:95%;" valign="top"
| '''Previous'''<br />{{{previous}}}
{{#if: {{{previous|}}} | {{!}} '''previous''' <br />{{{previous}}} }}
| '''Next'''<br />{{{next}}}
{{#if: {{{next|}}} | {{!}} '''next''' <br />{{{next}}} }}
|}
|}</includeonly>
<noinclude><br style="clear:both;" />
<noinclude>{{usage|1=This template is for use on articles relating to Chris videos. It displays the video and lists key information about the video below. The format for using this template is as follows:
{{documentation}}</noinclude>
<pre>
{{Infobox/video
| name          = Chris Comes Out
| video          = {{#ev:youtube|AaxuXRbdn4A}}
| stardate      = 5 September 2008
| subject        = {{Homos|text}}, {{Sex|text}}
| style         = {{Rage|text}}
| saga          = {{ED|text}}
| shirt          = {{OrangeShirt|text}}
| other          = {{Live|text}}
| previous      = [[Link to previous video]]
| next          = [[Link to next video]]
}}</pre>
 
If you decide to use the YouTube ID element instead (ytid), the following below is a good example:
<pre>
{{Infobox/video
| name          = Chris Comes Out
| ytid          = AaxuXRbdn4A
| stardate      = 5 September 2008
| subject        = {{Homos|text}}, {{Sex|text}}
| style          = {{Rage|text}}
| saga          = {{ED|text}}
| shirt          = {{OrangeShirt|text}}
| other          = {{Live|text}}
| previous      = [[Link to previous video]]
| next          = [[Link to next video]]
}}</pre>
The full range of icons can be found [[Template:Video icon key|here]] and [[:Category:Icon Templates|here]].
==Example==
{{Infobox/video
| name          = Chris Comes Out
| video          = {{#ev:youtube|AaxuXRbdn4A}}
| stardate      = 5 September 2008
| subject        = {{Homos|text}}, {{Sex|text}}
| style          = {{Rage|text}}
| saga          = {{ED|text}}
| shirt          = {{OrangeShirt|text}}
| other          = {{Live|text}}
| previous      = [[Link to previous video]]
| next          = [[Link to next video]]
}}
 
==Example with ytid instead of direct video link==
{{Infobox/video
| name          = Chris Comes Out
| ytid          = AaxuXRbdn4A
| stardate      = 5 September 2008
| subject        = {{Homos|text}}, {{Sex|text}}
| style          = {{Rage|text}}
| saga          = {{ED|text}}
| shirt          = {{OrangeShirt|text}}
| other          = {{Live|text}}
| previous      = [[Link to previous video]]
| next          = [[Link to next video]]
}}
}}
[[Category:Infoboxes]]</noinclude>

Latest revision as of 20:39, 24 July 2024

NOTE: This Infobox is for use ONLY with TRUE and HONEST CWC Videos, Listed in the video section.

For infoboxes, meant for other videos go here.

There are two ways to include the video in the infobox, one is by using the video variable and directly inputting the EmbedVideo element like in the first example. The other way is to directly supply the YouTube video ID in question (e.g: AaxuXRbdn4A). This obviously only works for YouTube videos and no other platform (although a custom video id variable can be added for any platform that EmbedVideo supports).


Usage

These usage notes will not be included in articles bearing this template.

This template is for use on articles relating to Chris videos. It displays the video and lists key information about the video below. The format for using this template is as follows:

{{Infobox/video
| name           = Chris Comes Out
| video          = {{#ev:youtube|AaxuXRbdn4A}}
| stardate       = 5 September 2008
| subject        = {{Homos|text}}, {{Sex|text}}
| style          = {{Rage|text}}
| saga           = {{ED|text}}
| shirt          = {{OrangeShirt|text}}
| other          = {{Live|text}}
| previous       = [[Link to previous video]]
| next           = [[Link to next video]]
}}

If you decide to use the YouTube ID element instead (ytid), the following below is a good example:

{{Infobox/video
| name           = Chris Comes Out
| ytid           = AaxuXRbdn4A
| stardate       = 5 September 2008
| subject        = {{Homos|text}}, {{Sex|text}}
| style          = {{Rage|text}}
| saga           = {{ED|text}}
| shirt          = {{OrangeShirt|text}}
| other          = {{Live|text}}
| previous       = [[Link to previous video]]
| next           = [[Link to next video]]
}}

The full range of icons can be found here and here.

Example

Chris Comes Out
Search for video YouTube, archive
Stardate 5 September 2008
Subject Matter HomosHomos Homos, SexSex Sex
Performance Style RageRage Rage
Saga EDED ED
Shirt OrangeOrange Orange
Other LiveLive Live
OFFICIAL and HONEST CWC Videos
previous
Link to previous video
next
Link to next video


Example with ytid instead of direct video link

Chris Comes Out
Direct link YouTube, archive
Stardate 5 September 2008
Subject Matter HomosHomos Homos, SexSex Sex
Performance Style RageRage Rage
Saga EDED ED
Shirt OrangeOrange Orange
Other LiveLive Live
OFFICIAL and HONEST CWC Videos
previous
Link to previous video
next
Link to next video