User:Wonghk3/Sandbox/WikiTextA3

CH-13: TEMPLATES
FOLLOW samples on tutorial page... Templates

DEFINITION of a TEMPLATE
 * a container of FIXED (non-changing) CODE that can be embedded anywhere on a page and onto many pages
 * may be text, tables, images, etc
 * used to standardize page sections
 * some templates allow for us to input 'values' that provide data or links to a page

SHOW EXAMPLES
 * Example of text/table: Aberton Parish
 * Check the breadcrumb trail and Jurisdiction Table


 * Example of image template:

HOW TO CREATE A TEMPLATE 1. Created the same way an ordinary article is created 2. In Search box, type Template:user-defined Template-name 3. Click on Create the page 4. Build template instructions in the edit box, then save page

HOW TO EMBED A TEMPLATE ENTER onto the page without the word Template

HOW TO EDIT A TEMPLATE Click "Edit source" at the top of the page Click Scroll to the bottom of the page and note list of templates Click Locate template of interest, then click on "Edit" CAUTION: Editing a template will change all pages where this template is embedded. Many templates have sub-templates within them which makes following the code difficult

HOW TO EDIT ONLY ONE EMBEDDED TEMPLATE
 * To allow a template to be customized only on one page without changing the other pages using that template
 * When a template is embedded in this manner and one clicks "Edit this Page", they will see all the code used to create the template

ENTER to embed template on that one page

LIMITATIONS The size of a template is defined by the code used IN that template and cannot be adjusted when embedding

CH-14: INFOBOX- CREATING
FOLLOW samples on tutorial page... Templates

WHAT ARE INFOBOXES

ADVANTAGES OF INFOBOXES

CREATING AN INFOBOX

PARAMETERS

SAVING THE INFOBOX

RENAMING PARAMETERS

CH-15: INFOBOX - PLACING
FOLLOW samples on tutorial page... Templates

CH-16: INFOBOX - IF FUNCTION
FOLLOW samples on tutorial page... Templates