Difference between revisions of "Template:ListEntry"

From CWCki
Jump to navigation Jump to search
m (Added documentation.)
(Added usage, recategorized as formatting template.)
Line 14: Line 14:
|style="border-left-style:hidden;display:none"|{{{Saga|}}}
|style="border-left-style:hidden;display:none"|{{{Saga|}}}
|style="border-left-style:hidden;display:none"|{{{Shirt|}}}
|style="border-left-style:hidden;display:none"|{{{Shirt|}}}
|style="border-left-style:hidden;display:none"|{{{Leak|}}}<noinclude>
|style="border-left-style:hidden;display:none"|{{{Leak|}}}<noinclude>{{usage|1=This is a template used for adding entries to a wikitable, specifically a table of Chris's videos.  The format for using this template is as follows:<br />
{{documentation}}
 
</noinclude>
Since the template is used in tables, let's start with one.
 
<pre>|class="wikitable sortable" style="empty-cells:hide"!
!style="width:62%"|
!style="width:8%"|
!style="width:8%"|
!style="width:8%"|
!style="width:8%"|
!style="width:3%"|
!style="width:3%"|
|}</pre>
 
- Displays:
{{{!}}class="wikitable sortable" style="empty-cells:hide"!
!style="width:62%"{{!}}
!style="width:8%"{{!}}
!style="width:8%"{{!}}
!style="width:8%"{{!}}
!style="width:8%"{{!}}
!style="width:3%"{{!}}
!style="width:3%"{{!}}
{{!}}}
 
Within that table, you can add the List Entry template, and it will add a row with the information you put into the template.
 
 
<pre>{{{!}}class="wikitable sortable" style="empty-cells:hide"
!style="width:62%"|
!style="width:8%"|
!style="width:8%"|
!style="width:8%"|
!style="width:8%"|
!style="width:3%"|
!style="width:3%"|
{{ListEntry
|Title = Example Title
|Date = 1999-10-06
|Subject = Pickles
|Performance = Whatever
|Saga = Example Saga
|Shirt = The Classic
|Leak = {{Leaked}}
|Description = Example description here.
}}
|}</pre>
 
 
- Displays:
{{{!}}class="wikitable sortable" style="empty-cells:hide"
!style="width:62%"{{!}}
!style="width:8%"{{!}}
!style="width:8%"{{!}}
!style="width:8%"{{!}}
!style="width:8%"{{!}}
!style="width:3%"{{!}}
!style="width:3%"{{!}}
{{ListEntry
|Title = Example Title
|Date = 1999-10-06
|Subject = Pickles
|Performance = Whatever
|Saga = Example Saga
|Shirt = The Classic
|Leak = {{Leaked}}
|Description = Example description here.
}}
{{!}}}
}}
 
[[Category:Formatting and function templates|{{PAGENAME}}]]</noinclude>

Revision as of 18:56, 3 December 2010

|- |{{{Date}}} Error: Invalid time. |' | | | | | |- |colspan="7"|{{{Date}}} |style="border-left-style:hidden;display:none"| |style="border-left-style:hidden;display:none"| |style="border-left-style:hidden;display:none"| |style="border-left-style:hidden;display:none"| |style="border-left-style:hidden;display:none"| |style="border-left-style:hidden;display:none"|

Usage

These usage notes will not be included in articles bearing this template.

This is a template used for adding entries to a wikitable, specifically a table of Chris's videos. The format for using this template is as follows:

Since the template is used in tables, let's start with one.

|class="wikitable sortable" style="empty-cells:hide"!
!style="width:62%"|
!style="width:8%"|
!style="width:8%"|
!style="width:8%"|
!style="width:8%"|
!style="width:3%"|
!style="width:3%"|
|}

- Displays:

Within that table, you can add the List Entry template, and it will add a row with the information you put into the template.


{{{!}}class="wikitable sortable" style="empty-cells:hide"
!style="width:62%"|
!style="width:8%"|
!style="width:8%"|
!style="width:8%"|
!style="width:8%"|
!style="width:3%"|
!style="width:3%"|
{{ListEntry
|Title = Example Title
|Date = 1999-10-06
|Subject = Pickles
|Performance = Whatever
|Saga = Example Saga
|Shirt = The Classic
|Leak = {{Leaked}}
|Description = Example description here.
}}
|}


- Displays:

1999-10-06 06 October 1999Example description here. Example Title Pickles Whatever Example Saga The Classic LeakedLeaked
1999-10-06 Example description here. Example Title Pickles Whatever Example Saga The Classic LeakedLeaked