You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template talk:Player

From MafiaWiki
Jump to navigation Jump to search

New template

I've created new {{Player}} template to be used on the game pages. I tested it out on Newbie 438. I'm still a little unsure what to do about "roles" as the role link on many pages seem to like right back to that same section. IMO, this should be used to describe the role directly rather than link to a spot on the same page (or often on the same screen). I'm not familiar enough with the game to know if/how roles change, so could you offer advice on how to deal with this? SigmaEpsilon 12:41, 18 August 2007 (MDT)

ok, so i modified this somewhat... i don't see a purpose in creating an extra link for the player's profile when the player's name can serve the same purpose... you're correct that i had "Role" linking back to the player section if a player was not dead yet... we have wiki pages to describe the role, plus there are 2 school of thoughts as to how a player list should be organized... the first is by timeline, example: Newbie 402, the second is alphabetically, example: Mini 424. i prefer alphabetic b/c if someone is browsing through a player list, looking for a username, then in bigger games, it would be hard to find 1 name in a list that is not alphabetical (example: Good Ol' Mafia... if you're looking for who died on a specific day or night, you can quickly browse the Table of Contents and click on the day or night you're looking for... hope this explains my thoughts well...
-- LyingBrian 17:43, 18 August 2007 (MDT)
ok, that was a quick enough fix... i edited the template to include when a link to the player's role via the page heading, and a link to the wiki page for their role... see Newbie 140 for an example
-- LyingBrian 17:48, 18 August 2007 (MDT)

syntax

ok, i could use some help... i don't think we need to have names for the tags, as this is a pretty simple template... also, i would like the fields to appear empty if they are not being used (example: Newbie 438)... right now, the only way i've figured out how to do that is not name the first 2 fields, and name the 3rd... if i don't name the 3rd, then when left blank appears as [[ ]] even when i use the "&nbsp" hack... (example: :*'''''[[{{{1}}}]]''''' | [[#{{{2}}}|{{{2}}}]] | [[{{{3|&nbsp}}}]]. (yes, i know i need a semicolon after &nbsp, but i there isn't a tag that doesn't interpret special characters)... i was wondering if somebody knew how to fix this for me, or what options we have, b/c having two non-named tags & 1 named tag seems tacky to me...
-- LyingBrian 19:11, 18 August 2007 (MDT)

The problem here is the difference between leaving a section blank (as in {{Player|LyingBrain|Day 1| }) and omitting a section entirely (as in {{Player|LyingBrain|Day1}}. The first one messes up, but the second works. I played around in the Wikipedia Sandbox, so I'm gonna try some thing now. I hope it works. SigmaEpsilon (talk) 13:56, 19 August 2007 (MDT)
It does work now. I put some examples in. SigmaEpsilon (talk) 14:00, 19 August 2007 (MDT)
awesome! thanks so much SE!!! where can i read up on how to use the #if & #ifeq functions?..
-- LyingBrian 15:04, 19 August 2007 (MDT)
Documentation for those functions is at: [1]. SigmaEpsilon (talk) 15:54, 19 August 2007 (MDT)

Hyperlink edit

Hey. I changed a link in the template from [[{{{2}}}]] to [[#{{{2}}}|{{{2}}}]], because I think that link should go to a section on that page, rather than a separate page. Somestrangeflea 14:11, 26 August 2007 (MDT)

EDIT: Oh yes, I see what happened... Somestrangeflea 15:19, 26 August 2007 (MDT)