{smcl}
{* *! version 2.1.4}{...}
{vieweralsosee "mkproject" "help mkproject"}{...}
{vieweralsosee "boilerplate" "help boilerplate"}{...}
{title:Title}

{phang}
boilerplate template dta_c {hline 2} data preparation for course


{title:Description}

{pstd} 
This is a template of a .do file that cleans the data in a smaller project, like
a project a student might do for a course.


{title:Boilerplate}

{pstd}
This template creates a .do file with the following content: 

{cmd}
    capture log close
    log using <stub>.txt, replace text
    
    // What this .do file does
    // Who wrote it
    
    version <stata_version>
    clear all
    macro drop _all
    
    *use ../data/[original_data_file.dta]
    
    *rename *, lower
    *keep
    
    // prepare data
    
    *gen some_var = ...
    *note some_var: based on [original vars] \ <fn> \ [author] TS
    
    *compress
    *note: <abbrev>##.dta \ [description] \ <fn> \ [author] TS 
    *label data [description]
    *datasignature set, reset
    *save <abbrev>##.dta, replace
    
    log close
    exit
{txt}

{title:Tags}

{pstd}
This file may contain one or more of the following tags:{p_end}
{pmore}{cmd:<stata_version>} will be replaced by the Stata version{p_end}
{pmore}{cmd:<date>} will be replaced by the date{p_end}
{pmore}{cmd:<fn>} will be replaced by the file name{p_end}
{pmore}{cmd:<stub>} will be replaced by the file name without the suffix{p_end}
{pmore}{cmd:<abbrev>} will be replaced by the file name without the suffix up to the last underscore{p_end}
{pmore}{cmd:<basedir>} will be replaced by the directory in which the file is saved{p_end}
{pmore}{cmd:<as of #>} will include whatever comes after that tag only if the Stata version is # or higher{p_end}


{title:Source code}

    {view "c:\ado\plus/m\mp_dta_c.mpb":mp_dta_c.mpb}