Template:UnitCell: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Use PatternIdentifiers template
Support up to 5 discoverers.
Line 22: Line 22:
<tr>
<tr>
<th> Discovered by </th>
<th> Discovered by </th>
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }} </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>
<th> Year of discovery </th>
<th> Year of discovery </th>
Line 39: Line 39:
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Unit cells]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
[[Category:Unit cells]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] [[Category:Unit cells with 1000 or more cells]] | [[Category:Patterns with {{{c}}} cells]] [[Category:Unit cells with {{{c}}} cells]] }} }} }}{{#if: {{{p|}}} | [[Category:Unit cells with period {{{p}}}]] }}{{#if: {{{sx|}}}{{{sy|}}} | [[Category:Unit cells with cell size {{{sx}}}&times;{{{sy}}}]] }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}
{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] [[Category:Unit cells with 1000 or more cells]] | [[Category:Patterns with {{{c}}} cells]] [[Category:Unit cells with {{{c}}} cells]] }} }} }}{{#if: {{{p|}}} | [[Category:Unit cells with period {{{p}}}]] }}{{#if: {{{sx|}}}{{{sy|}}} | [[Category:Unit cells with cell size {{{sx}}}&times;{{{sy}}}]] }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoverer2|}}} | [[Category:Patterns found by {{{discoverer2|}}}]] }}{{#if: {{{discoverer3|}}} | [[Category:Patterns found by {{{discoverer3|}}}]] }}{{#if: {{{discoverer4|}}} | [[Category:Patterns found by {{{discoverer4|}}}]] }}{{#if: {{{discoverer5|}}} | [[Category:Patterns found by {{{discoverer5|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}
</includeonly>
</includeonly>

Revision as of 10:49, 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