Template:Hanafuda/doc

Template:Hanafuda is a template for displaying an arbitrary hanafuda card image. There are separate templates for displaying other cards:

Usage

This template is used by filling in two variables (X and Y).

{{hanafuda|X|Y}}

X is the number of the month (from 1 to 12), and Y corresponds to the value of the card in the game Hachi-Hachi: 20 points for a hikari, 10 points for a tane, 5 for a tanzaku, and 1 (or 1a, 1b, 1c) for a kasu.

When using {{hanafuda|X|Y|Z}}, the size can be adjusted with Z. The default value is 38px.

Cards with a red back/border can also be used by adding red=1:

{{hanafuda|X|Y|red=1}}

A blank card and a card back are also supported:

{{hanafuda|blank}}
{{hanafuda|back}}

Examples

Examples of all 48 card types (and 1 blank card and 1 card back) are shown below:

Input Output Input Output Input Output Input Output
{{hanafuda|1|20}} {{hanafuda|1|5}} {{hanafuda|1|1}} or {{hanafuda|1|1a}} {{hanafuda|1|1b}}
{{hanafuda|2|10}} {{hanafuda|2|5}} {{hanafuda|2|1}} or {{hanafuda|2|1a}} {{hanafuda|2|1b}}
{{hanafuda|3|20}} {{hanafuda|3|5}} {{hanafuda|3|1}} or {{hanafuda|3|1a}} {{hanafuda|3|1b}}
{{hanafuda|4|10}} {{hanafuda|4|5}} {{hanafuda|4|1}} or {{hanafuda|4|1a}} {{hanafuda|4|1b}}
{{hanafuda|5|10}} {{hanafuda|5|5}} {{hanafuda|5|1}} or {{hanafuda|5|1a}} {{hanafuda|5|1b}}
{{hanafuda|6|10}} {{hanafuda|6|5}} {{hanafuda|6|1}} or {{hanafuda|6|1a}} {{hanafuda|6|1b}}
{{hanafuda|7|10}} {{hanafuda|7|5}} {{hanafuda|7|1}} or {{hanafuda|7|1a}} {{hanafuda|7|1b}}
{{hanafuda|8|20}} {{hanafuda|8|10}} {{hanafuda|8|1}} or {{hanafuda|8|1a}} {{hanafuda|8|1b}}
{{hanafuda|9|10}} {{hanafuda|9|5}} {{hanafuda|9|1}} or {{hanafuda|9|1a}} {{hanafuda|9|1b}}
{{hanafuda|10|10}} {{hanafuda|10|5}} {{hanafuda|10|1}} or {{hanafuda|10|1a}} {{hanafuda|10|1b}}
{{hanafuda|11|20}} {{hanafuda|11|10}} {{hanafuda|11|5}} {{hanafuda|11|1}}
{{hanafuda|12|20}} {{hanafuda|12|1a}} {{hanafuda|12|1}} or {{hanafuda|12|1b}} {{hanafuda|12|1c}}
{{hanafuda|blank}} {{hanafuda|back}}

Examples of other options:

Input Output Description
{{hanafuda|1|20|25px}} Size adjusted
{{hanafuda|1|20|red=1}} Red border
{{hanafuda|1|20|70px|red=1}} Red border and size adjusted
{{hanafuda|back|25px}} Card back with size adjusted
{{hanafuda|back|red=1}} Card back changed to red
{{hanafuda|blank|red=1}} Blank card with red border
{{hanafuda|blank|70px|red=1}} Blank card with red border and size adjusted

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.