This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:Infobox group: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>MiamiVolts
m Fix background color
imported>Piemanmoo
this should make it look nicer on user subpages
 
(24 intermediate revisions by 5 users not shown)
Line 2: Line 2:
{| class="infobox" style="width: 270px; text-align: left; font-size: 70%; background-color: #{{#ifeq:{{{spoiler|}}}|true|F4D5CC|CCD5F4}}; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|778FE1}}; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
{| class="infobox" style="width: 270px; text-align: left; font-size: 70%; background-color: #{{#ifeq:{{{spoiler|}}}|true|F4D5CC|CCD5F4}}; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|778FE1}}; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
|-
|-
! style="background: #{{#ifeq:{{{spoiler|}}}|true|8B0000|cedff2}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 80%; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|778FE1}}; padding: 2px; -moz-border-radius:10px; text-align: center; font-size: 120%;" align="center" colspan="2" | {{PAGENAME}}
! style="background: #{{#ifeq:{{{spoiler|}}}|true|8B0000|cedff2}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 80%; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|778FE1}}; padding: 2px; -moz-border-radius:10px; text-align: center; font-size: 120%;" align="center" colspan="2" | {{#if: {{{name|}}} | {{#ifeq:{{{spoiler|}}}|true|<font color="white">{{{name}}}</font>|{{{name}}} }} | {{#ifeq:{{{spoiler|}}}|true|<font color="white">{{SUBPAGENAME}}</font>|{{SUBPAGENAME}} }} }}
|-
|-
{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">[[Image:{{{image}}}|250px]] {{#if: {{{caption|}}} | <br>{{{caption}}}}}</td> </tr>}}
{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">{{#if: {{#pos:{{lc:{{{image}}}}}|image:}} |{{{image}}}|[[Image:{{{image}}}|250px]]}} | <tr> <td align="center" colspan="2">[[Image:blank.jpg|250px]] }}<!--
{{#if: {{{location|}}} | <tr> <th>Location:</th> <td>{{#ifexist: {{{location}}} | [[{{{location}}}]] | {{{location}}} }}</td> </tr>}}
-->{{#if: {{{caption|}}} | <br>{{{caption}}}</td> </tr>}}<!--
{{#if: {{{purpose|}}} | <tr> <th>Purpose:</th> <td>{{{purpose}}}</td> </tr>}}
-->{{#if: {{{location|}}} | <tr> <th>Location:</th> <td>{{#ifexist: {{{location}}} | [[{{{location}}}]] | {{{location}}} }}</td> </tr>}}<!--
-->{{#if: {{{purpose|}}} | <tr> <th>Purpose:</th> <td>{{{purpose}}}</td> </tr>}}
|-
|-
{{#if: {{{portrayer|}}} | {{#ifeq: {{{portrayer}}}|Unknown|[[Category: Unknown Portrayer]]|}} <tr> <th>Portrayed&nbsp;by</th> <td>{{#ifexist: {{{portrayer}}} | [[{{{portrayer}}}]] | {{{portrayer}}}}}</td> </tr> | }}<!--
{{#if: {{{debut|}}} | <tr> <th>First&nbsp;appearance</th> <td>''{{#if: {{#pos:{{{debut}}}|pisode:}} |{{{debut}}}|{{#ifexist: {{{debut}}} | [[{{{debut}}}]] | {{{debut}}} }}}}''</td> </tr>}}<!--
-->{{#if: {{{nick|}}} | <tr> <th>{{#if: {{#pos:{{{nick}}}|,}} | Nicknames | Nickname }}</th> <td>{{{nick}}}</td> </tr>}}<!--
-->{{#if: {{{mention|}}} | <tr> <th>First&nbsp;mentioned:</th> <td>''{{#if: {{#pos:{{{mention}}}|pisode:}} |{{{mention}}}|{{#ifexist: {{{mention}}} | [[Episode:{{{mention}}}|{{{mention}}}]] | {{{mention}}} }}}}''</td> </tr>}}
-->{{#if: {{{debut|}}} | <tr> <th>First&nbsp;appearance</th> <td>''{{#if: {{#pos:{{{debut}}}|pisode:}} |{{{debut}}}|{{#ifexist: {{{debut}}} | [[Episode:{{{debut}}}|{{{debut}}}]] | {{{debut}}} }}}}''</td> </tr>}}<!--
-->{{#if: {{{mention|}}} | <tr> <th>First&nbsp;mentioned</th> <td>''{{#if: {{#pos:{{{mention}}}|pisode:}} |{{{mention}}}|{{#ifexist: {{{mention}}} | [[Episode:{{{mention}}}|{{{mention}}}]] | {{{mention}}} }}}}''</td> </tr>}}
|-
|-
{{#if: {{{leaders|}}} | <tr> <th>{{#if: {{#pos:{{{leaders|}}}|,}} | Known&nbsp;leaders: | Known&nbsp;leader: }}</th> <td>{{{leaders}}}</td> </tr>}}<!--
! style="background: #{{#ifeq:{{{spoiler|}}}|true|f2dfce|cedff2}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #{{#ifeq:{{{spoiler|}}}|true|E18F77|778FE1}}; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" | In-story stats
{{#if: {{{power(s)|}}} | <tr> <th>{{#if: {{#pos:{{{power(s)}}}|,}} | Known powers | {{#ifeq: {{{power(s)}}}|Unknown|Power|Known power}} }}</th> <td>{{{power(s)}}}</td> </tr>}}<!--
-->{{#if: {{{members|}}} | <tr> <th>Known&nbsp;members:</th> <td>{{{members}}}</td> </tr>}}<!--
-->{{#if: {{{potential_power(s)|}}} | <tr> <th>{{#if: {{#pos:{{{potential_power(s)}}}|,}} | Potential powers | Potential power}}</th> <td>{{{potential_power(s)}}}</td> </tr>}}<!--
-->{{#if: {{{sites|}}} | <tr> <th>Affiliated&nbsp;sites:</th> <td>{{{sites}}}</td> </tr>}}<!--
-->{{#if: {{{formal name|}}} | {{#ifeq: {{{formal name}}}|Unknown|[[Category: Characters]][[Category: Unnamed Characters]]|}}<tr> <th>Formal&nbsp;name</th> <td>{{{formal name}}}</td> </tr>}}<!--
-->{{#if: {{{gear|}}} | <tr> <th>Equipment&nbsp;used:</th> <td>{{{gear}}}</td> </tr>}}
|}<noinclude>
-->{{#if: {{{alias|}}} | <tr> <th>{{#if: {{#pos:{{{alias}}}|,}} | Aliases | Alias }}</th> <td>{{{alias}}}</td> </tr>}}<!--
-->{{#if: {{{gender|}}} | <tr> <th style="vertical-align:middle">Gender</th> <td>{{#switch:{{lc:{{{gender|}}}}} | f | female=[[Image:Venus_symbol_red.png|Female]] | m | male=[[Image:Mars_symbol_blue.png|Male]] | {{{gender}}} }}</td> </tr>}}<!--
-->{{#if: {{{age|}}} | <tr> <th>Age</th> <td>{{{age}}}</td> </tr>}}<!--
-->{{#if: {{{born|}}} | <tr> <th>Date&nbsp;of&nbsp;birth</th> <td>{{{born}}}</td> </tr>}}<!--
-->{{#if: {{{died|}}} | <tr> <th>Date&nbsp;of&nbsp;death</th> <td>{{{died}}}</td> </tr>}}<!--
-->{{#if: {{{home|}}} | <tr> <th>Home</th> <td>{{#ifexist: {{{home}}} | [[{{{home}}}]] | {{{home}}} }}</td> </tr>}}<!--
-->{{#ifexist: {{PAGENAMEE}}'s apartment | <tr> <th>Residence</th> <td>[[{{PAGENAME}}'s apartment]]</td> </tr> | }}<!--
-->{{#if: {{{residence|}}} | <tr> <th>Residence</th> <td>{{#ifexist: {{{residence}}} | [[{{{residence}}}]] | {{{residence}}} }}</td> </tr> | {{#ifexist: {{PAGENAMEE}}'s home | <tr> <th>Residence</th> <td>[[{{PAGENAME}}'s home]]</td> </tr> | }} }}<!--
-->{{#if: {{{occupation|}}} | <tr> <th>Occupation</th> <td>{{{occupation}}}</td> </tr>}}<!--
-->{{#if: {{{significant other|}}} | <tr> <th>Significant&nbsp;other</th> <td>{{{significant other}}}</td> </tr>}}<!--
-->{{#if: {{{parent(s)/guardian(s)|}}} | <tr> <th>{{#if: {{#pos:{{{parent(s)/guardian(s)}}}|,}} | Parents | Parent }}</th> <td>{{{parent(s)/guardian(s)}}}</td> </tr>}}<!--
-->{{#if: {{{parent|}}} | <tr> <th>{{#if: {{#pos:{{{parent}}}|,}} | Parents | Parent}}</th> <td>{{{parent}}}</td> </tr>}}<!--
-->{{#if: {{{guardian|}}} | <tr> <th>{{#if: {{#pos:{{{guardian}}}|,}} | Guardians | Guardian}}</th> <td>{{{guardian}}}</td> </tr>}}<!--
-->{{#if: {{{child(ren)|}}} | <tr> <th>{{#if: {{#pos:{{{child(ren)}}}|,}} | Children | Child}}</th> <td>{{{child(ren)}}}</td> </tr>}}<!--
-->{{#if: {{{sibling(s)|}}} | <tr> <th>{{#if: {{#pos:{{{sibling(s)}}}|,}} | Siblings | Sibling }}</th> <td>{{{sibling(s)}}}</td> </tr>}}
|}
{{#if: {{{mention|}}} | [[Category: Unseen Characters]]}}
<noinclude>


==Usage==
==Usage==
Line 41: Line 23:
===Behavior===
===Behavior===
* If the ''image'' value is left blank, the template will auto-add the <nowiki>{{</nowiki>[[:Template:noimage|noimage]]}} template to the top of the page.
* If the ''image'' value is left blank, the template will auto-add the <nowiki>{{</nowiki>[[:Template:noimage|noimage]]}} template to the top of the page.
* If the box name is set by the Article title, and the text will automatically be converted into a reference. If not, the value will display as normal (non-linked) text. The group article is expected to belong to [[:Category:Named Groups]], [[:Category:Unnamed Groups]] or [[:Category:Future Groups]].
* If the box name is set by the Article title, and the text will automatically be converted into a reference. If not, the value will display as normal (non-linked) text. The group article is expected to belong to [[:Category:Named Groups]] or [[:Category:Unnamed Groups]].


<pre>{{Infobox group
<pre>{{Infobox group
| image = <!--Image link-->
| image = <!--Image link-->
| caption = <!-- Caption for image -->
| caption = <!-- Caption for image -->
| location = <!-- Location where the place is located -->
| location = <!-- Location where the group is based -->
| purpose = <!-- Purpose for facility -->
| purpose = <!-- Purpose of the group -->
| debut = <!-- Where group first appeared -->
| portrayer = <!-- Unknown if not known, else name of actors/actresses. -->
| mention = <!-- Where group was first mentioned. Use for groups which have not debuted. -->
| nick =
| debut = <!-- Episode character first appeared -->
| leaders = <!-- links to group's leader(s) -->
| members = <!-- links to group's members -->
| mention = <!-- Episode character was first mentioned. Use for characters who have not debuted. -->
| sites = <!-- links to group's sites -->
| power(s) = <!-- For evolved humans, type the name of the power or "Unknown"; for all others, type "None"-->
| gear = <!--links to group's equipment -->
| potential_power(s) =
| formal name = <!-- Full formal name of the characters. -->
| alias = <!-- Pseudonyms and special monikers, not nicknames. -->
| gender = <!-- 'Male' or 'Female' will be replaced by the corresponding icon -->
| age =
| born =
| died =
| home = <!-- Characters' homes or places of origin. Will link to existing articles. -->
| residence = <!--will automatically link if article/redirect exists, but can be manually overridden -->
| occupation =
| significant other =
| parent =
| guardian = <!--Non-parent legal guardian(s)-->
| child(ren) =
| sibling(s) =
| spoiler = <!-- "true" for spoiler warning and colors -->
| spoiler = <!-- "true" for spoiler warning and colors -->
}}</pre>
}}</pre>



[[Category: Templates]]
[[Category: Sidebars]]
[[Category: Sidebars]]
</noinclude>
</noinclude>

Latest revision as of 05:37, 6 January 2009

Infobox group



Usage

Produces a right-floated infobox for articles referring to groups in the Heroes series.

Behavior

  • If the image value is left blank, the template will auto-add the {{noimage}} template to the top of the page.
  • If the box name is set by the Article title, and the text will automatically be converted into a reference. If not, the value will display as normal (non-linked) text. The group article is expected to belong to Category:Named Groups or Category:Unnamed Groups.
{{Infobox group
| image = <!--Image link-->
| caption = <!-- Caption for image -->
| location = <!-- Location where the group is based -->
| purpose = <!-- Purpose of the group -->
| debut = <!-- Where group first appeared -->
| mention = <!-- Where group was first mentioned.  Use for groups which have not debuted. -->
| leaders = <!-- links to group's leader(s) -->
| members = <!-- links to group's members -->
| sites = <!-- links to group's sites -->
| gear = <!--links to group's equipment -->
| spoiler = <!-- "true" for spoiler warning and colors -->
}}