Template:Infobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox class="infobox">
<infobox>
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
    <title source="title">
<div class="infobox-image">[[File:{{{image}}}|thumb|center|{{#if:{{{image_info|}}}|{{{image_info}}}}}]]</div>}}
        <default>{{PAGENAME}}</default>
<table>{{#if:{{{name|}}}|<tr>
    </title>
    <th>Nickname</th>
<media source="image">
     <td>{{{name}}}</td>
    <caption source="image_info"/>
</tr>}}{{#if:{{{age|}}}|<tr>
</media>
     <th>Age</th>
<group collapse="open">
    <td>{{{age}}}</td>
  <header>'''Basic Info'''</header>
</tr>}}{{#if:{{{dob|}}}|<tr>
  <data source="name">
     <th>Birthdate</th>
     <label>Nickname</label>
    <td>{{{dob}}}</td>
  </data>
</tr>}}{{#if:{{{species|}}}|<tr>
<group row-items="2">
     <th>Species</th>
  <data source="age">
    <td>{{{species}}}</td>
     <label>Age</label>
</tr>}}{{#if:{{{eth|}}}|<tr>
  </data>
     <th>Ethnicity</th>
  <data source="dob">
    <td>{{{eth}}}</td>
     <label>Birthdate</label>
</tr>}}{{#if:{{{major|}}}|<tr>
  </data>
     <th>Major</th>
</group>
    <td>{{{major}}}</td>
  <data source="species">
</tr>}}{{#if:{{{height|}}}|<tr>
     <label>Species</label>
     <th>Height</th>
  </data>
    <td>{{{height}}}</td>
  <data source="eth">
</tr>}}{{#if:{{{Origin|}}}|<tr>
     <label>Ethnicity</label>
    <th>Origin</th>
  </data>
     <td>{{{Origin}}}</td>
  <data source="height">
</tr>}}</table>
     <label>Height</label>
  </data>
  <data source="Origin">
     <label>Origin</label>
  </data>
</group>
<group collapse="open">
<header>'''NGCC Info'''</header>
  <data source="major">
     <label>Major</label>
  </data>
</group>
</infobox>
</infobox>
<noinclude>
<noinclude>
==Usage & Preview==
Type in this:
<pre>{{Infobox
|title = Name
|image = Image
|image_info = Description of Image
|name = Nickname
|Origin = Place of Birth
|age = Age
|eth = Ethnicity
|dob = Date of Birth
|species = Species
|major = What major?
|height = Height
}}</pre>


For this:
 
test
 
 
{{Infobox
{{Infobox
|title = Ano (Anor3xiA)
|title = Ano (Anor3xiA)
Line 59: Line 58:
|height = 5'8"
|height = 5'8"
}}
}}
[[Category:Templates]]</noinclude>
</noinclude>

Latest revision as of 06:14, 2 January 2023


test