Jump to content

Editing Module:Shared VA

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 20: Line 20:
}
}
local iw_links = {
local iw_links = {
     ["pp"] = "[https://petitplanet.wiki/%s %s]",
     ["zzz"] = "[[w:c:zenless-zone-zero:%s|%s]]",
     ["hsr"] = "[[w:c:honkai-star-rail:%s|%s]]",
     ["hsr"] = "[[w:c:honkai-star-rail:%s|%s]]",
     ["hi3"] = "[[w:c:honkaiimpact3:%s|%s]]",
     ["hi3"] = "[[w:c:honkaiimpact3:%s|%s]]",
     ["hg2"] = "[[w:c:houkai2nd:%s|%s]]",
     ["hg2"] = "[[w:c:houkai2nd:%s|%s]]",
     ["hna"] = "[https://hna.wiki/%s %s]",
     ["hna"] = "[https://hna.wiki/%s %s]",
     ["gi"]  = "[https://genshin-impact.fandom.com/%s %s]",
     ["gi"]  = "[[w:c:genshin-impact:%s|%s]]",
     ["zzz"] = "[[w:c:zenless-zone-zero:%s|%s]]",
     ["pp"] = "[https://petitplanet.wiki/%s %s]",
     ["tot"] = "[https://tot.wiki/wiki/%s %s]",
     ["tot"] = "[https://tot.wiki/wiki/%s %s]",
}
}
local game_order = {'pp', 'hg2', 'hi3', 'tot', 'gi', 'hsr', 'zzz', 'hna'}
local game_order = {'hsr', 'hi3', 'hg2', 'hna', 'gi', 'zzz', 'pp', 'tot'}
local lang_order = {'EN', 'CN', 'JP', 'KR'}
local lang_order = {'EN', 'CN', 'JP', 'KR'}


Line 44: Line 44:
function p._main(args, frame)
function p._main(args, frame)
local VAs = {character = args['char']}
local VAs = {character = args['char']}
local data = Parse(args['char'], {only='Neighbor Infobox'}) or {}
local data = Parse(args['char'], {only='Character Infobox'}) or {}
local out = mw.html.create('ul')
local out = mw.html.create('ul')
Line 54: Line 54:
or (lib.isNotEmpty(va) and
or (lib.isNotEmpty(va) and
frame:preprocess(lib.trim(
frame:preprocess(lib.trim(
VAs.character=='Trailblazer' --if we ever do have a voice actor for MC
VAs.character=='Trailblazer'  
and (va:gsub('^.-F: (.-)<r?b?.-M: (.+)$', '%1 or %2'):gsub('%s*<ref.+$', ''))
and (va:gsub('^.-F: (.-)<r?b?.-M: (.+)$', '%1 or %2'):gsub('%s*<ref.+$', ''))
or (va:gsub('%s*<ref.+$', ''))
or (va:gsub('%s*<ref.+$', ''))
Please note that all contributions to The Petit Planet Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see Petit Planet Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template
Below are commonly used wikitext from MediaWiki:Edittools. Click on any to insert them in the edit box.
File Pages==Summary====Licensing=={{Fairuse}}{{File|}}
Dynamic Page List¦²«»²{¦}²«»«/»«!----»
Array in DPL¹^2{}^2^2{¹}^2
Parser Functions{{#if:||}}
{{#ifeq:|||}}
{{#expr:}}
{{#switch:||#default=}}
{{#replace:||}}
{{#titleparts:}}
{{#tag:|}}
Markup{{}}|[][[]][[Category:]]#REDIRECT [[]] [[Category:Redirect Pages]]<code></code><includeonly></includeonly><noinclude></noinclude><nowiki></nowiki><!----><br>§
Notices{{Stub|}}{{Stub Dialogue}}{{Upcoming}}{{Under Construction}}{{Placeholder|}}
Magic Words{{!}}{{formatnum:}}{{lc:}}{{uc:}}{{PAGENAME}}{{FULLPAGENAME}}{{ROOTPAGENAME}}{{BASEPAGENAME}}{{SUBPAGENAME}}{{DISPLAYTITLE:|noreplace}}__TOC____NOTOC____EXPECTUNUSEDCATEGORY____HIDDENCAT__
HTML Entities&mdash;&nbsp;&comma;&shy;