Template:War in Afghanistan
Categories: Military and War Stickers | Stickers
Description
To add this sticker to a profile, place the string similar to the text in Code used: column of Examples table anywhere in the biography part of the profile. Usually you should put it next to the text describing a Sticker, but it should always be below the == Biography == heading and above the == Sources == heading.
Info
Name: | War in Afghanistan |
Type: | Sticker |
Group: | Military |
Subgroup: | |
Status: | Approved |
Usage: | Pages using the template |
Parameters usage stats: | Parameter usage on profiles |
Map of Profiles: | WikiTree+ Maps |
Edit: | Template Documentation |
This template is managed by the War in Afghanistan and the Military and War Projects.
This is a sticker and should be placed below the biography header of profiles, it is not a project box, which for this project is {{War in Afghanistan Project}}.
Format
{{War in Afghanistan
| image = image file
| startdate = mmm dd, yyyy
| enddate= mmm dd, yyyy
| branch = <service branch> or <country>
| units= unit1; unit2, etc
| unit= first unit served in
| rank=rank}}
The image can be a country or unit flag, etc. If not entered a default image will display
|branch= displays on the sticker - "served with the <branch> during the War in Afghanistan", it can be the country, or the branch - United States Army, United States Navy, etc
if |rank is entered, that will display on the text prior to the name, if not, the profile prefix entry, if present, will be used.
The |units= parameter is free text so the template cannot make assignments to a category using this parameter since it can
- be more specific than the level we are creating categories for, i.e. Company B, 1st Battalion, 1st Regiment
- have parent commands of Brigade, Division, Army, etc
- have abbreviations, i.e. 1st Regt.
- have multiple units, i.e 1st Infantry; 7th Cavalry
To overcome this, you can identify the first unit served in using |unit=. To correctly create the category, add |unit=<unit> to the sticker line, and the sticker will format the category name to add the profile to using <unit>, <branch>, War in Afghanistan. If multiple units are listed, to add the profile to the 2nd, 3rd, etc., the profile will need to be added to the category explicitly with [[Category: <unit>, <branch>, War in Afghanistan]] for each of them. Examples of <unit>, based on the most specific name that you know, are:
- 1st Marine Division
- United States Marine Corps
- United States Navy
- United States of America
If the category listing on the profile shows up as RED check the spelling/punctuation and the parent category (if a US Marine unit, look in Category: United States Marine Corps, War in Afghanistan to see if it is spelled the same way. If all looks correct, you can create the new category, default text for the new category should be listed in the HELP! section of the parent category.
If no |unit is listed, the profile will be added to Category: War in Afghanistan
Examples
Code used: | Category added: | Displays as: |
---|---|---|
{{War in Afghanistan|branch=United States Army}} | Category:United States Army, War in Afghanistan | |
{{War in Afghanistan |startdate=January 27, 2012 |enddate=April 2, 2014 |branch=United States Marine Corps |units=1st Marine Division |unit=1st Marine Division |rank=Sergeant }} | Category:1st Marine Division, United States Marine Corps, War in Afghanistan |
Parameters
Parameter | Usage | Type | Description | Example | Values |
---|---|---|---|---|---|
branch | Preferred | Text | AutoGenerated | ' | |
rank | Preferred | Text | AutoGenerated | ' | |
startdate | Preferred | Text | AutoGenerated | ' | |
enddate | Preferred | Text | AutoGenerated | ' | |
unit | Preferred | Text | AutoGenerated | ' | |
units | Preferred | Text | AutoGenerated | ' | |
image | Preferred | Image | AutoGenerated | ' |
This page was last modified 15:15, 30 November 2019. This page has been accessed 433 times.