メニューを切り替える
個人設定メニューを切り替える
個人メニューを切り替える
ログインしていません
編集を行うと、IPアドレスが公開されます。

「テンプレート:飲食店」の版間の差分

提供: 川西図鑑
編集の要約なし
編集の要約なし
208行目: 208行目:
}
}
</style>
</style>
<script>
<script>
<script>
document.addEventListener("DOMContentLoaded", function() {
document.addEventListener("DOMContentLoaded", function() {
    document.querySelectorAll(".wikitable p").forEach(function(p) {
        if (!p.textContent.trim()) {
            p.remove();
        }
    });
    document.querySelectorAll(".wikitable tr").forEach(function(tr) {
        const th = tr.querySelector("th");
        const td = tr.querySelector("td");


    document.querySelectorAll(".wikitable p, .wikitable br").forEach(function(el) {
         if (!th || !td) return;
         el.remove()
    })


    document.querySelectorAll(".wikitable").forEach(function(table) {
         if (th.textContent === "郵便番号") {
         table.querySelectorAll("tr").forEach(function(tr) {
            // 郵便番号らしい数字のみ抽出
            const th = tr.querySelector("th")
            const match = td.textContent.replace(/\D/g, "").match(/^(\d{3})(\d{4})$/);
            const td = tr.querySelector("td")
            if (match) {
 
                td.textContent = match[1] + "-" + match[2];
            if (th && td && th.textContent.trim() === "郵便番号") {
 
                let text = td.textContent.trim().replace(/\D/g, "")
 
                const match = text.match(/^(\d{3})(\d{4})$/)
 
                if (match) {
                    td.textContent = `${match[1]}-${match[2]}`
                }
             }
             }
         })
         }
     })
     });
})
});
//# sourceURL=foobar.js
//# sourceURL=foobar.js
</script>
</script>

2025年12月2日 (火) 17:30時点における版

基本情報

店名 不明
ジャンル 不明
郵便番号 不明
住所 不明







たばこ

禁煙・喫煙 不明
喫煙専用室 不明

お席

総席数 不明
個室 不明
貸切 不明

設備

Wi-Fi 不明
バリアフリー 不明
駐車場 不明
その他設備 不明

その他

飲み放題 不明
食べ放題 不明
お子様連れ 不明

このテンプレートはテーブル「飲食店情報」を定義しています。 このテーブルはまだ作成されていません。