Forum:How do you create a template?

Is it as simple as, for example, creating a page that says "Template:Infobox film", and then putting. Or is it not that simple. Thanks.Cinemania 14:50, July 17, 2010 (UTC)


 * Yes and no the code you posted is the code to use it on a page, not the actual infobox code. but creating the template page is that easy. it just infobox is not a simple example as it use a log if IF statements. -- 20:40, July 17, 2010 (UTC)


 * What you want to do is edit w:c:templates:Template:Infobox film and copy the that page. then on you wiki it as you said creat a page called Template:Infobox film and paste the code there. However This wiki transcluded other template You should already have Template:! and Template:Clr on your wiki, but you will also need to copy:


 * 1) w:c:templates:Template:Documentation
 * 2) w:c:templates:Template:Infobox film/doc
 * 3) w:c:templates:Template:Tocright


 * -- 21:55, July 17, 2010 (UTC)


 * Note what you have shown above looks more like the input list for a Wikipedia one as it also contains a sub template call to " ". Wikipedia template's code (visible in edit (view source) tab on the template page Here) Is NOT directly compatible with the default version of template Infobox used on (new) Wikia Wikis.  - see Rodguebfl's link to a wikia version of Template film on the templates wiki above and adapt that, which does not use a separate infobox 'meta' template.


 * Add extra lines or change the basic code




 * Code blocks that make up each line in the infobox to suit with a new title and a new 'parameter name - The bit in { – } which relate to the | writer = your data entries that goes on the article page in the form you showed above at top of page. Were your data is what you wish to display in that particular articles infobox, and may be different in each article the box is used on.


 * Note for future reference wikipedia uses labelx and datax for the data rows in a typical Infobox based on wikipedia:Template:Infobox, were as Wikia's standard Infobox uses 'row x title' and 'row x info' on most recent wikis supplied with the default template:infobox. Were x= the row number. A lot of earlier wikis adapted the wikipedia naming convention for their basic infobox template before the simple version became a 'std issue' for new wikis.


 * Also Infoboxes can be created in two ways,
 * a) as the film one on templates wiki from scratch. or
 * b) as the wikipedia one using a (meta / core) infobox template and just passing data to it.
 * The help page for infoboxes on wikipedia here also describes how to create them and a look at a few examples (in edit / view source mode to see the real code within the template page) makes it clearer (some of the time)  - BulldozerD11 00:05, July 18, 2010 (UTC)