切換選單
切換個人選單
尚未登入
如果您进行任何编辑,您的IP地址会公开展示。

教程:SMW迁移-飞船

說明頁面
Help:SMW迁移-飞船


以下教程將幫助你正確地將 starcitizen.tools 站點中的飛船API信息,搬運到本站。

原樣.png

0. 找到需要更新的飛船

有一個很簡單的步驟:在飛船頁面,點擊右上角更多操作中的「刷新」,仍在列表中的飛船就是沒有兼容SMW數據的。

1. 識別模塊數據版本

如果你打開了一個飛船頁面,頁面內的飛船信息不帶 UUID(如下圖),則該飛船的模塊數據還未更新。

UUID image.png

2. 替換新 Vehicle 模塊數據

我們需要打開英文站的同一個頁面來複製新的數據。通常情況下,你可以通過點擊飛船頁面右上角的多語言按鈕來切換到英文站,建議單擊右鍵,並選擇「在新的標籤頁中打開頁面」。

新的標籤頁中打開頁面.png

點擊英文站的編輯按鈕,你可以看到原始碼中的第一個模塊即為如下所示(以 125a 為例),模塊名為 Vehicle:

{{Vehicle
| uuid = e7eeba8d-b108-48a1-a332-d9edbab2b9c1
| name = 125a
| image = 125a - Shooting - Fly though debris.png
| manufacturer = ORIG
| series = 100
| size = small
| productionstate = Flight ready
| productionstatedesc = Since [[Star Citizen Alpha 3.11.0|Alpha 3.11.0]]
| mincrew = 1
| maxcrew = 1
| pledgecost = 60
| originalpledgecost = 55
| warbondcost = 55
| originalwarbondcost = 50
| pledgeavailability = Always available
| saledate = 2018-04-13
| conceptdate = 2018-04-18
| rsistoreurl = https://robertsspaceindustries.com/pledge/ships/origin-100/125a
| brochureurl = https://robertsspaceindustries.com/media/sb217acbbj976r/source/Origin-100-Series-Brochure-FINAL.pdf
| trailerurl = https://www.youtube.com/watch?v=QGMxGdzYVY8
| presentationurl1 = https://robertsspaceindustries.com/comm-link/transmission/17814-Origin-100-Series
| qandaurl1 = https://robertsspaceindustries.com/comm-link/engineering/16520-Q-A-Origin-100-Series-Part-I
| qandaurl2 = https://robertsspaceindustries.com/comm-link/engineering/16537-Q-A-Origin-100-Series-Part-II
| galactapediaurl = https://robertsspaceindustries.com/galactapedia/article/bmNrPP2DZ9-origin-125a
| queryimage = 125a in space - Isometric.jpg
}}

打開中文站對應的編輯頁面,你可以看到我們的第一個模塊是不一樣的(以 125a 為例),模塊名為 Infobox vehicle:

{{Infobox vehicle
| name                            = 125a
| image                           = 125a - Shooting - Fly though debris.png
| size                            = 小型
| manufacturer                    = ORIG
| series                          = 100
| role                            = 新手船/轻型战斗机
| stowagespace                    = 650000
| productionstate                 = 可飞
| loanervehicle                   = 
| maxcrew                         = 1
| buycost                         = 791000
| rentcostac                      = 
| pledgecost                      = 60
| originalpledgecost              = 55
| warbondcost                     = 55
| originalwarbondcost             = 50
| cargocapacity                   = 2
| length                          = 15
| height                          = 4
| beam                            = 10
| combatspeed                     = 230
| maxspeed                        = 1150
| mass                            = 48143
| pledgeavailability              = 常驻销售
| rsistoreurl                     = https://robertsspaceindustries.com/pledge/ships/origin-100/125a
| brochureurl                     = https://robertsspaceindustries.com/media/sb217acbbj976r/source/Origin-100-Series-Brochure-FINAL.pdf
| presentationurl                 = https://robertsspaceindustries.com/comm-link/transmission/17814-Origin-100-Series
| galactapediaurl                 = https://robertsspaceindustries.com/galactapedia/article/bmNrPP2DZ9-origin-125a
| trailerurl                      = https://www.youtube.com/watch?v=QGMxGdzYVY8
| qandaurl1                       = https://robertsspaceindustries.com/comm-link/engineering/16520-Q-A-Origin-100-Series-Part-I
| qandaurl2                       = https://robertsspaceindustries.com/comm-link/engineering/16537-Q-A-Origin-100-Series-Part-II
| mincrew                         = 1
| claimtime                       = 4:13
| expeditetime                    = 0:00
| expeditecost                    = 635
| 自动替换标识符
| combatspeed = 230
| maxspeed = 1 150
| mass = 48 143
| cargocapacity =2
| maxpitch =51
| maxyaw =51
| maxroll =210
| hydrogencapacity =65 000
| qtfuelcapacity =700
| totalhp =4 450
| physicaldmg =-52%
| energydmg =
| distortiondmg =
| emsignature =
| irsignature =
| cssignature =
| 自动化更新时间 =2023/3/19 17:23:57
}}

如果你看不到這個代碼,你可能在可視化編輯模式。點擊右上角的模式切換,切換到代碼模式就能看到了:

可視化編輯切換.png


请删除整个 Infobox Vehicle 模块,包括大括号{{}},并将英文站的模块数据,包括大括号{{}},直接复制到原位。

3. 複製飛船掛點、設備和系統(hardpoints)模塊信息

繼續向下查看英文站的掛點部分,你可以在 Specifications 段落看到新的模塊信息:

{{Vehicle hardpoints}}

是的,就是這麼簡單。你需要將本站飛船規格章節下的所有內容刪除,這些內容可能看起來是下面這樣,並寫上新的模塊信息:

<tabber>
飞船设备&系统=
{{Vehicle avionics
| radarcount = 1
| computercount = 1
| radar1quantity = 1
| radar1size = 1
| radar1manufacturer = GRNP
| radar1name = [[Ecouter]]
| computer1quantity = 1
| computer1size = 1
| computer1manufacturer = 
| computer1name = S 计算机
}}
{{Vehicle systems
| powerplantcount = 1
| coolercount = 1
| shieldgeneratorcount = 1
| powerplant1quantity = 1
| powerplant1size = 1
| powerplant1manufacturer = AEGS
| powerplant1name = [[Regulus]]
| cooler1quantity = 2
| cooler1size = 1
| cooler1manufacturer = AEGS
| cooler1name = [[Bracer]]
| shieldgenerator1quantity = 1
| shieldgenerator1size = 1
| shieldgenerator1manufacturer = GODI
| shieldgenerator1name = [[AllStop]]
}}
|-|
航线设备&推进系统=
{{Vehicle propulsion
| fuelintakecount = 1
| fueltankcount = 1
| quantumdrivecount = 1
| jumpdrivecount = 1
| quantumfueltankcount = 1
| fuelintake1quantity = 2
| fuelintake1size = 1
| fuelintake1manufacturer = 
| fuelintake1name = S 燃料进气口
| fueltank1quantity = 2
| fueltank1size = 1
| fueltank1manufacturer = 
| fueltank1name = S 燃料箱
| quantumdrive1quantity = 1
| quantumdrive1size = 1
| quantumdrive1manufacturer = TARS
| quantumdrive1name = [[Expedition]]
| jumpdrive1quantity = 1
| jumpdrive1size = 1
| jumpdrive1manufacturer = 
| jumpdrive1name = S 跳跃模块
| quantumfueltank1quantity = 1
| quantumfueltank1size = 1
| quantumfueltank1manufacturer = 
| quantumfueltank1name = S 量子燃料箱
}}
{{Vehicle thrusters
| mainthrustercount = 1
| maneuveringthrustercount = 4
| mainthruster1quantity = 2
| mainthruster1size = 1
| mainthruster1manufacturer = 
| mainthruster1name = 主推进器
| maneuveringthruster1quantity = 2
| maneuveringthruster1size = 1
| maneuveringthruster1manufacturer = 
| maneuveringthruster1name = 制动推进器
| maneuveringthruster2quantity = 10
| maneuveringthruster2size = 1
| maneuveringthruster2manufacturer = 
| maneuveringthruster2name = 固定机动推进器
| maneuveringthruster3quantity = 1
| maneuveringthruster3size = 1
| maneuveringthruster3manufacturer = 
| maneuveringthruster3name = 固定机动推进器
| maneuveringthruster4quantity = 1
| maneuveringthruster4size = 1
| maneuveringthruster4manufacturer = 
| maneuveringthruster4name = 固定机动推进器
}}
|-|
武器=
{{Vehicle weaponry
| weaponcount = 1
| turretcount = 0
| missilerackcount = 2
| utilityitemcount = 0
| weapon1mountquantity = 2
| weapon1mountsize = 3
| weapon1mountmanufacturer = FFSY
| weapon1mountname = [[VariPuck S3 Gimbal Mount]]
| weapon1quantity = 2
| weapon1size = 2
| weapon1manufacturer = BEHR
| weapon1name = [[M4A Cannon]]
| missilerack1quantity = 1
| missilerack1size = 2
| missilerack1manufacturer = 
| missilerack1name = 四联导弹架
| missilerack1missilecount = 1
| missilerack1missile1quantity = 4
| missilerack1missile1size = 2
| missilerack1missile1manufacturer = THCN
| missilerack1missile1name = [[StrikeForce II]]
| missilerack2quantity = 1
| missilerack2size = 2
| missilerack2manufacturer = 
| missilerack2name = 双联导弹架
| missilerack2missilecount = 1
| missilerack2missile1quantity = 2
| missilerack2missile1size = 2
| missilerack2missile1manufacturer = THCN
| missilerack2missile1name = [[StrikeForce II]]
}}
</tabber>

修改後:

==规格==
{{Vehicle hardpoints}}

4. 修改系列變體模塊(請暫時跳過這一步,我們正在排查相關故障)

在英文站中,Series variants 是系列變體模塊所在的段落。

=== Series variants ===
{{Vehicle variants}}

中文站原模塊:

===系列变体===
{| class="wikitable"
!图片
!名称
!描述
|-
|[[File:100i in space - Isometric.jpg|center|frameless|100x67px]]
|'''[[100i]]'''
|专为独自旅行的风格和舒适而设计。
|-
|[[File:135c in space - Isometric.jpg|center|frameless|100x67px]]
|'''[[135c]]'''
|以轻型运输为功能,它有一个加大的货舱。
|}

我們只需要將中文站的 wikitable 替換為 Vehicle variants 模塊即可。如果替換後發現這個頁面沒有其他飛船,請檢查該系列飛船是否為單獨的飛船。 修改後:

===系列变体===
{{Vehicle variants}}

5. 替換 購買&租借 數據

在英文站中,購買和租賃段落已合併為 Acquisition:

== Acquisition ==
{{Vehicle availability}}

我們在此將這兩段合併為購買&租借:

==购买地点和定价==
{{Note|'''Updated''': {{Start date and age|2021|05|11|p=yes}} - [[Star Citizen Alpha 3.13.0|Alpha 3.13.0]]}}

=== 购买 ===
{| class="wikitable"
|-
![[New Deal]], 罗威尔
![[Astro Armada]], 18区
|-
|791,000
|<span style="color:#808080">Unavailable</span>
|}

=== 租借 ===
<span style="color:#808080">不可用</span>
''所给出的价格是按天计算的。所有租赁期的价格可以在[[Ship renting|舰船租赁]]找到。'

修改後:

=== 购买&租借 ===
{{Vehicle availability}}

至此,你已經完成了所有我們需要替換的內容。

6. 刷新頁面,開個香檳,繼續下一艘飛船!

點擊頁面右上角的保存更改,並在摘要處寫下」SMW兼容「,然後點擊刷新,或是在地址欄輸入 ?action=purge 來確保我們的新頁面數據在緩存端更新。

刷新緩存.png

如果規格段落顯示「SMW data not found on 300i」,不用驚慌,只要你的飛船卡片顯示正確,伺服器會自動獲取相關數據,並將其添加到當前頁面。等了很長時間(5分鐘以上)也不出來?請再一次嘗試刷新,或聯繫我們的站點管理員。

Cookies 幫助我們給予服務內容。依您有使用我們的服務,代表您同意我們使用 cookies。