跳转到内容

Template:Section transclude/doc:修订间差异

勤求古训,博采众方
删除的内容 添加的内容
应用举例改为简体中医药示例
无编辑摘要
 
(未显示另一用户的1个中间版本)
第1行: 第1行:
{{Documentation subpage}}
{{Documentation subpage}}
{{nosubst}}
{{nosubst}}
嵌入当前页面的指定标记部分。 这允许在页面中的多个位置使用相同的内容,而只需要在一个位置进行维护。
嵌入当前页面的指定标记部分。这允许在页面中的多个位置使用相同的内容,而只需要在一个位置进行维护。


'''不能在子页面工作 (pages with a slash "/" in the title).'''
'''不能在子页面中使用(标题含"/"的页面)。'''


==Example==
==示例==
===Code===
===代码===


<pre><nowiki>
<pre><nowiki>
'''STAR''' may refer to:
'''红粉'''可能指:


==Technology==
==中药==
* 红粉
* 红粉
<section begin=ATC/>* [[Standard Terminal Automation Replacement System]], an air traffic control system<section end=ATC/> <!--Entry is transcluded elsewhere on this page-->
<section begin=ATC/>* [[红粉 (方剂)]],同名方剂<section end=ATC/> <!--此条目在本页其他位置嵌入-->


==Transportation==
==方剂==
* 雷丸
* 雷丸
{{section transclude|ATC}} <!--Entry is transcluded from elsewhere on this page-->
{{section transclude|ATC}} <!--此条目从本页其他位置嵌入-->
</nowiki></pre>
</nowiki></pre>


===Output===
===输出===
<div style="margin: 0.5em 10%; border: 1px solid; padding: 0.25em;">
<div style="margin: 0.5em 10%; border: 1px solid; padding: 0.25em;">
'''STAR''' may refer to:
'''红粉'''可能指:


==Technology==
==中药==
* 红粉
* 红粉
* [[红粉 (方剂)]],同名方剂
* [[Standard Terminal Automation Replacement System]], an air traffic control system


==Transportation==
==方剂==
* 雷丸
* 雷丸
* [[红粉 (方剂)]],同名方剂
* [[Standard Terminal Automation Replacement System]], an air traffic control system
</div>
</div>


第37行: 第37行:
}}</includeonly>
}}</includeonly>


== See also ==
== 参见 ==
{{Hatnote_templates}}
* [[Help:Labeled section transclusion]]

2026年8月1日 (六) 12:31的最新版本

嵌入当前页面的指定标记部分。这允许在页面中的多个位置使用相同的内容,而只需要在一个位置进行维护。

不能在子页面中使用(标题含"/"的页面)。

示例

代码

'''红粉'''可能指:

==中药==
* 红粉
<section begin=ATC/>* [[红粉 (方剂)]],同名方剂<section end=ATC/>       <!--此条目在本页其他位置嵌入-->

==方剂==
* 雷丸
{{section transclude|ATC}}       <!--此条目从本页其他位置嵌入-->

输出

红粉可能指:

中药

方剂


参见