Template talk:Anthropology

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Anthropology (Rated Template-class)
WikiProject icon This template is within the scope of WikiProject Anthropology, a collaborative effort to improve the coverage of Anthropology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 Template  This template does not require a rating on the quality scale.
 

Hidden text[edit]

I changed the template so it works now. I am going to document this below. Meanwhile there been quite a bit of discussion concerning this and that. I don't want this to distract you from the specification so I am placing it in comments as a temporary solution, just until the template gets fully in use and you can find examples of how it works. Access the commented-out area by clicking on edit.Botteville (talk)

Current documentation for dummies[edit]

We programming dummies need a few pointers. I altered the template. Here is the current use of the template:

{{Anthropology | 1 | 2 | topimage | topcaption | image | caption}}

where all the parameters are optional. If you use 2 without 1, you must leave the vertical lines for 1; e.g., ||2 gets you 2 but not 1. If you use just what you think is |2 then it will be interpreted as |1. You can leave 1 and 2 off. In that case you get the default collapsed box with whatever width it comes out to be.

  • 1 is the value of list1name, or list2name, etc., in the template as it now is. The official documentation gives you the initial values, but they are changeable and have been changed. Use of any of those may have no effect. You can find out what they now are by clicking the v or the e at the bottom of the template and looking at the code. The names are pretty easily identifiable. You must use a name exactly as it is, including case. Parameter 1, as it is called, specifies to expand the listname into its articles. If your article is listed below the listname, its name will be bolded. Except for the names of the lists, the official documentation applies.
  • 2 is the width of the box in ems; e.g., 20em, 28em, 29.5em. Those are "m" spaces. If you don't specify the width, you must take whatever it comes out to be. If you do specify it, everything in the box wraps accordingly.
  • You have a choice of picture placements within the box. Uses of topimage and topcaption put the picture and the caption above the title. Uses of image and caption put them below the title. You could theoretically use both or any combination, but what would be the point of that? "Use" means an explicit assignment such as topcaption=the caption on the top. Numbers will not work in this type of specification. Explicit specifications can go anywhere in the list. Whatever optional parameter is not specified is ignored.
  • topimage and image must be fully specified just as in a standalone picture specification. It takes the double brackets at each end. Here are a few notes: to align the picture horizontally within the box, use |center| or |left|. Otherwise you get the default, right. To determine the size of the picture within the box, just specify it as you always do for pictures, 250px, 300px, etc. You need the "px". The combination of em and px allows fine adjustment of the box width, and relative location and size of the picture within it.
  • topcaption and caption are the same as regular picture captions. You can use any font specification allowed for picture captions. Note that you can enter a caption as part of the image specification. In that case you would have two captiona, one just under the picture, and one a little below. That confuguration would find no use for most pictures, but the feature is there.Botteville (talk) 09:32, 23 March 2015 (UTC)