Template:MC: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(Is passing 676 parameters optimal? Probably not, but it's the best I can come up with)
 
(Hopefully the last fix)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable mw-collapsible mw-collapsed" border="0"
<includeonly>{| class="wikitable mw-collapsible mw-collapsed" border="0" style="width:{{#switch:{{{size|}}}|5x5=270|10x10=400|15x15=530|20x20=660|#default=790}}px"
!Show puzzle
!Show puzzle
|-
|-
| {{tab|o}}
| {{tab|o}}
{{tab|Puzzle}}
{{tab|Puzzle}}
{{User:Aid1043/MC2|
{{MC/Grid|
|size={{{size|}}}
|size={{{size|}}}
|col1={{{col1|0}}}
|col1={{{col1|0}}}
Line 59: Line 59:
{{tab|c}}
{{tab|c}}
{{tab|Solution}}
{{tab|Solution}}
{{User:Aid1043/MC2|
{{MC/Grid|
|size={{{size|}}}
|size={{{size|}}}
|col1={{{col1|0}}}
|col1={{{col1|0}}}
Line 736: Line 736:
|ee24={{{ee24|}}}
|ee24={{{ee24|}}}
|ee25={{{ee25|}}}
|ee25={{{ee25|}}}
}}{{tab|c}}{{tab|c}}
|}</includeonly><noinclude>
This template creates a Picross/nonogram board to display the puzzles of KH Magical Canvas.
==Usage==
{|border="1" cellspacing="0" cellpadding="2" style="{{style|text|a}}; width:80%"
|-style="{{style|khc|a}}"
!style="width:15%"|Parameter
!style="width:85%"|Description
|-
!size
|The size of the board. 5x5, 10x10, 15x15, 20x20, or 25x25 (default).
|-
!col#
|The numbers in each column, where # is 1-25. Separate numbers with <code><nowiki><br></nowiki></code>. Defaults to 0.
|-
!row#
|The numbers in each row, where # is 1-25. Separate numbers with spaces. Defaults to 0.
|-
!aa#<br>ab#<br>ac#<br>ad#<br>ae#<br>ba#<br>bb#<br>...<br>ee#
|Set an asterisk (*) to fill in the square.
The first two letters correspond to the 5x5 block of cells within the puzzle. The first letter is the row and the second is the column.
{|border="1" cellspacing="0" style="text-align:center; width:100px"
|style="width:20px"|aa
|style="width:20px"|ab
|style="width:20px"|ac
|style="width:20px"|ad
|style="width:20px"|ae
|-
|ba
|bb
|bc
|bd
|be
|-
|ca
|cb
|cc
|cd
|ce
|-
|da
|db
|dc
|dd
|de
|-
|ea
|eb
|ec
|ed
|ee
|}
For instance, a 5x5 puzzle only uses the ''aa'' block, while a 10x10 puzzle uses ''aa'', ''ab'', ''ba'', and ''bb''.
<br><br># is a number 1-25, representing the cell within the 5x5 block.
{|border="1" cellspacing="0" style="text-align:center; width:100px"
|style="width:20px"|1
|style="width:20px"|2
|style="width:20px"|3
|style="width:20px"|4
|style="width:20px"|5
|-
|6
|7
|8
|9
|10
|-
|11
|12
|13
|14
|15
|-
|16
|17
|18
|19
|20
|-
|21
|22
|23
|24
|25
|}
|}
==Examples==
{|border="1" cellspacing="0" cellpadding="20" style="width:50%"
!style="width:40%"|Code||Result
|-
|<pre>
{{MC
|size=5x5
}}
</pre>
|style="vertical-align:top"|
{{MC
|size=5x5
}}
|-
|<pre>
{{MC
|size=10x10
|col2=1
|col3=3<br>1
|col4=1
|col5=1
|col6=1
|col7=1
|col8=3<br>1
|col9=1
|row2=1 1
|row3=1 1
|row4=1 1
|row7=1 1
|row8=1 1
|row9=4
|aa8=*
|aa13=*
|aa18=*
|ab8=*
|ab13=*
|ab18=*
|ba7=*
|ba13=*
|ba19=*
|ba20=*
|bb16=*
|bb17=*
|bb13=*
|bb9=*
}}
</pre>
|style="vertical-align:top"|
{{MC
|size=10x10
|col2=1
|col3=3<br>1
|col4=1
|col5=1
|col6=1
|col7=1
|col8=3<br>1
|col9=1
|row2=1 1
|row3=1 1
|row4=1 1
|row7=1 1
|row8=1 1
|row9=4
|aa8=*
|aa13=*
|aa18=*
|ab8=*
|ab13=*
|ab18=*
|ba7=*
|ba13=*
|ba19=*
|ba20=*
|bb16=*
|bb17=*
|bb13=*
|bb9=*
}}
}}
{{tab|c}}{{tab|c}}
|}</noinclude><noinclude>[[Category:Infoboxes]]</noinclude>
|}</includeonly><noinclude>{{User:Aid1043/MC2Wrapper|size=10x10|aa8=*|aa13=*|aa18=*|ab8=*|ab13=*|ab18=*|ba7=*|ba13=*|ba19=*|ba20=*|bb16=*|bb17=*|bb13=*|bb9=*|col2=1|col3=3<br>1|col4=1|col5=1|col6=1|col7=1|col8=3<br>1|col9=1|row2=1 1|row3=1 1|row4=1 1|row7=1 1|row8=1 1|row9=4}}</noinclude>

Latest revision as of 16:56, 6 November 2024

This template creates a Picross/nonogram board to display the puzzles of KH Magical Canvas.

Usage

Parameter Description
size The size of the board. 5x5, 10x10, 15x15, 20x20, or 25x25 (default).
col# The numbers in each column, where # is 1-25. Separate numbers with <br>. Defaults to 0.
row# The numbers in each row, where # is 1-25. Separate numbers with spaces. Defaults to 0.
aa#
ab#
ac#
ad#
ae#
ba#
bb#
...
ee#
Set an asterisk (*) to fill in the square.

The first two letters correspond to the 5x5 block of cells within the puzzle. The first letter is the row and the second is the column.

aa ab ac ad ae
ba bb bc bd be
ca cb cc cd ce
da db dc dd de
ea eb ec ed ee

For instance, a 5x5 puzzle only uses the aa block, while a 10x10 puzzle uses aa, ab, ba, and bb.

# is a number 1-25, representing the cell within the 5x5 block.

1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25

Examples

Code Result
{{MC
|size=5x5
}}
Show puzzle
0 0 0 0 0
0 0 0 0 0
{{MC
|size=10x10
|col2=1
|col3=3<br>1
|col4=1
|col5=1
|col6=1
|col7=1
|col8=3<br>1
|col9=1
|row2=1 1
|row3=1 1
|row4=1 1
|row7=1 1
|row8=1 1
|row9=4
|aa8=*
|aa13=*
|aa18=*
|ab8=*
|ab13=*
|ab18=*
|ba7=*
|ba13=*
|ba19=*
|ba20=*
|bb16=*
|bb17=*
|bb13=*
|bb9=*
}}
Show puzzle
0 1 3
1
1 1 1 1 3
1
1 0
1 1 
1 1 
1 1 
1 1 
1 1 
0 1 3
1
1 1 1 1 3
1
1 0
1 1 
1 1 
1 1 
1 1 
1 1