Difference between revisions of "Template:Dt"

From Pikmin Technical Knowledge Base
Jump to navigation Jump to search
m
m (7 revisions imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{!}} {{#ifeq:{{{1}}}|f|style="background-color: #CCE"|style="background-color: #EEC"}} {{!}} <code>{{{2}}}</code>
+
<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: #EEC"}} {{!}} {{{3}}}
+
{{!}} {{#ifeq:{{{1}}}|f|style="background-color: #CCE"|style="background-color: #EEC"}} {{!}} {{{4}}}
 
{{!}}-</includeonly><noinclude>
 
{{!}}-</includeonly><noinclude>
  
 
==Info==
 
==Info==
Used to help build '''d'''irectory '''t'''ree entries for tables. Usage: <code><nowiki>{{dt|&lt;type&gt;|&lt;path&gt;|&lt;description&gt;}}</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>description</code> are the full path to the entry and the description of the entry.
+
Used to help build '''d'''irectory '''t'''ree entries for tables. Usage: <code><nowiki>{{dt|&lt;type&gt;|&lt;preceding path&gt;|&lt;entry name&gt;|&lt;description&gt;}}</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 06: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.