中文人物:修订间差异

来自Age Of History 2 Chinese Wiki
跳转至:导航、​搜索
无编辑摘要
页面内容被替换为“{{#dpl: | category = 中文人物 | addauthor = true | addfirsteditdate = true | mode = table | columns = page,author,firsteditdate | class = wikitable }}”
第1行: 第1行:
<!DOCTYPE html>
{{#dpl:
<html lang="zh-CN">
| category = 中文人物
<head>
| addauthor = true
    <meta charset="UTF-8">
| addfirsteditdate = true
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
| mode = table
    <title>中文人物目录</title>
| columns = page,author,firsteditdate
    <style>
| class = wikitable
        body {
}}
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
            margin: 0;
            padding: 20px;
            color: #333;
        }
 
        .directory-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
 
        .directory-header {
            text-align: center;
            margin-bottom: 30px;
        }
 
        .directory-header h1 {
            font-size: 2.5em;
            color: #1e3a8a;
            margin: 0;
        }
 
        .directory-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
 
        .directory-card {
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            padding: 20px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden;
        }
 
        .directory-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        }
 
        .directory-card h3 {
            font-size: 1.5em;
            color: #1e3a8a;
            margin: 0 0 10px;
        }
 
        .directory-card p {
            margin: 5px 0;
            font-size: 1em;
            color: #4b5563;
        }
 
        .directory-card p.label {
            font-weight: bold;
            color: #1e40af;
        }
 
        /* 响应式设计 */
        @media (max-width: 600px) {
            .directory-grid {
                grid-template-columns: 1fr;
            }
 
            .directory-header h1 {
                font-size: 2em;
            }
        }
    </style>
</head>
<body>
    <div class="directory-container">
        <div class="directory-header">
            <h1>中文人物目录</h1>
        </div>
        <div class="directory-grid">
            <!-- 使用 DynamicPageList3 查询 -->
            <div class="dynamic-content">
                {{#dpl:
                    |category=中文人物
                    |namespace=
                    |ordermethod=created
                    |order=descending
                    |addpagecounter=true
                    |addauthor=true
                    |addcreationdate=true
                    |resultsheader=<div class="directory-grid">
                    |noresultsheader=<p>暂无页面数据</p>
                    |format=,<div class="directory-card"><h3>%PAGE%</h3><p class="label">创建时间:</p><p>%DATE%</p><p class="label">创建人:</p><p>%USER%</p></div>,
                    |resultsfooter=</div>
                }}
            </div>
        </div>
    </div>
 
    <script>
        // 可选:添加动态效果(如平滑滚动)
        document.querySelectorAll('.directory-card').forEach(card => {
            card.addEventListener('click', () => {
                const pageName = card.querySelector('h3').textContent;
                window.location.href = `/wiki/${encodeURIComponent(pageName)}`;
            });
        });
    </script>
</body>
</html>

2025年5月2日 (五) 19:27的版本