Difference between revisions of "Template:Dt"
Jump to navigation
Jump to search
m |
m (7 revisions imported) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{!}} {{#ifeq:{{{1}}}|f|style="background-color: #CCE"|style="background-color: #EEC"}} {{!}} <code>{{#if:{{{2|}}}|<span style{{=}}"color: #BBB;">{{{2}}}/</span>}}{{{3}}}</code> |
− | {{!}} {{#ifeq:{{{1}}}|f|style="background-color: #CCE"|style="background-color: # | + | {{!}} {{#ifeq:{{{1}}}|f|style="background-color: #CCE"|style="background-color: #EEC"}} {{!}} {{{4}}} |
− | {{!}} {{#ifeq:{{{1}}}|f|style="background-color: #CCE"|style="background-color: # | + | {{!}}-</includeonly><noinclude> |
==Info== | ==Info== | ||
− | Used to help build '''d'''irectory '''t'''ree entries for tables. Usage: <code><nowiki>{{dt|<type>|<path>|<description>}}</nowiki></code>. <code>type</code> is the type of entry: <code>f</code> for a file, <code>d</code> for a directory. <code>path</code> and <code> | + | Used to help build '''d'''irectory '''t'''ree entries for tables. Usage: <code><nowiki>{{dt|<type>|<preceding path>|<entry name>|<description>}}</nowiki></code>. <code>type</code> is the type of entry: <code>f</code> for a file, <code>d</code> for a directory. <code>preceding path</code> and <code>entry name</code> make up the full path to the entry. For example: <code>/user/Abe|map</code>. The preceding path can be ommited, if the entry is on the root.<code>description</code> is the description of the entry. |
[[Category:Utility templates]] | [[Category:Utility templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 05:19, 5 April 2018
Info[edit]
Used to help build directory tree entries for tables. Usage: {{dt|<type>|<preceding path>|<entry name>|<description>}}
. type
is the type of entry: f
for a file, d
for a directory. preceding path
and entry name
make up the full path to the entry. For example: /user/Abe|map
. The preceding path can be ommited, if the entry is on the root.description
is the description of the entry.