Template:Upload movie: Difference between revisions

From CSDMS
No edit summary
No edit summary
Line 16: Line 16:
==Information Page: {{BASEPAGENAME}} ==
==Information Page: {{BASEPAGENAME}} ==
=== Play {{#arraymap:{{{Movie type|}}}|,|x|[[Movie type::x]]}} ===
=== Play {{#arraymap:{{{Movie type|}}}|,|x|[[Movie type::x]]}} ===
{{#vardefine:youtubecode|{{#replace:{{#replace:{{#explode:{{#replace:{{#explode:{{anchorencode:[[Upload movie::{{{Upload movie|}}}]]}}|:|2}}|\-|-}}|\|0}}|-|-}}|\}}}}
{{#vardefine:youtubecode|{{#explode:{{#explode:{{anchorencode:[[Upload movie::{{{Upload movie|}}}]]}}|:|2}}|.|0}}}}
{{#widget:YouTube|id={{#var:youtubecode}}}}
{{#widget:YouTube|id={{#var:youtubecode}}}}
[[Upload image movie::Image:{{{Upload image movie|}}}|]]
[[Upload image movie::Image:{{{Upload image movie|}}}|]]
{{anchorencode:[[Upload movie::{{{Upload movie|}}}]]}}
{{#explode:{{anchorencode:[[Upload movie::{{{Upload movie|}}}]]}}|:|2}}
{{#explode:{{#explode:{{anchorencode:[[Upload movie::{{{Upload movie|}}}]]}}|:|2}}|.|0}}
{{#replace:{{#explode:{{anchorencode:[[Upload movie::{{{Upload movie|}}}]]}}|:|2}}|\-|-}}
{{#explode:{{#replace:{{#explode:{{anchorencode:[[Upload movie::{{{Upload movie|}}}]]}}|:|2}}|\-|-}}|\|0}}
{{#replace:{{#explode:{{#replace:{{#explode:{{anchorencode:[[Upload movie::{{{Upload movie|}}}]]}}|:|2}}|\-|-}}|\|0}}|-|-}}
{{#replace:{{#replace:{{#explode:{{#replace:{{#explode:{{anchorencode:[[Upload movie::{{{Upload movie|}}}]]}}|:|2}}|\-|-}}|\|0}}|-|-}}|\}}
</includeonly>
</includeonly>
<!--The next didn't work anymore after the attempt to upgrade the page from Mediawiki 16.5 to 18.1; so we went back to 16.5; so the code is slightly changed, see above {{#vardefine:youtubecode|{{#replace:{{#replace:{{#explode:{{#replace:{{#explode:{{anchorencode:[[Upload movie::{{{Upload movie|}}}]]}}|:|2}}|\-|&#45;}}|\|0}}|&#45;|-}}|\}}}}-->

Revision as of 16:48, 24 January 2012

This is the 'Upload movie' template. It should be called in the following format:

{{Upload movie
|Movie type=
|Upload movie=
|Upload image movie=
|Caption movie=
}}

Edit the page to see the template text.