Difference between revisions of "Template:Symmetry"
Jump to navigation
Jump to search
(wow, there was this whole other category stranded by itself) |
(Remove user pages from categories) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>This is a template for including symmetry categories for patterns. | ||
For example, | |||
<tt><nowiki>{{Symmetry|orthogonal4|osc=flip}}</nowiki></tt> | |||
adds the categories [[:Category:Patterns with rectangular orthogonal symmetry]] and [[:Category:Flipping oscillators]] to the page. Typing | |||
<tt><nowiki>{{Symmetry|180degree}}</nowiki></tt> | |||
adds only [[:Category:Patterns with 180-degree rotation symmetry]], whereas | |||
<tt><nowiki>{{Symmetry|osc=turn90}}</nowiki></tt> | |||
adds only [[:Category:Non-flipping oscillators that turn 90 degrees]]. | |||
Options are | |||
* <tt>orthogonal2</tt>: Patterns with reflection symmetry in exactly one orthogonal axis ([[:Category:Patterns with bilateral orthogonal symmetry]]). | |||
* <tt>orthogonal4</tt>: Patterns with reflection symmetry in both orthogonal axes ([[:Category:Patterns with rectangular orthogonal symmetry]]). | |||
* <tt>diagonal2</tt>: Patterns with reflection symmetry in exactly one diagonal axis ([[:Category:Patterns with bilateral diagonal symmetry]]). | |||
* <tt>diagonal4</tt>: Patterns with reflection symmetry in both diagonal axes ([[:Category:Patterns with rectangular diagonal symmetry]]). | |||
* <tt>180degree</tt>: Patterns with 180-degree rotation symmetry ([[:Category:Patterns with 180-degree rotation symmetry]]). | |||
* <tt>90degree</tt>: Patterns with 90-degree rotation symmetry ([[:Category:Patterns with 90-degree rotation symmetry]]). | |||
* <tt>full</tt>: Patterns with all rotation and reflection symmetry ([[:Category:Patterns with complete square symmetry]]). | |||
* <tt>osc=flip</tt>: Oscillators that flip (reflect) during evolution ([[:Category:Flipping oscillators]]). | |||
* <tt>osc=turn180</tt>: Oscillators that rotate 180 degrees during evolution ([[:Category:Non-flipping oscillators that turn 180 degrees]]). | |||
* <tt>osc=turn90</tt>: Oscillators that rotate 90 degrees during evolution ([[:Category:Non-flipping oscillators that turn 90 degrees]]). | |||
This template should not be used if the pattern has no symmetry of any kind. | |||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
{{#ifeq:{{NAMESPACE}}|User|| | |||
{{#ifeq: {{{1|}}} | orthogonal2 | [[Category:Patterns with bilateral orthogonal symmetry]]}} | {{#ifeq: {{{1|}}} | orthogonal2 | [[Category:Patterns with bilateral orthogonal symmetry]]}} | ||
{{#ifeq: {{{1|}}} | orthogonal4 | [[Category:Patterns with rectangular orthogonal symmetry]]}} | {{#ifeq: {{{1|}}} | orthogonal4 | [[Category:Patterns with rectangular orthogonal symmetry]]}} | ||
{{#ifeq: {{{1|}}} | diagonal2 | [[Category:Patterns with diagonal | {{#ifeq: {{{1|}}} | diagonal2 | [[Category:Patterns with bilateral diagonal symmetry]]}} | ||
{{#ifeq: {{{1|}}} | diagonal4 | [[Category:Patterns with rectangular diagonal symmetry]]}} | {{#ifeq: {{{1|}}} | diagonal4 | [[Category:Patterns with rectangular diagonal symmetry]]}} | ||
{{#ifeq: {{{1|}}} | 180degree | [[Category:Patterns with 180-degree rotation symmetry]]}} | {{#ifeq: {{{1|}}} | 180degree | [[Category:Patterns with 180-degree rotation symmetry]]}} | ||
Line 12: | Line 43: | ||
{{#ifeq: {{{osc|}}} | turn180 | [[Category:Non-flipping oscillators that turn 180 degrees]]}} | {{#ifeq: {{{osc|}}} | turn180 | [[Category:Non-flipping oscillators that turn 180 degrees]]}} | ||
{{#ifeq: {{{osc|}}} | turn90 | [[Category:Non-flipping oscillators that turn 90 degrees]]}} | {{#ifeq: {{{osc|}}} | turn90 | [[Category:Non-flipping oscillators that turn 90 degrees]]}} | ||
}} | |||
</includeonly> | </includeonly> |
Revision as of 01:17, 10 December 2018
This is a template for including symmetry categories for patterns.
For example,
{{Symmetry|orthogonal4|osc=flip}}
adds the categories Category:Patterns with rectangular orthogonal symmetry and Category:Flipping oscillators to the page. Typing
{{Symmetry|180degree}}
adds only Category:Patterns with 180-degree rotation symmetry, whereas
{{Symmetry|osc=turn90}}
adds only Category:Non-flipping oscillators that turn 90 degrees.
Options are
- orthogonal2: Patterns with reflection symmetry in exactly one orthogonal axis (Category:Patterns with bilateral orthogonal symmetry).
- orthogonal4: Patterns with reflection symmetry in both orthogonal axes (Category:Patterns with rectangular orthogonal symmetry).
- diagonal2: Patterns with reflection symmetry in exactly one diagonal axis (Category:Patterns with bilateral diagonal symmetry).
- diagonal4: Patterns with reflection symmetry in both diagonal axes (Category:Patterns with rectangular diagonal symmetry).
- 180degree: Patterns with 180-degree rotation symmetry (Category:Patterns with 180-degree rotation symmetry).
- 90degree: Patterns with 90-degree rotation symmetry (Category:Patterns with 90-degree rotation symmetry).
- full: Patterns with all rotation and reflection symmetry (Category:Patterns with complete square symmetry).
- osc=flip: Oscillators that flip (reflect) during evolution (Category:Flipping oscillators).
- osc=turn180: Oscillators that rotate 180 degrees during evolution (Category:Non-flipping oscillators that turn 180 degrees).
- osc=turn90: Oscillators that rotate 90 degrees during evolution (Category:Non-flipping oscillators that turn 90 degrees).
This template should not be used if the pattern has no symmetry of any kind.