首页
最近更改
MediaWiki帮助
中文社区
模组
人物
团体
群聊
历史
外网社区
模组
发帖交流
论坛
聊天
博客
快捷访问
分类
文件列表
上传文件
用户列表
用户通知
礼物列表
随机页面
聊天中的在线用户
页面
讨论
查看源代码
查看历史
刷新
创建账号
登录
查看“︁Template/FeaturedContent”︁的源代码
来自Age Of History 2 Chinese Wiki
←
Template/FeaturedContent
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<div class="featured-content-container"> <div class="feature-item person"> <div class="section-title">精选人物</div> <div class="feature-content"> <dpl> # DPL Parameters Start ----- category = 精选人物 randomcount = 1 # --- Metadata Inclusion --- # !! 关键:确保此行存在且正确,以使 %AUTHOR% 工作 !! addauthor = true # !! 关键:确保此行存在且正确,以使 %DATE% 工作 !! addeditdate = true # 可选:自定义日期格式,例如 'Y年m月d日 H:i' # userdateformat = # --- Content Inclusion --- # 包含页面的第一段内容作为节选 # 如果页面结构不同,可尝试 include = {模板名} 或 include = #段落标题 include = {Page}:1 # --- Caching --- # 测试时可临时设为 false: allowcachedresults = false allowcachedresults = true dplcache = featuredperson_dpl3_v2 dplcacheperiod = 86400 # 缓存一天 (单位:秒) # --- Ordering & Selection --- ordermethod = firstedit # 按首次编辑排序(对 randomcount=1 影响不大) # --- Output Formatting --- # 如果没有找到页面时的提示信息 noresultsheader = <p style="text-align: center; color: #777;">目前没有精选人物。</p> # 使用 format 定义输出结构 (三部分:列表开始, 单项格式, 列表结束) # 假设你已将 CSS 类添加到 MediaWiki:Common.css format = <div class="dpl-results-list">, <div class="dpl-item"> <div class="dpl-image"> [[File:%IMAGE%|120x120px|link=%PAGE%]] </div> <div class="dpl-content"> <div class="dpl-title">[[%PAGE%]]</div> <div class="dpl-meta">作者: %AUTHOR% | 日期: %DATE%</div> <div class="dpl-excerpt">%SECTION%</div> </div> </div>, </div> # --- Other Parameters --- escapelinks = false # 通常设为 false 以正确显示链接 # DPL Parameters End ----- </dpl> </div> <div class="see-more"> [[:分类:精选人物|查看往期人物精选 »]] </div> </div> <div class="feature-item group"> <div class="section-title">精选团体</div> <div class="feature-content"> <dpl> # DPL Parameters Start ----- category = 精选团体 randomcount = 1 # --- Metadata Inclusion --- addauthor = true # !! 必须确保存在 !! addeditdate = true # userdateformat = # --- Content Inclusion --- include = {Page}:1 # --- Caching --- allowcachedresults = true dplcache = featuredgroup_dpl3_v2 dplcacheperiod = 86400 # --- Ordering & Selection --- ordermethod = firstedit # --- Output Formatting --- noresultsheader = <p style="text-align: center; color: #777;">目前没有精选团体。</p> format = <div class="dpl-results-list">, <div class="dpl-item"> <div class="dpl-image"> [[File:%IMAGE%|120x120px|link=%PAGE%]] </div> <div class="dpl-content"> <div class="dpl-title">[[%PAGE%]]</div> <div class="dpl-meta">作者: %AUTHOR% | 日期: %DATE%</div> <div class="dpl-excerpt">%SECTION%</div> </div> </div>, </div> # --- Other Parameters --- escapelinks = false # DPL Parameters End ----- </dpl> </div> <div class="see-more"> [[:分类:精选团体|查看往期团体精选 »]] </div> </div> </div>
该页面使用的模板:
Extension DPL
(
查看源代码
)
返回
Template/FeaturedContent
。
工具
链入页面
相关更改
特殊页面
页面信息
Cargo数据