Jump to content

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

From Wikipedia, the free encyclopedia
Content deleted Content added
made sample cell even smaller
Made template name column wider as I now have room
Line 1: Line 1:
<noinclude>__TOC__</noinclude><includeonly>|-
<noinclude>__TOC__</noinclude><includeonly>|-
|valign=top width=150|<div style="width:150px; 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>
|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 ==

Revision as of 04:32, 5 February 2007

Usage

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

Name Function Default
Template Name Pass the name of the template without any parent pages or the namespace. None
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. 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: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 make {{{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 made {{{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