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)
 
(Documentation)
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=240|10x10=360|15x15=480|20x20=600|#default=720}}px"
!Show puzzle
!Show puzzle
|-
|-
Line 738: Line 738:
}}
}}
{{tab|c}}{{tab|c}}
{{tab|c}}{{tab|c}}
|}</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>
|}</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 to any value to fill in the square, i.e. <code><nowiki>|aa1=*</nowiki></code>.<br>
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>
{{User:Aid1043/MC2Wrapper
|size=5x5
}}
</pre>
|style="vertical-align:top"|
{{User:Aid1043/MC2Wrapper
|size=5x5
}}
|-
|<pre>
{{User:Aid1043/MC2Wrapper
|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"|
{{User:Aid1043/MC2Wrapper
|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=*
}}
|}</noinclude>

Revision as of 03:16, 1 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 to any value to fill in the square, i.e. |aa1=*.

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
{{User:Aid1043/MC2Wrapper
|size=5x5
}}

User:Aid1043/MC2Wrapper

{{User:Aid1043/MC2Wrapper
|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=*
}}

User:Aid1043/MC2Wrapper