无编辑摘要 |
(优化路名文本对齐方式) |
||
| 第3行: | 第3行: | ||
<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"> | ||
<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="color:white;font-size:32px;letter-spacing: | <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:220px;color:white;font-size:32px;text-align-last:justify;letter-spacing:-2px;">''' {{{Name|{{PAGENAME}}}}} '''</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: 38px;text-align: center;">'''{{#switch:{{{Type}}}|street=N|W}}'''</span><span>'''{{{EngName|}}}'''</span><span style="width: 38px;text-align: center;">'''{{#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: 38px;text-align: center;">'''{{#switch:{{{Type}}}|street=N|W}}'''</span><span>'''{{{EngName|}}}'''</span><span style="width: 38px;text-align: center;">'''{{#switch:{{{Type}}}|street=S|E}}'''</span></div> | ||
2025年11月16日 (日) 20:00的版本
用法示例
代码示例:
{{道路信息
|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月 <!--通车时间-->
}}
对应效果:
