Jump to content

User:Will Pittenger/templates/Template List Row: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
covnerted table to mixed XHTML/Wiki syntax
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>__TOC__</noinclude><includeonly>|-
<noinclude>__TOC__</noinclude><includeonly>|-
|valign=top style="width:150px; overflow:auto;"|{{User:Will Pittenger/TLink|{{{Template Name}}}|User={{{User|}}}|Folder Group={{{Folder Group|}}}}}||valign=top|{{{Desc}}}||valign=top style="width:300px; overflow:auto;"|{{{Sample Code|{{User:{{{User|Will Pittenger}}}/{{{Folder Group|templates}}}/{{{Template Name}}}}}}}}</td>{{#if:{{{shortcut|}}}|<tr valign=top><code>{{tlu|{{{shortcut}}}}}</code></td>}}{{#if:{{{subst|}}}|<td valign=top>{{{subst}}}</td>}}</includeonly><noinclude>
|valign=top width=200|<div style="width:200px; overflow:auto;">{{User:Will Pittenger/TLink|{{{Template Name}}}|{{#if:{{{User|}}}|User={{{User}}}}}|{{#if:{{{Folder Group|}}}|Folder Group={{{Folder Group}}}}}}}</div>||valign=top|{{{Desc}}}||valign=top width=200px|<div style="width:200px; overflow:auto;">{{{Sample Code|{{User:{{{User|Will Pittenger}}}/{{{Folder Group|templates}}}/{{{Template Name}}}}}}}}</div></td>{{#if:{{{shortcut|}}}|<td valign=top>{{#ifeq:{{{shortcut}}}|0|No Shortcut Available|<code>{{tlu|{{{shortcut}}}}}</code>}}</td>}}{{#if:{{{subst|}}}|<td valign=top>{{{subst}}}</td>}}</includeonly><noinclude>


== Usage ==
== Usage ==
Line 6: Line 6:


=== Parameters ===
=== Parameters ===
{{User:Will Pittenger/templates/Param List Start}}
{| border=1 cellpadding=2
{{User:Will Pittenger/templates/Param List Row|Param Name=Template Name|Desc=Pass the name of the template without any parent pages or the namespace.}}
!Name!!Function!!Default
{{User:Will Pittenger/templates/Param List Row|Param Name=User|Desc=Pass the user name, minus the namespace, of the user space where this template can be found. See {{User:Will Pittenger/TLink|Create Template Link}} for more information on this parameter.|Default=Will Pittenger}}
|-
{{User:Will Pittenger/templates/Param List Row|Param Name=Folder Group|Desc=Where in the user space of <code>{{{User}}}</code> this template is at. See {{User:Will Pittenger/TLink|Create Template Link}} for more information on this parameter.|Default=templates}}
|Template Name||Pass the name of the template without any parent pages or the namespace.||None
{{User:Will Pittenger/templates/Param List Row|Param Name=Desc|Desc=Your description of the template.}}
|-
{{User:Will Pittenger/templates/Param List Row|Param Name=Sample Code|Desc=Call the template and pass any required parameters. You can call other helper templates if needed and even call the template multiple times to demo different parameters.|Default={{User:{{{User|Will Pittenger}}}/{{{Folder Group|templates}}}/{{{Template Name}}}}}}}
|User||Pass the user name, minus the namespace, of the user space where this template can be found. See {{User:Will Pittenger/TLink|Create Template Link}} for more information on this parameter.||"Will Pittenger"
{{User:Will Pittenger/templates/Param List Row|Param Name=shortcut|Desc=Is there a shortcut to this item? If so, pass that. It is up to you to specify the complete path. However, {{tl|tlu}} will be called on your behalf to make it look like a link. To use this parameter, you must give <code>{{{Show Shortcuts}}}</code> a non-blank value when calling {{User:Will Pittenger/TLink|Template List Start}} to start this table. The shortcut cell will be hidden if this is blank. Note: the value "0" is special. If you pass "0", "No Shortcut Available" will be displayed.|Default=♥}}
|-
{{User:Will Pittenger/templates/Param List Row|Param Name=subst|Desc=Should this template be [[WP:SUBST|substed]]? If you gave <code>{{{Show Subst Col}}}</code> a non-blank value when you called {{User:Will Pittenger/TLink|Template List Start}}, you should set this to either "Yes" or "No". The shortcut cell will be hidden if this is blank.|Default=♥}}
|Folder Group||Where in the user space of {{{User}}} this template is at. See {{User:Will Pittenger/TLink|Create Template Link}} for more information on this parameter.||"templates"
{{User:Will Pittenger/templates/Param List End}}
|-
|Desc||Your description of the template.||None
|-
|Sample Code||Call the template and pass any required parameters. You can call other helper templates if needed and even call the template multiple times to demo different parameters.||"{{User:{{{User|Will Pittenger}}}/{{{Folder Group|templates}}}/{{{Template Name}}}}}"
|-
|shortcut||Is there a shortcut to this item? If so, pass that. It is up to you to specify the complete path. However, {{tl|tlu}} will be called on your behalf to make it look like a link. To use this parameter, you must make {{{Show Shortcuts}}} a non-blank value when calling {{User:Will Pittenger/TLink|Template List Start}} to start this table. The shortcut cell will be hidden if this is blank.||Nothing
|-
|subst||Should this template be [[WP:SUBST|substed]]? If you made {{{Show Subst Col}}} a non-blank value when you called {{User:Will Pittenger/TLink|Template List Start}}, you should set this to either "Yes" or "No". The shortcut cell will be hidden if this is blank.||Nothing
|}


== See Also ==
== See Also ==
*{{User:Will Pittenger/TLink|Template List Start}}
*{{User:Will Pittenger/TLink|Template List Start}}
*{{User:Will Pittenger/TLink|Template List End}}
*{{User:Will Pittenger/TLink|Template List End}}

=== Templates that build other types of tables ===
==== Tables for listing user boxes ====
*{{User:Will Pittenger/TLink|User Box List Start}}
*{{User:Will Pittenger/TLink|User Box List Row}}
*{{User:Will Pittenger/TLink|User Box List End}}

==== Tables for listing parameters ====
*{{User:Will Pittenger/TLink|Param List Start}}
*{{User:Will Pittenger/TLink|Param List Row}}
*{{User:Will Pittenger/TLink|Param List End}}


</noinclude>
</noinclude>

Latest revision as of 08:57, 7 February 2007

Usage

[edit]

Begin a table with {{User:Will Pittenger/templates/Template List Start}}. Add rows with {{User:Will Pittenger/templates/Template List Row}}. Use {{User:Will Pittenger/templates/Template List End}} to end the table. Do put any text between the template calls.

Parameters

[edit]
Name Purpose Default
{{{Template Name}}} Pass the name of the template without any parent pages or the namespace.
{{{User}}} Pass the user name, minus the namespace, of the user space where this template can be found. See {{User:Will Pittenger/templates/Create Template Link}} for more information on this parameter. "Will Pittenger"
{{{Folder Group}}} Where in the user space of {{{User}}} this template is at. See {{User:Will Pittenger/templates/Create Template Link}} for more information on this parameter. "templates"
{{{Desc}}} Your description of the template.
{{{Sample Code}}} Call the template and pass any required parameters. You can call other helper templates if needed and even call the template multiple times to demo different parameters. "{{User:Will Pittenger/templates/{{{Template Name}}}}}"
{{{shortcut}}} Is there a shortcut to this item? If so, pass that. It is up to you to specify the complete path. However, {{tlu}} will be called on your behalf to make it look like a link. To use this parameter, you must give {{{Show Shortcuts}}} a non-blank value when calling {{User:Will Pittenger/templates/Template List Start}} to start this table. The shortcut cell will be hidden if this is blank. Note: the value "0" is special. If you pass "0", "No Shortcut Available" will be displayed. Nothing
{{{subst}}} Should this template be substed? If you gave {{{Show Subst Col}}} a non-blank value when you called {{User:Will Pittenger/templates/Template List Start}}, you should set this to either "Yes" or "No". The shortcut cell will be hidden if this is blank. Nothing

See Also

[edit]

Templates that build other types of tables

[edit]

Tables for listing user boxes

[edit]

Tables for listing parameters

[edit]