Template:UnitCell: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Support up to 5 discoverers.
fix vertical alignment for multiple discoverers
Line 21: Line 21:
<td> {{#if: {{{p|}}} | [[:Category:Unit cells with period {{{p}}}|{{{p}}}]] | Unknown }} </td></tr>
<td> {{#if: {{{p|}}} | [[:Category:Unit cells with period {{{p}}}|{{{p}}}]] | Unknown }} </td></tr>
<tr>
<tr>
<th> Discovered by </th>
<th valign="top"> Discovered by </th>
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }}{{#if: {{{discoverer2|}}} | <br />[[{{{discoverer2|}}}]] | }}{{#if: {{{discoverer3|}}} | <br />[[{{{discoverer3|}}}]] | }}{{#if: {{{discoverer4|}}} | <br />[[{{{discoverer4|}}}]] | }}{{#if: {{{discoverer5|}}} | <br />[[{{{discoverer5|}}}]] | }} </td></tr>
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }}{{#if: {{{discoverer2|}}} | <br />[[{{{discoverer2|}}}]] | }}{{#if: {{{discoverer3|}}} | <br />[[{{{discoverer3|}}}]] | }}{{#if: {{{discoverer4|}}} | <br />[[{{{discoverer4|}}}]] | }}{{#if: {{{discoverer5|}}} | <br />[[{{{discoverer5|}}}]] | }} </td></tr>
<tr>
<tr>

Revision as of 18:24, 18 July 2017

Pattern Name
{{{name}}} image
Pattern type Unit cell
Number of cells Unknown
Bounding box Unknown
Cell size Unknown
Period Unknown
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for unit cells. An example can be seen to the right. For general information about how to use pattern templates, see LifeWiki:Style guide/Pattern layout. To see a live example of this template in action, see OTCA metapixel.

Special parameters

The following parameter should be specified:

  • p: the period of the unit cell.
  • sx, sy: the size of the unit cell (not its bounding box).

Pattern templates