๐Ÿ“˜ Specification Overview: #5chdat Directive

This document outlines the basic functionality and usage of the #5chdat directive, designed to simplify the embedding and referencing of 5ch (formerly 2ch) thread data within PukiWiki pages or similar environments.

๐Ÿ” What is #5chdat?

The #5chdat directive allows users to embed or link to archived 5ch thread data using a simplified syntax. It is particularly useful for referencing threads stored in .dat format or mirrored content, enabling easier navigation and integration into wiki-based documentation or archival projects.

๐ŸŒ Related Wiki Page

๐Ÿ“Œ Related Documents

๐Ÿ” Planned Feature: Manual Password Verification

To ensure secure handling of .dat file attachments and avoid unintended behavior, we are shifting away from automated processes.

Instead, we plan to implement a manual verification step:

This approach avoids storing or exposing password hashes and ensures that all sensitive operations require explicit user intent.

๐Ÿงพ Syntax

#5chdat(URL)

๐Ÿ“„ Example Output

5chdat ๅฎŸ่กŒไพ‹ใ‚’่ฆ‹ใ‚‹ 5ch็‰ˆ

ๅ…ฅๅŠ›URL: https://medaka.5ch.net/test/read.cgi/gameurawaza/1366108733/158
preg_match ็ตๆžœ:
$m[0] = https://medaka.5ch.net/test/read.cgi/gameurawaza/1366108733/158
$m[1] = medaka.5ch.net
$m[2] = gameurawaza
$m[3] = 1366108733
$m[4] = 158
DAT URL: https://medaka.5ch.net/gameurawaza/dat/1366108733.dat
โœ… DATๅ–ๅพ—ๆˆๅŠŸ
Server = medaka.5ch.net
Board = gameurawaza
Thread = 1366108733
DATใ‚ตใ‚คใ‚บ = 122942 bytes
ๆ–‡ๅญ—ใ‚ณใƒผใƒ‰ = SJIS-win
DAT่กŒๆ•ฐ: 537
1่กŒ็›ฎใƒ•ใ‚ฃใƒผใƒซใƒ‰ๆ•ฐ: 5

๐Ÿง  ใ‚ณใƒกใƒณใƒˆ by softchip: