Difference between revisions of "Template:Website"

From Worms Knowledge Base

Jump to: navigation, search
(New template: An infobox for websites (I like infobox templates))
 
m (defaults screen size to 200px)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><table class="infobox" cellspacing="2" style="width: 21em; font-size: 90%; text-align: left;"><tr><th colspan="2" style="font-size: larger; text-align: center">{{{name|{{{1}}}}}}</th>{{#if:{{{screenshot|{{{2|}}}}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot|{{{2}}}}}}|{{{screensize|250px}}}|{{{name|{{{1}}}}}}]]</td></tr>}}{{#if:{{{creator|{{{3|}}}}}}|<tr><td>Creator:</td><td>{{{creator|{{{3}}}}}}</td></tr>}}{{#if:{{{date|{{{4|}}}}}}|<tr><td>Creation date:</td><td>{{{date|{{{4}}}}}}</td></tr>}}{{#if:{{{forum|}}}|<tr><th>Forum package:</th><th>{{{forum}}}</th></tr>}}{{#if:{{{link|{{{5|}}}}}}|<tr><th>Link:</th><th>{{{link|{{{5}}}}}}</th></tr>}}</table></includeonly><noinclude>{{Website|{{{1}}}|Insert-screenshot-here.png|''{{{3}}}''|''{{{4}}}''|''{{{5}}}''|forum=''{{{forum}}}''}}
+
<includeonly><!--
 +
--><table class="infobox" cellspacing="2" style="width: 21em; font-size: 90%; text-align: left;"><!--
 +
  --TITLE--
 +
--><tr><th colspan="2" style="font-size: larger; text-align: center">{{{name|{{PAGENAME}}}}}</th></tr><!--
 +
  --SCREENSHOT--
 +
-->{{#if:{{{screenshot|{{{1|}}}}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot|{{{1}}}}}}|{{{screensize|200px}}}|{{{caption|{{{name|{{PAGENAME}}}}} screenshot}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}<!--
 +
  --LABELS--
 +
-->{{#if:{{{creator|{{{2|}}}}}}|<tr><th style="font-weight: normal;">Creator:</th>
 +
<td>{{{creator|{{{2}}}}}}</td></tr>}}<!--
 +
-->{{#if:{{{date|{{{3|}}}}}}|<tr><th style="font-weight: normal;">Creation date:</th>
 +
<td>{{{date|{{{3}}}}}}</td></tr>}}<!--
 +
-->{{#if:{{{launch|}}}|<tr><th style="font-weight: normal;">Date of launch:</th>
 +
<td>{{{launch}}}</td></tr>}}<!--
 +
-->{{#if:{{{label1|}}}|<tr><th style="font-weight: normal;">{{{label1}}}:</th>
 +
<td>{{{data1}}}</td></tr>}}<!--
 +
-->{{#if:{{{link|{{{4|}}}}}}|<tr><th style="font-weight: bold;">Link:</th>
 +
<td style="font-weight: bold;">{{{link|{{{4}}}}}}</td></tr>}}<!--
 +
  --END--
 +
--></table></includeonly><noinclude>
 +
{{Website|Insert-screenshot-here.png|''{{{2}}}''|''{{{3}}}''|''{{{4}}}''
 +
|caption={{{caption}}}
 +
|name={{{name}}}
 +
|launch=''{{{launch}}}''
 +
|label1=''{{{label1}}}''
 +
|data1=''{{{data1}}}''}}
 +
 
 
An infobox for websites.
 
An infobox for websites.
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
== Usage ==
 
== Usage ==
<nowiki>{{Website</nowiki><br/>
+
 
| name (1) = ''name of the website''<br/>
+
<nowiki>{{</nowiki>Website<br/>
| screenshot (2) = ''file.png''<br/>
+
| name = ''name of the website (default: <nowiki>{{PAGENAME}}</nowiki>)''
| screensize = ''size of the screenshot (default: 250px width)''<br/>
+
 
| creator (3) = ''website maker/creator''<br/>
+
| screenshot (1) = ''file.png''<br/>
| date (4) = ''creation date''<br/>
+
| screensize = ''size of the screenshot (default: 200px width)''<br/>
| link (5) = ''"http://" URL''<br/>
+
| caption = ''caption text of the screenshot (default: "{{{name}}} screenshot")''
| forum = ''forum package/engine''<br/>
+
 
 +
| creator (2) = ''website maker/creator''<br/>
 +
| date (3) = ''creation date''<br/>
 +
| launch = ''date of launch (as a substitute for {{{date}}})''<br/>
 +
| link (4) = ''URL (like http://example.com/)'' <br/>
 +
| label1 = ''custom label (without the colon)''<br/>
 +
| data1 = ''custom data (displayed after label1)''<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
  
 
OR
 
OR
  
<nowiki>{{Website</nowiki> | name | screenshot | creator | date | link<nowiki>}}</nowiki>
+
<nowiki>{{Website</nowiki>|screenshot|creator|date|link<nowiki>}}</nowiki>
  
* If a parameter is not used, the table row for it will not be included.
+
===Note===
 +
If a parameter is not used, the table row for it will not be included.
 
</noinclude>
 
</noinclude>

Latest revision as of 16:04, 22 July 2010

{{{name}}}
{{{caption}}}
{{{caption}}}
Creator: {{{2}}}
Creation date: {{{3}}}
Date of launch: {{{launch}}}
{{{label1}}}: {{{data1}}}
Link: {{{4}}}

An infobox for websites.

Usage

{{Website
| name = name of the website (default: {{PAGENAME}})

| screenshot (1) = file.png
| screensize = size of the screenshot (default: 200px width)
| caption = caption text of the screenshot (default: "{{{name}}} screenshot")

| creator (2) = website maker/creator
| date (3) = creation date
| launch = date of launch (as a substitute for {{{date}}})
| link (4) = URL (like http://example.com/)
| label1 = custom label (without the colon)
| data1 = custom data (displayed after label1)
}}

OR

{{Website|screenshot|creator|date|link}}

Note

If a parameter is not used, the table row for it will not be included.

Personal tools