打开/关闭菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:StationInfo:修订间差异

来自CitiZons Wiki
修正粗体
夜间模式适配
第1行: 第1行:
<table style="float: right; clear: right; width: 22em; margin: 0 0 1em 1em; border: 1px solid #a2a9b1; background-color: #f9f9f9; border-collapse: collapse; font-size: 90%; text-align: left;">
<table class="wiki-infobox" style="float: right; clear: right; width: 22em; margin: 0 0 1em 1em; border-collapse: collapse; font-size: 90%; text-align: left;">
    
    
   <!-- 1. 车站名称 -->
   <!-- 1. 车站名称 -->
第20行: 第20行:
   }}
   }}
    
    
   <!-- 4. 线路颜色横线 (两侧留白) 如果有多条线,可以用 CSS 渐变色,例如:linear-gradient(to right, #c83838 50%, #004b87 50%) -->
   <!-- 4. 线路颜色横线 -->
   {{#if:{{{线路颜色|}}}|
   {{#if:{{{线路颜色|}}}|
   <tr>
   <tr>
第63行: 第63行:
   <tr>
   <tr>
     <td colspan="2" style="padding: 0 5px;">
     <td colspan="2" style="padding: 0 5px;">
       <div style="background-color: #e5e5e5; text-align: center; font-weight: bold; padding: 4px; border-top: 1px solid #c8ccd1;">车站构造</div>
       <div class="wiki-infobox-header" style="text-align: center; font-weight: bold; padding: 4px;">车站构造</div>
     </td>
     </td>
   </tr>
   </tr>
第96行: 第96行:
   <tr>
   <tr>
     <td colspan="2" style="padding: 0 5px;">
     <td colspan="2" style="padding: 0 5px;">
       <div style="background-color: #e5e5e5; text-align: center; font-weight: bold; padding: 4px; border-top: 1px solid #c8ccd1;">其他信息</div>
       <div class="wiki-infobox-header" style="text-align: center; font-weight: bold; padding: 4px;">其他信息</div>
     </td>
     </td>
   </tr>
   </tr>
第109行: 第109行:
   <tr>
   <tr>
     <td colspan="2" style="padding: 0 5px;">
     <td colspan="2" style="padding: 0 5px;">
       <div style="background-color: #e5e5e5; text-align: center; font-weight: bold; padding: 4px; border-top: 1px solid #c8ccd1;">历史</div>
       <div class="wiki-infobox-header" style="text-align: center; font-weight: bold; padding: 4px;">历史</div>
     </td>
     </td>
   </tr>
   </tr>
第122行: 第122行:
   <tr>
   <tr>
     <td colspan="2" style="padding: 0 5px;">
     <td colspan="2" style="padding: 0 5px;">
       <div style="background-color: #e5e5e5; text-align: center; font-weight: bold; padding: 4px; border-top: 1px solid #c8ccd1;">相邻车站</div>
       <div class="wiki-infobox-header" style="text-align: center; font-weight: bold; padding: 4px;">相邻车站</div>
     </td>
     </td>
   </tr>
   </tr>
第128行: 第128行:
     <td colspan="2" style="padding: 4px 5px;">
     <td colspan="2" style="padding: 4px 5px;">
       <table style="width: 100%; text-align: center; border-collapse: collapse; background: transparent; font-size: 95%; font-weight: bold;">
       <table style="width: 100%; text-align: center; border-collapse: collapse; background: transparent; font-size: 95%; font-weight: bold;">
         <tr style="background-color: #f2f2f2;">
        <!-- 使用 wiki-infobox-header 类替代固定的 #f2f2f2 背景色,同时取消上方边框以免冲突 -->
           <th style="width: 33%; font-weight: normal; color: #555;">上一站</th>
         <tr class="wiki-infobox-header" style="border-top: none;">
          <!-- 这里将“路线”改为可修改的参数,默认显示“路线” -->
          <!-- 移除了原本写死的 color: #555,使其在夜间模式下能够自动变成浅色 -->
           <th style="width: 33%; font-weight: normal; color: #555;">{{{系统或路线名称|路线}}}</th>
           <th style="width: 33%; font-weight: normal;">上一站</th>
           <th style="width: 33%; font-weight: normal; color: #555;">下一站</th>
           <th style="width: 33%; font-weight: normal;">{{{系统或路线名称|路线}}}</th>
           <th style="width: 33%; font-weight: normal;">下一站</th>
         </tr>
         </tr>
         <tr>
         <tr>
第149行: 第150行:
     <td colspan="2" style="padding: 0 5px; border-top: 1px solid #c8ccd1;">
     <td colspan="2" style="padding: 0 5px; border-top: 1px solid #c8ccd1;">
       <div class="mw-collapsible mw-collapsed" style="width: 100%;">
       <div class="mw-collapsible mw-collapsed" style="width: 100%;">
         <div style="background-color: #e5e5e5; text-align: center; font-weight: bold; padding: 4px;">站线配置图</div>
         <div class="wiki-infobox-header" style="text-align: center; font-weight: bold; padding: 4px;">站线配置图</div>
         <div class="mw-collapsible-content" style="padding: 5px; text-align: center; background-color: #ffffff;">
        <!-- 移除了原本写死的 background-color: #ffffff -->
         <div class="mw-collapsible-content" style="padding: 5px; text-align: center;">
           {{{站线配置图}}}
           {{{站线配置图}}}
         </div>
         </div>

2026年9月19日 (六) 09:19的版本

StationInfo