[ 新規 | 編集 | 差分 ] [ 検索 | 一覧 | FrontPage ] [ 履歴 (RSS) | 差分履歴 (RSS) ] [ ログイン ]
【PR】Amazon | SL-C3000 | SL-C1000(3/18発売!) | SL-C860 | SL-6000W | SL-6000L | SL-6000N

WalWiki/カスタマイズ/無名セクション

編集

部分編集を行うための無名セクションを作成します。

[anonymouse section]

編集

見出しを作成せずに部分編集の為だけのセクションを作成します。
下記のような内容無しの見出しを記述すると無名セクションを作成する事が出来ます。

*
**
***

text_to_html()内の変更

編集
        # Walrus add [header level] start
        } elsif (/^(\*{1,$header_level})(.*)/) {          # yakty del [fix]
            if(length($2) > 0) {                            # yakty add [anonymouse section]
            push(@toc, sprintf(qq(%s<a href="#i%d">%s</a>\n), '-' x length($1), $tocnum, &escape(&remove_modification($2))));                    # Walrus mod [remove modification]
            #push(@result, splice(@saved), sprintf('<h%d><a name="i%d"> </a>%s</h%d>', length($1) + 1, $tocnum, &inline($2), length($1) + 1));                                # yakty del [link to part]
            push(@result, splice(@saved), sprintf('<h%d><a name="i%d"> </a><a name="%s"> </a>%s</h%d>', length($1) + 1, $tocnum, &encode($2), &inline($2), length($1) + 1));  # yakty add [link to part]
            }                                               # yakty add [anonymouse section]
            push(@result, sprintf(qq(<div class="partinfo">$resource{'parteditlinkformat'}</div>), $tocnum + 2)) if ($option{'partinfo'});       # Walrus add [part edit]
            $tocnum++;
        # Walrus add [header level] end

01992