模板:道路信息:修订间差异

来自临东市服务器Wiki
无编辑摘要
无编辑摘要
 
(未显示同一用户的2个中间版本)
第2行: 第2行:
<div class="infobox">
<div class="infobox">
<div class="infobox__pic">
<div class="infobox__pic">
   <div style="width:300px;height: 75px;border-radius: 7px;overflow: hidden;background-color:white">
   <div style="width:300px;height: 75px;border-radius: 7px;overflow: hidden;background-color:white;font-family:Arial,Helvetica,sans-serif;">
     <div style="background-color:{{#switch:{{{Type}}}|street=#1e892c|scenery=#5d390b|#004796}};height:48px;display:flex;justify-content:space-between;align-items:center;"><div style="width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2em; font-weight: bold; position: relative;"><div style="position: absolute; top: 0; left:0; width: 0; height: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-right: 10px solid white; margin-left: 10px;"></div><span style="height:20px;display:flex;align-items:center;padding-right:2px;margin-left:2px;z-index: 1;font-size:10px;background-color:white;color:{{#switch:{{{Type}}}|street=#1e892c|scenery=#5d390b|#004796}}">'''{{#switch:{{{Type}}}|street=北|西}}'''</span></div><span style="width:210px;color:white;font-size:32px;text-align-last:justify;letter-spacing:-2.5px;">'''&nbsp;{{{Name|{{PAGENAME}}}}}&nbsp;'''</span><div style="width:40px;height:40px;display:flex;align-items:center; justify-content:center;color:white;font-size:1.2em;font-weight:bold;position: relative;"><span style="height:20px;display:flex;align-items:center;padding-left:2px;z-index: 1;font-size:10px;background-color:white;color:{{#switch:{{{Type}}}|street=#1e892c|scenery=#5d390b|#004796}}">{{#switch:{{{Type}}}|street=南|东}}</span><div style="position: absolute; top: 0; left: 12px; width: 0; height: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-left: 10px solid white; margin-left: 10px;"></div>
     <div style="background-color:{{#switch:{{{Type}}}|street=#1e892c|scenery=#5d390b|#004796}};height:48px;display:flex;justify-content:space-between;align-items:center;"><div style="width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2em; font-weight: bold; position: relative;"><div style="position: absolute; top: 0; left:0; width: 0; height: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-right: 10px solid white; margin-left: 10px;"></div><span style="height:20px;display:flex;align-items:center;padding-right:2px;margin-left:2px;z-index: 1;font-size:10px;background-color:white;color:{{#switch:{{{Type}}}|street=#1e892c|scenery=#5d390b|#004796}}">'''{{#switch:{{{Type}}}|street=北|西}}'''</span></div><span style="width:230px;color:white;font-size:32px;text-align-last:justify;letter-spacing:-2.5px;">'''&nbsp;&nbsp;{{{Name|{{PAGENAME}}}}}&nbsp;&nbsp;'''</span><div style="width:40px;height:40px;display:flex;align-items:center; justify-content:center;color:white;font-size:1.2em;font-weight:bold;position: relative;"><span style="height:20px;display:flex;align-items:center;padding-left:2px;z-index: 1;font-size:10px;background-color:white;color:{{#switch:{{{Type}}}|street=#1e892c|scenery=#5d390b|#004796}}">{{#switch:{{{Type}}}|street=南|东}}</span><div style="position: absolute; top: 0; left: 12px; width: 0; height: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-left: 10px solid white; margin-left: 10px;"></div>
</div></div>
</div></div>
     <div style="height:24px;color:{{#switch:{{{Type}}}|street=#1e892c|scenery=#5d390b|#004796}};display:flex;justify-content:space-between;align-items:center;font-size:18px;line-height:1"><span style="width: 28px;text-align: right;">'''{{#switch:{{{Type}}}|street=N|W}}'''</span><span style="letter-spacing:-0.6px">'''{{{EngName|}}}'''</span><span style="width: 24px;text-align: left;margin-left:4px">'''{{#switch:{{{Type}}}|street=S|E}}'''</span></div>
     <div style="height:24px;color:{{#switch:{{{Type}}}|street=#1e892c|scenery=#5d390b|#004796}};display:flex;justify-content:space-between;align-items:center;font-size:18px;line-height:1"><span style="width:16px;text-align:center;margin-left:12px;">'''{{#switch:{{{Type}}}|street=N|W}}'''</span><span style="width:240px;text-align-last:center;letter-spacing:-0.6px;white-space:pre">'''&nbsp;{{{EngName|}}}&nbsp;'''</span><span style="width:16px;text-align:center;margin-right:12px;">'''{{#switch:{{{Type}}}|street=S|E}}'''</span></div>
   </div>
   </div>
</div>
</div>
第21行: 第21行:
代码示例:
代码示例:
  <nowiki>{{道路信息</nowiki>
  <nowiki>{{道路信息</nowiki>
  <nowiki>|Pic = Nav-文化.png <!--相关图片,无需添加中括号和File:前缀,如没有图需要移除此行--></nowiki>
  <nowiki>|Pic = Nav-文化.png       <!--相关图片,无需添加中括号和File:前缀,如没有图需要移除此行--></nowiki>
  <nowiki>|Name = 道路信息<!--道路名称,移除此行默认显示条目标题--></nowiki>
  <nowiki>|Name = 道路信息         <!--道路名称,移除此行默认使用条目标题--></nowiki>
  <nowiki>|EngName = DAOLU XINXI <!--路名拼音--></nowiki>
  <nowiki>|EngName = DAOLU   XINXI <!--路名拼音,支持用空格控制间距--></nowiki>
  <nowiki>|Type = street <!--道路种类,用来决定标识牌配色:street对应绿色,scenery对应棕色,其余对应蓝色--></nowiki>
  <nowiki>|Type = street           <!--道路种类,用来决定标识牌配色:street对应绿色,scenery对应棕色,其余对应蓝色--></nowiki>
  <nowiki>|OldName = OldName <!--道路旧称--></nowiki>
  <nowiki>|OldName = OldName       <!--道路旧称--></nowiki>
  <nowiki>|Length = 2.5km <!--道路全长--></nowiki>
  <nowiki>|Length = 2.5km         <!--道路全长--></nowiki>
  <nowiki>|Lane = 双向8车道 <!--车道数--></nowiki>
  <nowiki>|Lane = 双向8车道         <!--车道数--></nowiki>
  <nowiki>|Spd = 60km/h <!--设计时速--></nowiki>
  <nowiki>|Spd = 60km/h           <!--设计时速--></nowiki>
  <nowiki>|Time = 2024年8月 <!--通车时间--></nowiki>
  <nowiki>|Time = 2024年8月         <!--通车时间--></nowiki>
  <nowiki>}}</nowiki>
  <nowiki>}}</nowiki>
对应效果:
对应效果:
第35行: 第35行:
|Pic = Nav-文化.png
|Pic = Nav-文化.png
|Type = street
|Type = street
|EngName = DAOLU XINXI
|EngName = DAOLU   XINXI
|OldName = OldName
|OldName = OldName
|Length = 2.5km
|Length = 2.5km

2025年11月17日 (一) 04:14的最新版本


用法示例

代码示例:

{{道路信息
|Pic = Nav-文化.png       <!--相关图片,无需添加中括号和File:前缀,如没有图需要移除此行-->
|Name = 道路信息          <!--道路名称,移除此行默认使用条目标题-->
|EngName = DAOLU   XINXI <!--路名拼音,支持用空格控制间距-->
|Type = street           <!--道路种类,用来决定标识牌配色:street对应绿色,scenery对应棕色,其余对应蓝色-->
|OldName = OldName       <!--道路旧称-->
|Length = 2.5km          <!--道路全长-->
|Lane = 双向8车道         <!--车道数-->
|Spd = 60km/h            <!--设计时速-->
|Time = 2024年8月         <!--通车时间-->
}}

对应效果:

  道路信息  
N DAOLU XINXI S
Nav-文化.png
旧名
OldName
全长
2.5km
车道数
双向8车道
设计时速
60km/h
通车时间
2024年8月