This site is supported by donations to The OEIS Foundation.

Template:Meander/doc

From OeisWiki
Jump to: navigation, search

This documentation subpage contains instructions, categories, or other information for Template:Meander. [<Edit> Template:Meander]

[⧼Purge⧽ Template:Meander/doc]

The {{Meander}} graphic template displays the meander image assembled from the provided matrix of meander section IDs or abbreviations.

Usage

:{{Meander|rows count|columns count|matrix (up to 16 by 16, comma separated columns, rows end with double comma) of meander section IDs (-5, -4, -3, -2, -1, 0, +1, +2, +3, +4, +5) }}

or

:{{Meander|rows count|columns count|matrix (up to 16 by 16, comma separated columns, rows end with double comma) of meander section abbreviations (XH, UD, LT or TL, BR or RB, LR or RL, O, BT or TB, TR or RT, LB or BL, DD, XV) }}

or

:{{Meander|rows count|columns count|matrix (up to 16 by 16, comma separated columns, rows end with double comma) of meander section abbreviations (C, A, N, S, H, O, V, E, W, B, D) }}

Meander sections (IDs and abbreviations)

Non-self-crossing meander sections (IDs and abbreviations)

The 1-by-1 grid has the distinct and unique meander corresponding to the zero ID.

Meander for 1-by-1 grid
IDs Image

0

Meander 1-by-1 (small).png

The -by- grids, of non-self-crossing meanders are built from the following meander sections with nonzero IDs.

Non-self-crossing meander sections (parenthesized valid IDs for adjacent sections apply only to self-crossing meanders)
Image Abbreviation Abbreviation

(Benoît Jubin)

ID Valid IDs (left)
Valid IDs (above)
Valid IDs (right)
Valid IDs (below)
Meander LT & BR.png UD A -4 (-5), -4, -2, -1, +2, +4, (+5) (-5), -4, -2, +1, +3, +4, (+5) (-5), -4, -3, -1, +3, +4, (+5) (-5), -4, -3, +1, +2, +4, (+5)
Meander LT.png LT or TL N -3 (-5), -4, -2, -1, +2, +4, (+5) (-5), -4, -2, +1, +3, +4, (+5) -2, +1, +2 -2, -1, +3
Meander BR.png BR or RB S -2 -3, +1, +3 -3, -1, +2 (-5), -4, -3, -1, +3, +4, (+5) (-5), -4, -3, +1, +2, +4, (+5)
Meander LR.png LR or RL H -1 (-5), -4, -2, -1, +2, +4, (+5) -3, -1, +2 (-5), -4, -3, -1, +3, +4, (+5) -2, -1, +3
Meander BT.png BT or TB V +1 -3, +1, +3 (-5), -4, -2, +1, +3, +4, (+5) -2, +1, +2 (-5), -4, -3, +1, +2, +4, (+5)
Meander TR.png TR or RT E +2 -3, +1, +3 (-5), -4, -2, +1, +3, +4, (+5) (-5), -4, -3, -1, +3, +4, (+5) -2, -1, +3
Meander LB.png LB or BL W +3 (-5), -4, -2, -1, +2, +4, (+5) -3, -1, +2 -2, +1, +2 (-5), -4, -3, +1, +2, +4, (+5)
Meander LB & TR.png DD B +4 (-5), -4, -2, -1, +2, +4, (+5) (-5), -4, -2, +1, +3, +4, (+5) (-5), -4, -3, -1, +3, +4, (+5) (-5), -4, -3, +1, +2, +4, (+5)

Self-crossing meander sections (IDs and abbreviations)

The -by- grids, of self-crossing meanders furthermore require the following meander sections with nonzero IDs.

Self-crossing meander section
Image Abbreviation Abbreviation

(Benoît Jubin)

ID Valid IDs (left)
Valid IDs (above)
Valid IDs (right)
Valid IDs (below)
Meander X.png HV X ∗5 -5, -4, -2, -1, +2, +4, +5 -5, -4, -2, +1, +3, +4, +5 -5, -4, -3, -1, +3, +4, +5 -5, -4, -3, +1, +2, +4, +5


Self-crossing (under/over crossing distinction) meander sections
Image Abbreviation Abbreviation

(Benoît Jubin)

ID Valid IDs (left)
Valid IDs (above)
Valid IDs (right)
Valid IDs (below)
Meander XH.png XH C -5 -5, -4, -2, -1, +2, +4, +5 -5, -4, -2, +1, +3, +4, +5 -5, -4, -3, -1, +3, +4, +5 -5, -4, -3, +1, +2, +4, +5
Meander XV.png XV D +5 -5, -4, -2, -1, +2, +4, +5 -5, -4, -2, +1, +3, +4, +5 -5, -4, -3, -1, +3, +4, +5 -5, -4, -3, +1, +2, +4, +5

I am suggesting C and D to extend Benoît Jubin's abbreviations. — Daniel Forgues 04:56, 15 December 2011 (UTC)

Examples

Examples of non-self-crossing meanders

Code Result

{{Meander|4|4|
-2, +3, -2, +3,,
+2, +4, -3, +1,,
-2, -4, +3, +1,,
+2, -3, +2, -3,,
}}

Meander BR.png Meander LB.png Meander BR.png Meander LB.png
Meander TR.png Meander LB & TR.png Meander LT.png Meander BT.png
Meander BR.png Meander LT & BR.png Meander LB.png Meander BT.png
Meander TR.png Meander LT.png Meander TR.png Meander LT.png
Code Result

{{Meander|4|4|
BR, LB, BR, LB,,
RT, DD, LT, TB,,
BR, UD, BL, TB,,
RT, TL, RT, TL,,
}}

Meander BR.png Meander LB.png Meander BR.png Meander LB.png
Meander TR.png Meander LB & TR.png Meander LT.png Meander BT.png
Meander BR.png Meander LT & BR.png Meander LB.png Meander BT.png
Meander TR.png Meander LT.png Meander TR.png Meander LT.png
Code Result

{{Meander|4|4|
S, W, S, W,,
E, B, N, V,,
S, A, W, V,,
E, N, E, N,,
}}

Meander BR.png Meander LB.png Meander BR.png Meander LB.png
Meander TR.png Meander LB & TR.png Meander LT.png Meander BT.png
Meander BR.png Meander LT & BR.png Meander LB.png Meander BT.png
Meander TR.png Meander LT.png Meander TR.png Meander LT.png


Code Result

{{Meander|4|8|
-2, +3, -2, +3, -2, +3, -2, +3,,
+1, +2, -3, +2, -3, +2, -3, +1,,
+1, -2, +3, -2, +3, -2, +3, +1,,
+2, -3, +2, -3, +2, -3, +2, -3,,
}}

Meander BR.png Meander LB.png Meander BR.png Meander LB.png Meander BR.png Meander LB.png Meander BR.png Meander LB.png
Meander BT.png Meander TR.png Meander LT.png Meander TR.png Meander LT.png Meander TR.png Meander LT.png Meander BT.png
Meander BT.png Meander BR.png Meander LB.png Meander BR.png Meander LB.png Meander BR.png Meander LB.png Meander BT.png
Meander TR.png Meander LT.png Meander TR.png Meander LT.png Meander TR.png Meander LT.png Meander TR.png Meander LT.png


Code Result

{{Meander|16|16|
-2, +3, -2, +3, -2, +3, -2, +3, -2, +3, -2, +3, -2, +3, -2, +3,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1, +1,,
+1, +2, -3, +2, -3, +2, -3, +2, -3, +2, -3, +2, -3, +2, -3, +1,,
+2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -3,,
}}

Meander BR.png Meander LB.png Meander BR.png Meander LB.png Meander BR.png Meander LB.png Meander BR.png Meander LB.png Meander BR.png Meander LB.png Meander BR.png Meander LB.png Meander BR.png Meander LB.png Meander BR.png Meander LB.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png Meander BT.png
Meander BT.png Meander TR.png Meander LT.png Meander TR.png Meander LT.png Meander TR.png Meander LT.png Meander TR.png Meander LT.png Meander TR.png Meander LT.png Meander TR.png Meander LT.png Meander TR.png Meander LT.png Meander BT.png
Meander TR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LR.png Meander LT.png

Examples of self-crossing meanders

Code Result

{{Meander|4|4|
-2, +3, -2, +3,,
+2, -4, +4, -3,,
-2, -5, +5, +3,,
+2, -3, +2, -3,,
}}

Meander BR.png Meander LB.png Meander BR.png Meander LB.png
Meander TR.png Meander LT & BR.png Meander LB & TR.png Meander LT.png
Meander BR.png Meander XH.png Meander XV.png Meander LB.png
Meander TR.png Meander LT.png Meander TR.png Meander LT.png
Code Result

{{Meander|4|4|
BR, LB, BR, LB,,
TR, UD, DD, LT,,
BR, XH, XV, LB,,
TR, LT, TR, LT,,
}}

Meander BR.png Meander LB.png Meander BR.png Meander LB.png
Meander TR.png Meander LT & BR.png Meander LB & TR.png Meander LT.png
Meander BR.png Meander XH.png Meander XV.png Meander LB.png
Meander TR.png Meander LT.png Meander TR.png Meander LT.png
Code Result

{{Meander|4|4|
S, W, S, W,,
E, A, B, N,,
S, C, D, W,,
E, N, E, N,,
}}

Meander BR.png Meander LB.png Meander BR.png Meander LB.png
Meander TR.png Meander LT & BR.png Meander LB & TR.png Meander LT.png
Meander BR.png Meander XH.png Meander XV.png Meander LB.png
Meander TR.png Meander LT.png Meander TR.png Meander LT.png
Code Result

{{Meander|4|4|

╭ , ╮   ,   ╭ , ╮ ,,
╰ , ╯ ╭ , ╮ ╰ , ╯ ,,
╭ , ╪ , ╫ , ╮ ,,
╰ , ╯ , ╰ , ╯ ,,
}}
Meander BR.png Meander LB.png Meander BR.png Meander LB.png
Meander TR.png Meander LT & BR.png Meander LB & TR.png Meander LT.png
Meander BR.png Meander XH.png Meander XV.png Meander LB.png
Meander TR.png Meander LT.png Meander TR.png Meander LT.png


Code

<noinclude>{{documentation}}</noinclude><includeonly>{| cellspacing="1px" cellpadding="0px" style="background: red; color: red; border-collapse: collapse; border: 1px solid red;"<!-- 

Start row 1 

-->{{#ifexpr: {{{1|}}} >=  1 | <br />
{{!-}}
{{#ifexpr: {{{2|}}} >=  1 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, | 0}} }}}}
{{#ifexpr: {{{2|}}} >=  2 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, | 1}} }}}} 
{{#ifexpr: {{{2|}}} >=  3 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, | 2}} }}}} 
{{#ifexpr: {{{2|}}} >=  4 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, | 3}} }}}} 
{{#ifexpr: {{{2|}}} >=  5 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, | 4}} }}}} 
{{#ifexpr: {{{2|}}} >=  6 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, | 5}} }}}} 
{{#ifexpr: {{{2|}}} >=  7 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, | 6}} }}}} 
{{#ifexpr: {{{2|}}} >=  8 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, | 7}} }}}} 
{{#ifexpr: {{{2|}}} >=  9 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, | 8}} }}}} 
{{#ifexpr: {{{2|}}} >= 10 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, | 9}} }}}} 
{{#ifexpr: {{{2|}}} >= 11 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, |10}} }}}} 
{{#ifexpr: {{{2|}}} >= 12 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, |11}} }}}} 
{{#ifexpr: {{{2|}}} >= 13 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, |12}} }}}} 
{{#ifexpr: {{{2|}}} >= 14 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, |13}} }}}} 
{{#ifexpr: {{{2|}}} >= 15 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, |14}} }}}} 
{{#ifexpr: {{{2|}}} >= 16 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, | 0}}|, |15}} }}}}
}}<!--
 
Start row 2
 
-->

(...)

<!-- 

Start row 16 

-->{{#ifexpr: {{{1|}}} >= 16 | <br />
{{!-}}
{{#ifexpr: {{{2|}}} >=  1 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, | 0}} }}}}
{{#ifexpr: {{{2|}}} >=  2 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, | 1}} }}}} 
{{#ifexpr: {{{2|}}} >=  3 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, | 2}} }}}} 
{{#ifexpr: {{{2|}}} >=  4 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, | 3}} }}}} 
{{#ifexpr: {{{2|}}} >=  5 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, | 4}} }}}} 
{{#ifexpr: {{{2|}}} >=  6 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, | 5}} }}}} 
{{#ifexpr: {{{2|}}} >=  7 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, | 6}} }}}} 
{{#ifexpr: {{{2|}}} >=  8 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, | 7}} }}}} 
{{#ifexpr: {{{2|}}} >=  9 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, | 8}} }}}} 
{{#ifexpr: {{{2|}}} >= 10 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, | 9}} }}}} 
{{#ifexpr: {{{2|}}} >= 11 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, |10}} }}}} 
{{#ifexpr: {{{2|}}} >= 12 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, |11}} }}}} 
{{#ifexpr: {{{2|}}} >= 13 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, |12}} }}}} 
{{#ifexpr: {{{2|}}} >= 14 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, |13}} }}}} 
{{#ifexpr: {{{2|}}} >= 15 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, |14}} }}}} 
{{#ifexpr: {{{2|}}} >= 16 |{{!}}{{Meander section| {{#explode:{{#explode:{{{3|}}}|,, |15}}|, |15}} }}}}
}}
|- 
|}</includeonly>

See also