Changes between Version 4 and Version 5 of PageTemplates


Ignore:
Timestamp:
Sep 8, 2015 8:31:17 AM (9 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PageTemplates

    v4 v5  
    1 = Wiki Page Templates =
    2 
    3   ''(since [http://trac.edgewall.org/milestone/0.11 0.11])''
     1= Wiki Page Templates
    42
    53The default content for a new wiki page can be chosen from a list of page templates.
    64
    7 That list is made up from all the existing wiki pages having a name starting with ''PageTemplates/''.
    8 The initial content of a new page will simply be the content of the chosen template page, or a blank page if the special ''(blank page)'' entry is selected. When there's actually no wiki pages matching that prefix, the initial content will always be the blank page and the list selector will not be shown (i.e. this matches the behavior we had up to now).
     5That list is generated from all the wiki pages having a name starting with ''PageTemplates/''.
     6The initial content of a new page will simply be the content of the chosen template page, or a blank page if the special ''(blank page)'' entry is selected. When there are no wiki pages with the ''PageTemplates/'' prefix, the initial content will always be the blank page and the list selector will not be shown, ie this matches the behavior we had up to now.
    97
    108To create a new template, simply create a new page having a name starting with ''PageTemplates/''.
    119
    12 (Hint: one could even create a ''!PageTemplates/Template'' for facilitating the creation of new templates!)
     10Hint: one could even create a ''!PageTemplates/Template'' for facilitating the creation of new templates!
    1311
    14 After you have created your new template, a drop-down selection box will automatically appear on any new wiki pages that are created.  By default it is located on the right side of the 'Create this page' button.
     12After the first template has been created, a drop-down selection box will automatically appear on any new wiki pages that are created. By default it is located on the right side of the 'Create this page' button. The default selection will be ''blank page'', or ''!DefaultPage'' if ''!PageTemplates/DefaultPage'' exists.
    1513
    1614Available templates:
    1715[[TitleIndex(PageTemplates/)]]
     16
    1817----
    1918See also: TracWiki
    20 
    21 
    22 = Template for a member page layout. Replace everything <...> and complete content. =
    23 {{{
    24 == <your name> ==
    25 {{{#!table align=left style="border: 0px solid; vertical-align:text-top; width: 100%"
    26    {{{#!tr
    27       {{{#!td style="border: none"
    28          [[Image(<your picture>, left, margin-right=20, margin-bottom=20, border=2, nolink)]]
    29 === Contact ===
    30 <your name> \\
    31 Institut für Meteorologie und Klimatologie\\
    32 Herrenhäuser Str. 2\\
    33 Room <your room>\\
    34 30419 Hannover\\
    35 
    36 Phone: +49 511 762-<your number>\\
    37 Email: <your imuk username>@muk.uni-hannover.de
    38       }}}
    39    }}}
    40 }}}
    41 
    42 === Curriculum Vitae ===
    43     * ...
    44     * ...
    45 
    46 === Professional interests ===
    47     * ...
    48     * ...
    49 
    50 === Current Projects ===
    51     * '''<project name>''' \\ Project type: <project type> \\ Duration: <time period> \\ Description: <description>.
    52  [[attachment:<file>|Download]]
    53 
    54 === Former Projects ===
    55     * ...
    56 
    57 === Conference contributions ===
    58     *  '''''<authors:title>''' \\ <notes> \\ [[attachment:<file>|PDF]]
    59 
    60 === Publications ===
    61     *  '''''<authors:title>''' \\ <notes> \\ [[attachment:<file>|PDF]]
    62 
    63 === Other contributions ===
    64    * ...
    65 
    66 === Recommmended links ===
    67    * [[Animations|Animations of PALM simulations]]
    68 }}}
    69 
    70 = Formatting hints =
    71 Please note:
    72 double brackets are a convention, single brackets will work for standard links as well, but descriptive titles and so forth are different when using single brackets! So please follow the following convention...\\\\
    73 
    74 Absolute links:
    75 {{{
    76 [[page]]
    77 }}}
    78 Relative links (e.g. page in the same parent directory):
    79 {{{
    80 [[../page]]
    81 }}}
    82 External links:
    83 {{{
    84 [[http://www.edgewall.com|Edgewall Software]]
    85 }}}
    86 Link to attachment:
    87 {{{
    88 [[attachment:filename]]
    89 }}}
    90 Links with name:
    91 {{{
    92 [[linkedpage|texttoappear]]
    93 }}}
    94 Example for a relative path links inside the file /doc/app/parpar to /doc/app/sppar#... with a descriptive title
    95 {{{
    96 [[../sppar#averaging_interval_sp|averaging_interval_sp]]
    97 }}}
    98 Link to a directory/file in the repository (e.g.):
    99 {{{
    100 [[source:palm/trunk/SCRIPTS/NCL]]
    101 }}}
    102 Using images (here from attachment):
    103 {{{
    104 [[Image(image.jpg)]]
    105 }}}
    106 You can use several options for the image, e.g.:
    107 {{{
    108 [[Image(image.jpg, left, margin-right=20, margin-bottom=20, border=2, nolink)]]
    109 }}}
    110 will align the image left with a margin on the right/bottom side of 20px, an image border of 2px (standard color). The "nolink" option means that the image will not be a link to the image file, which is the standard setting in trac.\\
    111 \\
    112 Standard table:\\
    113 ||='''Parameter Name'''  =||='''Type'''  =||='''Default Value'''  =||='''Explanation'''  =||
    114 |----------------
    115 {{{#!td style="vertical-align:top; text-align:left;width: 150px"
    116 [=#averaging_interval '''averaging_interval''']
    117 }}}
    118 {{{#!td style="vertical-align:top; text-align:left;width: 50px"
    119 R
    120 }}}
    121 {{{#!td style="vertical-align:top; text-align:left;width: 100px"
    122 0.0
    123 }}}
    124 {{{#!td
    125 Averaging interval for all output of temporally averaged data (in s).\\\\
    126 
    127 This parameter defines the time interval length for temporally averaged data (vertical profiles, spectra, 2d cross-sections, 3d volume data). By default, data are not subject to temporal averaging. The interval length is limited by the parameter
    128 [[#dt_data_output_av|dt_data_output_av]]. In any case, '''averaging_interval <= dt_data_output_av''' must hold.\\\\
    129 
    130 If an interval is defined, then by default the average is calculated from the data values of all timesteps lying within this interval. The number of time levels entering into the average can be reduced with the parameter [[#dt_averaging_input|dt_averaging_input]].\\\\
    131 
    132 If an averaging interval can not be completed at the end of a run, it will be finished at the beginning of the next restart run. Thus for restart runs, averaging intervals do not necessarily begin at the beginning of the run.\\\\
    133 
    134 Parameters [[#averaging_interval_pr|averaging_interval_pr]] and [[#averaging_interval_sp|averaging_interval_sp]] can be used to define different averaging intervals for vertical profile data and spectra, respectively.
    135 }}}
    136 |----------------
    137 {{{#!td style="vertical-align:top"
    138 [=#<insert_parameter_name> '''<insert_parameter_name>''']
    139 }}}
    140 {{{#!td style="vertical-align:top"
    141 <insert type>
    142 }}}
    143 {{{#!td style="vertical-align:top"
    144 <insert value>
    145 }}}
    146 {{{#!td
    147 <insert explanation>
    148 }}}
    149 
    150 Table row with nesting:\\
    151 
    152 {{{#!td style="vertical-align:top"
    153 [=#<insert_parameter_name> '''<insert_parameter_name>''']
    154 }}}
    155 {{{#!td style="vertical-align:top"
    156 <insert type>
    157 }}}
    158 {{{#!td style="vertical-align:top"
    159 <insert value>
    160 }}}
    161 {{{#!td
    162 <insert explanation>
    163 ||=C1   =||=C2    =||
    164 ||Text1  ||Text2  ||
    165 <insert explanation>
    166 }}}
    167 
    168 Code of tables above:
    169 {{{
    170 Standard table:\\
    171 ||='''Parameter Name'''  =||='''Type'''  =||='''Default Value'''  =||='''Explanation'''  =||
    172 |----------------
    173 {{{#!td style="vertical-align:top; text-align:left;width: 150px"
    174 [=#averaging_interval '''averaging_interval''']
    175 }}}
    176 {{{#!td style="vertical-align:top; text-align:left;width: 50px"
    177 R
    178 }}}
    179 {{{#!td style="vertical-align:top; text-align:left;width: 100px"
    180 0.0
    181 }}}
    182 {{{#!td
    183 Averaging interval for all output of temporally averaged data (in s).\\\\
    184 
    185 This parameter defines the time interval length for temporally averaged data (vertical profiles, spectra, 2d cross-sections, 3d volume data). By default, data are not subject to temporal averaging. The interval length is limited by the parameter
    186 [[#dt_data_output_av|dt_data_output_av]]. In any case, '''averaging_interval <= dt_data_output_av''' must hold.\\\\
    187 
    188 If an interval is defined, then by default the average is calculated from the data values of all timesteps lying within this interval. The number of time levels entering into the average can be reduced with the parameter [[#dt_averaging_input|dt_averaging_input]].\\\\
    189 
    190 If an averaging interval can not be completed at the end of a run, it will be finished at the beginning of the next restart run. Thus for restart runs, averaging intervals do not necessarily begin at the beginning of the run.\\\\
    191 
    192 Parameters [[#averaging_interval_pr|averaging_interval_pr]] and [[#averaging_interval_sp|averaging_interval_sp]] can be used to define different averaging intervals for vertical profile data and spectra, respectively.
    193 }}}
    194 |----------------
    195 {{{#!td style="vertical-align:top"
    196 [=#<insert_parameter_name> '''<insert_parameter_name>''']
    197 }}}
    198 {{{#!td style="vertical-align:top"
    199 <insert type>
    200 }}}
    201 {{{#!td style="vertical-align:top"
    202 <insert value>
    203 }}}
    204 {{{#!td
    205 <insert explanation>
    206 }}}
    207 
    208 Table row with nesting:\\
    209 
    210 {{{#!td style="vertical-align:top"
    211 [=#<insert_parameter_name> '''<insert_parameter_name>''']
    212 }}}
    213 {{{#!td style="vertical-align:top"
    214 <insert type>
    215 }}}
    216 {{{#!td style="vertical-align:top"
    217 <insert value>
    218 }}}
    219 {{{#!td
    220 <insert explanation>
    221 ||=C1   =||=C2    =||
    222 ||Text1  ||Text2  ||
    223 <insert explanation>
    224 }}}
    225 }}}
    226 
    227 ----
    228 
    229 Table codes with '''Class/Group''':\\
    230 {{{
    231 ||='''Parameter Name'''  =||='''Class/Group'''  =||='''Type'''  =||='''Default Value'''  =||='''Explanation'''  =||
    232 |----------------
    233 {{{#!td style="vertical-align:top"
    234 [=#<insert_parameter_name> '''<insert_parameter_name>''']
    235 }}}
    236 {{{#!td style="vertical-align:top"
    237 <insert class/group>
    238 }}}
    239 {{{#!td style="vertical-align:top"
    240 <insert type>
    241 }}}
    242 {{{#!td style="vertical-align:top"
    243 <insert value>
    244 }}}
    245 {{{#!td
    246 <insert explanation>
    247 }}}
    248 }}}
    249 \\\\
    250 ||='''Parameter Name'''  =||='''Class'''  =||='''Type'''  =||='''Default Value'''  =||='''Explanation'''  =||
    251 |----------------
    252 {{{#!td style="vertical-align:top"
    253 [=#<insert_parameter_name> '''<insert_parameter_name>''']
    254 }}}
    255 {{{#!td style="vertical-align:top"
    256 <insert class>
    257 }}}
    258 {{{#!td style="vertical-align:top"
    259 <insert type>
    260 }}}
    261 {{{#!td style="vertical-align:top"
    262 <insert value>
    263 }}}
    264 {{{#!td
    265 <insert explanation>
    266 }}}
    267 
    268 ----
    269 
    270 
    271 A new macro was installed: '''CRev'''\\
    272 It's purpose is to get changeset information about a specific revision. It contains the two optional arguments ''att'' and ''rev'' (usage of ''rev'' requires usage of ''att'').\\
    273 \\
    274 '''Usage:'''
    275 {{{
    276 [[CRev(att,rev)]],
    277 }}}
    278 where ''att'' can be set to 0 (default, revision number), 1 (date), 2 (author), 3 (commit message) . ''rev'' is the number of the revision.\\
    279 \\
    280 '''Examples:'''\\
    281 
    282 Revision: [[CRev(0)]] is the same as [[CRev]]
    283 
    284 Date: [[CRev(1)]]
    285 
    286 Author: [[CRev(2)]]
    287 
    288 Message: [[CRev(3)]]
    289 
    290 
    291 
    292 Revision: [[CRev(0,500)]]
    293 
    294 Date: [[CRev(1,500)]]
    295 
    296 Author: [[CRev(2,500)]]
    297 
    298 Message: [[CRev(3,500)]]
    299 
    300 '''Code of the text above:'''
    301 {{{
    302 Revision: [[CRev(0)]] is the same as [[CRev]]
    303 
    304 Date: [[CRev(1)]]
    305 
    306 Author: [[CRev(2)]]
    307 
    308 Message: [[CRev(3)]]
    309 
    310 
    311 
    312 Revision: [[CRev(0,500)]]
    313 
    314 Date: [[CRev(1,500)]]
    315 
    316 Author: [[CRev(2,500)]]
    317 
    318 Message: [[CRev(3,500)]]
    319 }}}