Difference between revisions of "Template:Website"

From Worms Knowledge Base

Jump to: navigation, search
(New template: An infobox for websites (I like infobox templates))
 
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;"><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><td>Forum package:</td><td>{{{forum}}}</td></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}}}''}}
 
An infobox for websites.
 
An infobox for websites.
 
__NOEDITSECTION__
 
__NOEDITSECTION__
Line 9: Line 9:
 
| creator (3) = ''website maker/creator''<br/>
 
| creator (3) = ''website maker/creator''<br/>
 
| date (4) = ''creation date''<br/>
 
| date (4) = ''creation date''<br/>
| link (5) = ''"http://" URL''<br/>
+
| link (5) = ''URL (like http://example.com/)'' <br/>
 
| forum = ''forum package/engine''<br/>
 
| forum = ''forum package/engine''<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>

Revision as of 14:53, 25 August 2009

Website
[[Image:{{{1}}}|200px|Website screenshot]]
Creator: Insert-screenshot-here.png
Creation date: {{{3}}}
Link: {{{4}}}

An infobox for websites.

Usage

{{Website
| name (1) = name of the website
| screenshot (2) = file.png
| screensize = size of the screenshot (default: 250px width)
| creator (3) = website maker/creator
| date (4) = creation date
| link (5) = URL (like http://example.com/)
| forum = forum package/engine
}}

OR

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

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