Difference between revisions of "User:White In Sky/Template"

From Paradise Station Wiki
Jump to navigation Jump to search
(move name to header position, move code to remove/apply linebreaks, remove temporary fix excess linebreak fix, excess {{#if:}}s, add margin-top/bottom of 1em)
(fix error, added some linebreaks, remove center align from Contents, add vertical top align to foundin/etc. list, re-add temporary fix)
Line 2: Line 2:
{{#if:{{{name|}}}|! colspan="2" style="background-color: {{{bgcolor2|#bbbbbb}}};" {{!}} {{{name}}}
{{#if:{{{name|}}}|! colspan="2" style="background-color: {{{bgcolor2|#bbbbbb}}};" {{!}} {{{name}}}
{{!}}-
{{!}}-
|}}| align="center" width="150" style="background-color: {{{bgcolor1|#cccccc}}};" {{#if:{{{foundin|}}}{{{usedfor|}}}{{{strategy|}}}||colspan=2}} | [[File:{{{image|{{{name|NPA}}}.png}}}|64px]]
|}}| style="background-color: {{{bgcolor1|#cccccc}}};" align="center" width="150" {{#if:{{{foundin|}}}{{{usedfor|}}}{{{strategy|}}}||colspan=2}} | [[File:{{{image|{{{name|NPA}}}.png}}}|64px]]
{{#if:{{{foundin|}}}{{{usedfor|}}}{{{strategy|}}}|{{!}} {{#if:{{{foundin|}}}|'''Found in:''' {{{foundin}}}
{{#if:{{{foundin|}}}{{{usedfor|}}}{{{strategy|}}}|{{!}} valign="top" {{!}} {{#if:{{{foundin|}}}|'''Found in:''' {{{foundin}}}
|}}{{#if:{{{usedfor|}}}| '''Used for:''' {{{usedfor}}}
|}}{{#if:{{{usedfor|}}}| '''Used for:''' {{{usedfor}}}
|}}{{#if:{{{strategy|}}}| '''Strategy:''' {{{strategy}}}
|}}{{#if:{{{strategy|}}}| '''Strategy:''' {{{strategy}}}
|}}|}}{{#if:{{{description|}}}|
|}}|{{!}} style="padding: 0;" {{!}}}}
{{!}}- style="background-color: {{{bgcolor2|#bbbbbb}}};"
{{#if:{{{description|}}}|{{!}}- style="background-color: {{{bgcolor2|#bbbbbb}}};" align="center"
{{!}} colspan="2" {{!}} '''Description'''
{{!}} colspan="2" {{!}} '''Description'''
{{!}}- align="center" style="background-color: {{{bgcolor1|#cccccc}}};" valign="top"
{{!}}- style="background-color: {{{bgcolor1|#cccccc}}};" valign="top"
{{!}} colspan="2" {{!}}
{{!}} colspan="2" {{!}}
{{{description}}}|}}{{#if:{{{contents|}}}|
{{{description}}}|}}
{{!}}- align="center" style="background-color: {{{bgcolor2|#bbbbbb}}};"
{{#if:{{{contents|}}}|{{!}}- style="background-color: {{{bgcolor2|#bbbbbb}}};" align="center"
{{!}} colspan="2" {{!}} '''Contents'''
{{!}} colspan="2" {{!}} '''Contents'''
{{!}}- align="center" style="background-color: {{{bgcolor1|#cccccc}}};" valign="top"
{{!}}- style="background-color: {{{bgcolor1|#cccccc}}};" valign="top"
{{!}} colspan="2" {{!}}
{{!}} colspan="2" {{!}}
{{{contents}}}|}}
{{{contents}}}|}}
|}<noinclude>
|}<noinclude>

Revision as of 05:22, 1 November 2014

NPA.png


Usage

This template is intended to help list item descriptions in a consistent fashion across articles.

With no parameters

 {{Item}}
NPA.png


With minimal parameters

The bare minimum is with the name parameter:

 {{Item
 | name = Test Item
 | bgcolor1 = #FFEE88
 | bgcolor2 = #FFDD66
 | image = Red Toolbox.png
 }}
Test Item


Typical item

If the description parameter is set, this template will show:

 {{Item
 | bgcolor1 = #FFEE88
 | bgcolor2 = #FFDD66
 | name = Emergency Toolbox
 | image = Red Toolbox.png
 | foundin = emergency lockers and storage areas
 | usedfor = Contains tools which are useful in emergencies
 | strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.
 | description = The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency.
 Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
 }}
Emergency Toolbox
Found in: Emergency lockers and storage areas.Used for: Contains tools which are useful in emergencies.Strategy: It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful, as well as a crowbar.
Description

The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency. Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.

Container items

If the contents parameter is set, this template will show:

 {{Item
 | bgcolor1 = #FFEE88
 | bgcolor2 = #FFDD66
 | name = Emergency Toolbox
 | image = Red Toolbox.png
 | foundin = Emergency lockers and storage areas.
 | usedfor = Contains tools which are useful in emergencies.
 | strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful, as well as a crowbar.
 | contents = [[File:Screwdriver tool.png|link=Screwdriver]] [[File:Wrench.png|link=Wrench]] [[File:Welder.png|link=Welding Tool]] [[File:Crowbar.png|link=Crowbar]][[File:Analyzer.png|link=Analyzer]] [[File:Wirecutters.png|link=Wirecutters]] 
 | description = The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency.
 Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
 }}
Emergency Toolbox
Found in: Emergency lockers and storage areas.Used for: Contains tools which are useful in emergencies.Strategy: It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful, as well as a crowbar.
Description

The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency. Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.

Contents

Screwdriver tool.png Wrench.png Welderon.gif Crowbar.png Analyzer.png Wirecutters.png