Template guide

From Rpcvdraft

Revision as of 12:35, 11 November 2007 by Admin (Talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)

Templates

Chris is working on several templates as administrator. Templates as standard features. For example the navigation box to the left could be a template. In edit mode, {{Template example}} is all that somebody needs to type to insert a template.

Some templates allow variables to be placed in them. It is also possible to use a template to create a template. See the group template notes below. A template can be in image, a table with text or a table with text and images.

Group Template

It would be nice to have a standard box (template) on the right for every group. This box might contain a lot of information suggested by others. For example, the Group number, period of service, place of training, type of group, approximated number of PCVs. Group motto, brief note about service, Group Logo or some other requested feature might be included. It would be nice if the box was visually pleasing. Let me call this the group template (in the form of a table that looks like a box).

Now we have our box. We can assign some variables instead the actual text. For the non-programmers, this means we can tell the template what to use for a group number and the template then places it in the correct place. This is handy in making it look pretty and standardizing the way the information looks.

Chris's thinking is that the code for this kind of template looks imposing because it takes up lots of lines. Typically this would be placed at the top of a group description page in edit mode. Much better to see something like {{GroupXVI}}</nowiki so contributors can get right to the content.

Personal tools