ARK: Survival Evolved Wiki
探索
メインページ
全ページ
インタラクティブな地図
navigation
メインページ
コミュニティ・ポータル
最近の更新
おまかせ表示
Admin noticeboard
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
ゲーム
映画
テレビ
Wiki
Wikiを探索
コミュニティセントラル
Wikiを はじめよう
アカウントをお持ちでない場合
登録
ログイン
FANDOM
Explore
Current Wiki
Wikiを はじめよう
アカウントをお持ちでない場合
登録
ログイン
ログイン
登録
ARK: Survival Evolved Wiki
2,858
ページ
探索
メインページ
全ページ
インタラクティブな地図
navigation
メインページ
コミュニティ・ポータル
最近の更新
おまかせ表示
Admin noticeboard
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
「
モジュール:DLCLink
」を編集中
ページに戻る
ソースを編集
履歴表示
トーク(0件)
ページの編集
モジュール:DLCLink
警告:
ログインしていません。編集を行うと、あなたの IP アドレスが公開されます。
ログイン
または
アカウントを作成
すれば、あなたの編集はその利用者名とともに表示されるほか、その他の利点もあります。
スパム攻撃防止用のチェックです。 けっして、ここには、値の入力は
しない
でください!
-- checks if the name contains a DLC-suffix and changes it to the according DLC-icon. then returns a link to name. local p = {} function p.link(name, noDlcIcon) local icons = { -- add name parts that should be replaced with an icon here. Three parts are needed -- 1: pattern that needs to be there and that will be replace. Parenthesis need to be escaped with % -- 2: icon file name -- 3: link name for the icon {' %(The Island%)', 'The Island Icon.png', 'The Island'}, {' %(Scorched Earth%)', 'Scorched Earth Icon.png', 'Scorched Earth'}, {' %(Aberration%)', 'Aberration Icon.png', 'Aberration'}, {' %(Extinction%)', 'Extinction Icon.png', 'Extinction'}, {' %(Genesis: Part 1%)', 'Genesis Part 1 Icon.png', 'Genesis: Part 1'}, {' %(Genesis: Part 2%)', 'Genesis Part 2 Icon.png', 'Genesis: Part 2'}, {' %(Primitive Plus%)', 'Primitive Plus Icon.png', 'Primitive Plus'}, {' %(The Center%)', 'The Center Icon.png', 'The Center'}, {' %(Ragnarok%)', 'Ragnarok Icon.png', 'Ragnarok'}, {' %(Valguero%)', 'Valguero Icon.png', 'Valguero'}, {' %(Crystal Isles%)', 'Crystal Isles Icon.png', 'Crystal Isles'}, {' %(Mobile%)', 'Logo Mobile.svg', 'ARK: Survival Evolved Mobile|16px'}, {'Mod:Ebenus Astrum/', 'Ebenus Astrum Icon.png', 'Mod:Ebenus Astrum'}, {'Mod:Primal Fear/', 'PrimalFearIcon.png', 'Mod:Primal Fear'}, {'Mod:Ebenus Astrum/', 'Ebenus Astrum Icon.png', 'Mod:Ebenus Astrum'}, {'Mod:ARK Additions/', 'ARK Additions Icon.png', 'Mod:ARK Additions'}, {'Mod:Better MEKs!/', 'Mod Better MEKs! Icon.png', 'Mod:Better MEKs!'}, {'Mod:Steampunk/', 'Mod Steampunk Icon.png', 'Mod:Steampunk'}, {'Mod:Structures Plus/', 'Structures Plus Icon.png', 'Mod:Structures Plus'}, {'Mod:Ark Eternal/', 'Mod Ark Eternal Icon.png', 'Mod:Ark Eternal'}, {'Mod:Archaic Ascension/', 'Mod Archaic Ascension Icon.png', 'Mod:Archaic Ascension'}, {'Mod:The Chasm/', 'ChasmLogoSmall.jpg', 'Mod:The Chasm'}, {'Mod:Primal NPCs/', 'Mod Primal NPCs Icon.png', 'Mod:Primal NPCs'}, {'Mod:Caballus/', 'Mod Caballus Icon.png', 'Mod:Caballus'}, {'Mod:Prehistoric Beasts/', 'Mod Prehistoric Beasts Icon.png', 'Mod:Prehistoric Beasts'}, {'Mod:Castles, Keeps, and Forts Remastered/', 'Mod Castles Keeps Forts Architecture Remastered Icon.png', 'Mod:Castles, Keeps, and Forts Remastered'}, {'Mod:Crystal Isles Dino Collection/', 'Crystal Isles Dino Collection Icon.png', 'Mod:Crystal Isles Dino Collection'}, {'Mod:Additional Creatures: Grand Hunt/', 'Additional Creatures Grand Hunt Icon.png', 'Mod:Additional Creatures: Grand Hunt'}, {'Mod:Super Structures/', 'Mod Super Structures icon.png', 'Mod:Super Structures'}, {'Mod:ARK: The Sunken World/', 'Mod logo.png', 'Mod:ARK: The Sunken World'}, } for _,i in ipairs(icons) do if string.find(name,i[1]) ~= nil then return '[['..name..'|'..string.gsub(name,i[1],'')..']]'.. ((not noDlcIcon) and ' [[File:'..i[2]..'|link='..i[3]..']]' or '') end end -- if no dlc was found, use generic approach local title = mw.title.new(name) if title == nil then return 'page not found: ' .. name end local link = (#title.nsText > 0) and (title.fullText .. '|' .. title.text) or title.text return '[['..link..']]' end return p
編集内容の要約:
ARK: Survival Evolved Wikiへの投稿はすべて、「CC BY-NC-SA」に従って公開されるものとしてみなされます
編集を中止
編集の仕方
(新しいウィンドウで開きます)
このページで使用されているテンプレート:
モジュール:DLCLink/doc
(
編集
)
Follow on IG
TikTok
Join Fan Lab