YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Family Infobox"

From Discovery Wiki
Jump to navigationJump to search
m (formatting)
(Fixing templates that include categories when transcluding themselves.)
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
{| class="infobox bordered" style="float: right; background-color:14193F; margin-left: 1em; margin-bottom: 10px; width: 270px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
 
{| class="infobox bordered" style="float: right; background-color:14193F; margin-left: 1em; margin-bottom: 10px; width: 270px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
 
|-
 
|-
| colspan="2" class="infobox-name" | '''{{{name}}}'''{{#switch: {{{image}}} | none = | #default = <br />{{!}}-
+
| colspan="2" class="infobox-name" | '''{{{name}}}''' {{#switch: {{{image}}} | none = | #default = <br />
 +
{{!}}-
 
{{!}} colspan="2" style="padding: 0px; text-align: center;" {{!}} {{#if: {{{image|}}}
 
{{!}} colspan="2" style="padding: 0px; text-align: center;" {{!}} {{#if: {{{image|}}}
 
| [[image:{{{image}}}|center|264px]]
 
| [[image:{{{image}}}|center|264px]]
Line 30: Line 31:
 
}}
 
}}
 
|}
 
|}
[[Category:Families]]{{#switch: {{{image}}} | none = | #default = {{#if: {{{image|}}} | | [[Category: Pages without profile images]]}}}}
+
{{#ifeq:{{NAMESPACE}}|Template||[[Category:Families]]{{#switch: {{{image}}} | none = | #default = {{#if: {{{image|}}} | | [[Category: Pages without profile images]]}}}}}}
 
<noinclude>
 
<noinclude>
 
-->
 
-->
 
==Usage==
 
==Usage==
<pre><nowiki>{{Family_Infobox
+
<pre><nowiki>{{Family Infobox
 
| name = The Addams Family
 
| name = The Addams Family
 
| image =  
 
| image =  
Line 55: Line 56:
  
 
==Result==
 
==Result==
{{Family_Infobox
+
{{Family Infobox
 
| name = The Addams Family
 
| name = The Addams Family
 
| image =  
 
| image =  

Latest revision as of 21:05, 24 January 2012

If you want to set the CSS styles of this infobox or colours, get a wiki Admin to change the Monobook.css. Most infoboxes' styles are controlled from there. This allows freedom for skins, while not changing the content of the infobox. (Say for example if you don't like this current one modelled off Freelancer User Interface, and want a default Wiki skin.)

Usage

{{Family Infobox
| name = The Addams Family
| image = 
| origin = {{House Link | Nomads}}
| occupation = Haunting
| affiliation = Semi-lawful
| members =
* Gomez
* Morticia
* Pugsley
* Wednesday
* Uncle Fester
* Grandmama
* Cousin Itt
* Lurch
* Thing
}}

Occupation and Affiliation are optional fields, and will not be displayed if they are not filled in.

Result

The Addams Family
Error creating thumbnail: Unable to save thumbnail to destination
Details
Origin Flag-nomads3.png Nomads
Occupation Haunting
Affiliation Semi-lawful
Members
  • Gomez
  • Morticia
  • Pugsley
  • Wednesday
  • Uncle Fester
  • Grandmama
  • Cousin Itt
  • Lurch
  • Thing