Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Topic on User talk:Masked Turk

Andytizer (talkcontribs)

I am thinking of adding subpages to certain pages for very detailed guides on things like mods, for example Arma_2/DayZ. Is there an nice elegant way to have a template detect and display the subpages automatically? There is a method of doing it in MW, but it would display the full Arma 2/DayZ title, whereas it would look much better in a list as 'DayZ'. Can Array do this?

Masked Turk (talkcontribs)

It's possible to display the page title without the prefix, yes. Unfortunately, using subpages for expansions will interfere with Template:Langbar :/

Option 1

I could potentially work around this by adding a switch for the Langbar template to check if the subpage is one of a number of languages, in which case I'd use:

{{#switch:{{{subpages|}}}
|polski=1 <!-- display langbar if this subpage name is present -->
|#default=0 <!-- if no languages on this list are found, don't display langbar
}}

Option 2

Alternatively, we can just have another template where we specify expansions/mods for games, and it links to them.

Thinking about it though...

Doing both Option 1 AND 2 would be the best way around it. Opt1 will stop LANGBAR from linking to non-language subpages, and Opt2 will stop the expansion template from linking to (a) translations and (b) other unwanted subpages.

I can get to work on it right away, y/n?


Edit: That said, what would happen with translations of mods/expansions? It'd make it a headache to fix the langbar... could we not just create new articles for them? E.g. DayZ (ArmA 2 mod) or something? We could still use an Expansions/Mods template, where you specify the article location and name.

Andytizer (talkcontribs)

Yep you are right, the translation of mod pages presents a headache too. Thanks for thinking about this so in-depth :).

DayZ (Arma 2 mod)

Arma 2 mod - DayZ

DayZ


The creation of mod pages will be relatively rare, and I am tempted to give DayZ its own page (as Counterstrike Source or 1.6 might get its own page).

Masked Turk (talkcontribs)

I think that's the best thing to do, tbh. If it's notable enough to be included in the wiki as it's own article, it seems logical to have it as a full article, rather than relegating it to a subpage.

Still want some kinda Expansions/Mods template? What would you want in it? If you made a static version in your sandbox, I could template-ify it :)