Template:SVersion event:修订间差异

(建立内容为“{{#Switch: {{lc: {{{1|{{{version}}} }}} }} | time | timeless | compile | compilation | 3.3 = | #Default = {{ambox|type=notice |small=left |image…”的新页面)
 
无编辑摘要
第1行: 第1行:
{{#Switch: {{lc: {{{1|{{{version}}} }}} }}
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>[[en:{{FULLPAGENAME}}]]
  | time
   <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
  | timeless
'''SVersion''' should be used to indicate for which major version of Stellaris a section was written or updated. The template adds a disclaimer '''''only if''''' the specified version does ''not'' match with the most recent of the game.
  | compile
 
  | compilation
== Usage ==
  | 3.3 =
This infobox may be added by copy-pasting the template as shown below at the beginning of a section.
  | #Default = {{ambox|type=notice
 
|small=left
<div style="width:320px; background:#ddd; border:1px solid black; padding:0.5em 1em 0.5em 1em;">
|image=[[File:Ambox outdated info.png|22px|link=]]
<pre>
|text=<div style="font-size:85%;">请帮助核对或更新这个 {{#Switch: {{{2|{{{scope|}}} }}}
{{SVersion|X}}
  | section = 段落
</pre>
  | infobox = 信息框
</div>
  | table = 表格
Substitute the value for X.
  | image = 图像
 
  | link = 链接
== Parameters ==
  | #Default = 段落
{| class="wikitable"
}}。它最近核对为 {{{1| 未知}}} [[Project: 版本管理| 版本]]。</div>
! Parameter
}}{{#ifeq: {{{2|{{{scope|}}}}}} | infobox |
! Explanation
----
! Default
}}
! Status
<includeonly>{{#if: {{{nocat|}}}{{NAMESPACE}}| |{{#Switch: {{{2|{{{scope|}}} }}}
|-
  | section = [[Category: 可能过时的段落]]
| '''1'''
  | infobox = [[Category: 可能过时的信息框]]
| To specify for which major patch a section was written or updated
  | table = [[Category:可能过时的表格]]
| an unknown version
  | image = [[Category:可能过时的图像]]
| '''required'''
  | link = [[Category: 可能过时的链接]]
|-
  | #Default = [[Category:可能过时的段落]]
| '''2'''
}}
| To specify the scope
}}</includeonly>
| section
}}<noinclude>
| '''optional'''
{{Template doc}}
|}
<!-- Add metadata to the /doc subpage, not here - thanks! -->
 
[[Category:版本模板]]
== Values ==
</noinclude>
The above parameters can have the following values:
 
{| class="wikitable"
! Parameter
! style="width:150px;" | Values
! Explanation
|-
| rowspan="2" | '''1'''
| Major patch number
| The major patch for which this section has been written (for example 1.2 or 1.6)
|-
| Pre-release
| If this section has been written before the release.
|-
| Time ''or'' Timeless
| For timeless sections.
|}
 
{| class="wikitable"
! Parameter
! style="width:150px;" | Values
! Explanation
|-
| rowspan="4" | '''2'''
| section
| This is the default setting.
|-
| table
|
|-
| infobox
| The width is limited to 475 px.
|-
| image
| To be used in captions.
|}
 
== Updating this template ==
Message [[User:SolSys|SolSys]].
 
== Examples ==
{|
|- valign="top"
| width="50%" | The following:
<pre>
=== Important centers of trade ===
{{SVersion|Timeless}}
There are 15 government types in [[Stellaris]] which divide into autocracies, oligarchies, and democracies. Each of the three groups contain five types.
</pre>
will display:
===  Important centers of trade ===
{{SVersion|Timeless}}
There are 15 government types in [[Stellaris]] which divide into autocracies, oligarchies, and democracies. Each of the three groups contain five types.
| width="50%" | The following:
<pre>
=== Important centers of trade ===
{{SVersion|Pre-release}}
There are 15 government types in [[Stellaris]] which divide into autocracies, oligarchies, and democracies. Each of the three groups contain five types.
</pre>
will display:
=== Important centers of trade ===
{{SVersion|Pre-release}}
There are 15 government types in [[Stellaris]] which divide into autocracies, oligarchies, and democracies. Each of the three groups contain five types.
|}

2022年3月22日 (二) 17:16的版本

这是 Template:SVersion event模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

SVersion should be used to indicate for which major version of Stellaris a section was written or updated. The template adds a disclaimer only if the specified version does not match with the most recent of the game.

Usage

This infobox may be added by copy-pasting the template as shown below at the beginning of a section.

{{SVersion|X}}

Substitute the value for X.

Parameters

Parameter Explanation Default Status
1 To specify for which major patch a section was written or updated an unknown version required
2 To specify the scope section optional

Values

The above parameters can have the following values:

Parameter Values Explanation
1 Major patch number The major patch for which this section has been written (for example 1.2 or 1.6)
Pre-release If this section has been written before the release.
Time or Timeless For timeless sections.
Parameter Values Explanation
2 section This is the default setting.
table
infobox The width is limited to 475 px.
image To be used in captions.

Updating this template

Message SolSys.

Examples

The following:
=== Important centers of trade ===
{{SVersion|Timeless}}
There are 15 government types in [[Stellaris]] which divide into autocracies, oligarchies, and democracies. Each of the three groups contain five types.

will display:

Important centers of trade

There are 15 government types in Stellaris which divide into autocracies, oligarchies, and democracies. Each of the three groups contain five types.

The following:
=== Important centers of trade ===
{{SVersion|Pre-release}}
There are 15 government types in [[Stellaris]] which divide into autocracies, oligarchies, and democracies. Each of the three groups contain five types.

will display:

Important centers of trade

There are 15 government types in Stellaris which divide into autocracies, oligarchies, and democracies. Each of the three groups contain five types.