Difference between revisions of "Template:Website"

From Worms Knowledge Base

Jump to: navigation, search
(the caption is now displayed below the image like the infoboxes in wikipedia)
(replace the "forum" parameter with a custom label)
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|{{PAGENAME}}}}}</th>{{#if:{{{screenshot|{{{1|}}}}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot|{{{1}}}}}}|{{{screensize|250px}}}|{{{caption|{{{name|{{PAGENAME}}}}} screenshot}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}{{#if:{{{creator|{{{2|}}}}}}|<tr><td>Creator:</td><td>{{{creator|{{{2}}}}}}</td></tr>}}{{#if:{{{date|{{{3|}}}}}}|<tr><td>Creation date:</td><td>{{{date|{{{3}}}}}}</td></tr>}}{{#if:{{{forum|}}}|<tr><td>Forum package:</td><td>{{{forum}}}</td></tr>}}{{#if:{{{link|{{{4|}}}}}}|<tr><th>Link:</th><th>{{{link|{{{4}}}}}}</th></tr>}}</table></includeonly><noinclude>{{Website|Insert-screenshot-here.png|''{{{2}}}''|''{{{3}}}''|''{{{4}}}''|caption={{{caption}}}|name={{{name}}}|forum=''{{{forum}}}''}}
+
<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|{{PAGENAME}}}}}</th>{{#if:{{{screenshot|{{{1|}}}}}}|<tr><td colspan="2" style="text-align: center;">[[Image:{{{screenshot|{{{1}}}}}}|{{{screensize|250px}}}|{{{caption|{{{name|{{PAGENAME}}}}} screenshot}}}]]{{#if:{{{caption|}}}|<br/>{{{caption}}}}}</td></tr>}}{{#if:{{{creator|{{{2|}}}}}}|<tr><td>Creator:</td><td>{{{creator|{{{2}}}}}}</td></tr>}}{{#if:{{{date|{{{3|}}}}}}|<tr><td>Creation date:</td><td>{{{date|{{{3}}}}}}</td></tr>}}{{#if:{{{label1|}}}|<tr><td>{{{label1}}}:</td><td>{{{data1}}}</td></tr>}}{{#if:{{{link|{{{4|}}}}}}|<tr><th>Link:</th><th>{{{link|{{{4}}}}}}</th></tr>}}</table></includeonly><noinclude>{{Website|Insert-screenshot-here.png|''{{{2}}}''|''{{{3}}}''|''{{{4}}}''|caption={{{caption}}}|name={{{name}}}|label1=''{{{label1}}}''|data1=''{{{data1}}}''}}
 
An infobox for websites.
 
An infobox for websites.
 
__NOEDITSECTION__
 
__NOEDITSECTION__
Line 11: Line 11:
 
| date (3) = ''creation date''<br/>
 
| date (3) = ''creation date''<br/>
 
| link (4) = ''URL (like http://example.com/)'' <br/>
 
| link (4) = ''URL (like http://example.com/)'' <br/>
| forum = ''forum package/engine''<br/>
+
| label1 = ''custom label''<br/>
 +
| data1 = ''custom data (displayed after label1)''<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
  

Revision as of 13:18, 18 November 2009

{{{name}}}
{{{caption}}}
{{{caption}}}
Creator: {{{2}}}
Creation date: {{{3}}}
{{{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: 250px width)
| caption = caption text of the screenshot (default: "{{{name}}} screenshot")
| creator (2) = website maker/creator
| date (3) = creation date
| link (4) = URL (like http://example.com/)
| label1 = custom label
| data1 = custom data (displayed after label1)
}}

OR

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

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