Πρότυπο:Arraymap strip writer data

From protonation
Jump to navigation Jump to search


Template properties [edit]
Ontology: MyMDb
Template: Movie
Required extensions
{{
i
}} Template documentation [edit]


This template is used inside an arraymap function.

The arraymap function takes the writers string from OMDb and breaks it at commas.

Then this template takes each sub-string, which is in the form: aaa (bbb) and breaks it into aaa and bbb where aaa is the writer's name and bbb is the type of writing this writer wrote.

It then assigns those values to a writer internal object stored inside the movie page.

Test page