Template:UnitCell: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 39: Line 39:
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Sawtooths]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
[[Category:Sawtooths]]{{#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: {{{e|}}} | {{#if: {{{p|}}} | [[Category:Unit cells with period {{{p}}}]] }}{{#if: {{{sx|}}}{{{sy|}}} | [[Category:Unit cells with cell size {{{sx}}}×{{{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}}}×{{{sy}}}]] }}{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] }}
</includeonly>
</includeonly>

Revision as of 15:34, 19 June 2016

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