Template talk:Chapters/strings

From Valve Developer Community
Jump to navigation Jump to search

eh

This is pain to edit. Wanted to add l4d2 map names but gave up. no mercy strings for example are used for both l4d and l4d2 and they have different names in each game --Nescius (talk) 13:33, 4 May 2025 (PDT)

Am i blind? i can't see any differences between L4D and L4D2 names, can you give me an example? --N0one (talk) 14:10, 4 May 2025 (PDT)
c8m1_apartments is the name in l4d2, in l4d1 it's l4d_vs_hospital01_apartment for versus and l4d_hospital01_apartment for other modes --Nescius (talk) 14:19, 4 May 2025 (PDT)
Actually that's probably something that should be passed as parameter to the strings subpage instead of putting it here anyway. --Nescius (talk) 14:22, 4 May 2025 (PDT)
It's kinda unfortunate Template:chapters is a thing. I can't even imagine how a new editor that would want to add the map names would do anything here. It would be ideal if actual main namespace style content wasn't spread inside a string subpages. Chapters are only shared between language pages and never on multiple pages within a single language so the ideal state of chapters would be them being on their actual page. The translations should affect english side of the wiki as little as possible but I am just rambling here and not calling for anything to be done atm --Nescius (talk) 14:54, 4 May 2025 (PDT)
Ah, well, i now changed the strings name to L4D1 "Campaign Name" and to L4D2 "Campaign Name". --N0one (talk) 14:34, 4 May 2025 (PDT)
I'm thinking adding this would be simple: {{Code|{{#if:{{{l4d2|}}}|c8m1_apartments|l4d_(vs_)hospital01_apartment}}}}. --N0one (talk) 14:45, 4 May 2025 (PDT)
Probably better solution is passing the map names as parameters and using that in the string subpage. See my last edits --Nescius (talk) 14:59, 4 May 2025 (PDT)
Looks better that way. --N0one (talk) 15:09, 4 May 2025 (PDT)