Template:Box wrapper/doc:修订间差异

(创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly>[[en:{{FULLPAGENAME}}]]<noinclude>{{template doc page viewed directly}}</noinclude> '''box wrapper''' 能…”)
 
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
<includeonly>{{template doc page transcluded}}</includeonly>[[en:{{FULLPAGENAME}}]]<noinclude>{{template doc page viewed directly}}</noinclude>
[[en:{{FULLPAGENAME}}]]
 
'''box wrapper''' 能被用于构造一个盒子列表(例如,事件,决议,或者某些其他页面元素)按浏览器的宽度考虑动态地调整布局。
'''box wrapper''' 能被用于构造一个盒子列表(例如,事件,决议,或者某些其他页面元素)按浏览器的宽度考虑动态地调整布局。
__NOTOC__
__NOTOC__
第23行: 第24行:


== 例子 ==
== 例子 ==
<pre>
[[eu4:{{FULLPAGENAME}}]]
{{Box wrapper|
{{event
|version = 1.12
|event_name = Mimar Sinan's Great Constructions
|event_text = Mimar Sinan planned and oversaw the construction of countless mosques, aqueducts, bathhouses, bridges, palaces, caravanserais and schools during his half-a-century long career. His masterpieces were the Selimiye and Suleymaniye Mosques in Adrianople and Constantinople respectively.
||trigger = *Event has not yet occurred.
*The year is between 1519 and 1560.
*owns Constantinople (151).
*The advisor ‘Mimar Sinan’ does ''not'' exist.
|mtth = 1000 months
|options = {{option
|option_text = Appoint him royal architect
|effect = *the modifier “Mimar Sinan” until the death of the current ruler, giving the following effect:
**{{icon|build cost}} {{green|−15.0%}} Build cost
}}
{{option
|option_text = Enlist his services for a short time
|effect = *{{icon|Adm}} {{green|+40}} Administrative power
}}
}}
{{event
|version = 1.12
|event_name = Loss of Stability
|event_text = This strengthening of the privileges of the nobles is severely upsetting the burghers and merchants. This is creating turmoil in our realm, and may prove disastrous in the long run.
|trigger = *has the [[idea group]]: Aristocratic ideas.
*has a [[stability]] of at least 0.
|triggered only = *five year pulse
'''Base weight: 1'''
|options = {{option
|option_text = Well, they are just peasants.
|effect = *{{icon|stability}} {{red|–1}} Stability
}}
}}
{{Event
|version = 1.12
|event_name=Consulate of the Sea
|event_text=Our new quasi-judicial body that will administer maritime and commercial law is called the Consulate of the Sea. It gives our merchants the right to settle their commercial disputes without interference from the royal courts and in exchange we, the Crown of Aragon, receives financial support.
|trigger=*Fires only once
*Is Aragon
*The year is before 1500
*Do NOT have the ruler modifier '''Consulate of the Sea'''
|mtth=*200 Months
|options=
{{option
|option_text=Good!
|effect=*Aragon gets '''Consulate of the Sea''' until the death of the current ruler, giving the following effects:
:*Trade Efficiency: {{green|+20.0%}}
:*National Trade Income Modifier: {{green|+15.0%}} }}
}}
}}
</pre>
 
{{Box wrapper|
{{event
|version = 1.12
|event_name = Mimar Sinan's Great Constructions
|event_text = Mimar Sinan planned and oversaw the construction of countless mosques, aqueducts, bathhouses, bridges, palaces, caravanserais and schools during his half-a-century long career. His masterpieces were the Selimiye and Suleymaniye Mosques in Adrianople and Constantinople respectively.
||trigger = *Event has not yet occurred.
*The year is between 1519 and 1560.
*owns Constantinople (151).
*The advisor ‘Mimar Sinan’ does ''not'' exist.
|mtth = 1000 months
|options = {{option
|option_text = Appoint him royal architect
|effect = *the modifier “Mimar Sinan” until the death of the current ruler, giving the following effect:
**{{icon|build cost}} {{green|−15.0%}} Build cost
}}
{{option
|option_text = Enlist his services for a short time
|effect = *{{icon|Adm}} {{green|+40}} Administrative power
}}
}}
{{event
|version = 1.12
|event_name = Loss of Stability
|event_text = This strengthening of the privileges of the nobles is severely upsetting the burghers and merchants. This is creating turmoil in our realm, and may prove disastrous in the long run.
|trigger = *has the [[idea group]]: Aristocratic ideas.
*has a [[stability]] of at least 0.
|triggered only = *five year pulse
'''Base weight: 1'''
|options = {{option
|option_text = Well, they are just peasants.
|effect = *{{icon|stability}} {{red|–1}} Stability
}}
}}
{{Event
|version = 1.12
|event_name=Consulate of the Sea
|event_text=Our new quasi-judicial body that will administer maritime and commercial law is called the Consulate of the Sea. It gives our merchants the right to settle their commercial disputes without interference from the royal courts and in exchange we, the Crown of Aragon, receives financial support.
|trigger=*Fires only once
*Is Aragon
*The year is before 1500
*Do NOT have the ruler modifier '''Consulate of the Sea'''
|mtth=*200 Months
|options=
{{option
|option_text=Good!
|effect=*Aragon gets '''Consulate of the Sea''' until the death of the current ruler, giving the following effects:
:*Trade Efficiency: {{green|+20.0%}}
:*National Trade Income Modifier: {{green|+15.0%}} }}
}}
}}

2020年9月3日 (四) 17:25的最新版本


box wrapper 能被用于构造一个盒子列表(例如,事件,决议,或者某些其他页面元素)按浏览器的宽度考虑动态地调整布局。

用法

{{Box wrapper|

{{<Box template>|...}}
{{<Box template>|...}}
<!-- 你不需要分隔符在每一个盒子元素之间,只要在你的盒子前面打开列表并在最后关闭它。 -->

}}

另一种语法:(使用这种,如果内容包括段落标签,因为它们在模板内部不工作。)

{{Box wrapper}}

{{<Box template>|...}}
{{<Box template>|...}}

{{End box wrapper}}

例子

eu4:Template:Box wrapper/doc