Template:UnitCell: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 17: Line 17:
|pname        = {{{pname|}}}
|pname        = {{{pname|}}}
|animated      = {{{animated|}}}
|animated      = {{{animated|}}}
|hideimg      = {{{hideimg|}}}
}}<!--
}}<!--


Line 25: Line 26:
<td> {{#if: {{{type|}}} | [[{{{type|}}}]]<br /> }}[[Unit cell]] </td></tr><!--
<td> {{#if: {{{type|}}} | [[{{{type|}}}]]<br /> }}[[Unit cell]] </td></tr><!--


Display population and bounding box. Passing catextra= ensures we also get unit cell-specific categories, e.g. "Unit cells with ... cells".
Display population and bounding box.


-->{{PatternPopulationAndBoundingBox
-->{{PatternPopulationAndBoundingBox
Line 31: Line 32:
|bx      = {{{bx|}}}
|bx      = {{{bx|}}}
|by      = {{{by|}}}
|by      = {{{by|}}}
|catextra = Unit cells
}}<!--
}}<!--


Line 39: Line 39:
<tr>
<tr>
<th> Cell size </th>
<th> Cell size </th>
<td> {{#if: {{{sx|}}} | {{{sx}}}&times;{{{sy}}} | Unknown }} </td></tr>
<td> {{#if: {{{sx|}}} | {{times|{{{sx}}}|{{{sy}}}}} | Unknown }} </td></tr>
<tr>
<tr>
<th> [[Period#Oscillators|Period]] </th>
<th> [[Period#Oscillators|Period]] </th>
<td> {{#if: {{{p|}}} | [[:Category:Unit cells with period {{{p}}}|{{{p}}}]] | Unknown }} </td></tr><!--
<td> {{#if: {{{p|}}} | {{{p}}} | Unknown }} </td></tr><!--


Display an infobox divider
Display an infobox divider
Line 74: Line 74:
|rulemax      = {{{rulemax|}}}
|rulemax      = {{{rulemax|}}}
|rulemin      = {{{rulemin|}}}  
|rulemin      = {{{rulemin|}}}  
|isorulemax  = {{{isorulemax|}}}
|isorulemin  = {{{isorulemin|}}}
}}<!--
}}<!--


Line 97: Line 99:


--><includeonly>
--><includeonly>
{{#ifeq:{{NAMESPACE}}|User||
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Unit cells]]
[[Category:Unit cells]]
{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}{{#if: {{{p|}}} | [[Category:Unit cells with period {{{p}}}]] }}{{#if: {{{sx|}}}{{{sy|}}} | [[Category:Unit cells with cell size {{{sx}}}&times;{{{sy}}}]] }}
}}
</includeonly>
</includeonly>

Latest revision as of 19:15, 28 April 2023

Unit Cell Name
image
Pattern type Unit cell
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:Pattern pages. 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