PDA

View Full Version : Add another roles list



Voss
August 15th, 2012, 10:27 PM
Instead of putting Town Core, Town Protective, Mafia Support, Neutral Benign, etc. in the rows that they correspond to, why not make another row below Neutrals, kinda like the way it is on the Mafia setup page? I think it'll look more organized if it's like that.

creedkingsx
August 15th, 2012, 10:48 PM
I am a little confused on what you mean.

Voss
August 16th, 2012, 12:35 AM
On the homepage of Mafia wiki, theirs a table in the middle, labeled roles. The Second Row, First Column of that table has Town:. Then, citizen, sheriff, invest etc. The Third Row of that table has Mafia: then Consigliere, Consort, framer etc. The Fourth Row, etc.

What I propose is to add a 5th row. The first column of the fifth row would be labeled Categories(or Randoms or something): . The second column would have: Town Power, Town Killing, Town PRotective, Town Investigative, Town Core, Mafia Support, Mafia Deception, Mafia Killing, Neutral Killing, Neutral Evil, Neutral Benign, Random Any.

does it make sense like that?

EagleMan
August 16th, 2012, 12:41 AM
Deantwo kinda messed something up when he went around adding that stuff. I don't want the categories in the role list but I haven't really figured it out yet. It should be pretty simple, it's just a matter of finding the right thing to edit.

Voss
August 16th, 2012, 12:53 AM
i'd give it a shot, but it seems that only two people have access to the mainpage of the Mafiawiki

EagleMan
August 16th, 2012, 11:11 AM
It's not from there that you need to edit it. It's a template that's inserted in that you have to edit elsewhere. I've been going down the rabbit hole and still found nothing. I'll find it eventually.

creedkingsx
August 16th, 2012, 11:27 AM
It's not from there that you need to edit it. It's a template that's inserted in that you have to edit elsewhere. I've been going down the rabbit hole and still found nothing. I'll find it eventually.


<DynamicPageList>
category = Town Roles
count = 100
mode = inline
order = ascending
</DynamicPageList>
It references Categories, which can be found here: http://wiki.sc2mafia.com/en/index.php/Special:Categories
Here for Town Roles specifically: http://wiki.sc2mafia.com/en/index.php/Category:Town_Roles
I don't knwo too much about coding and stuff, but I think it is just a matter of editing Categories. Delete the subcategories, create a new category called Random, and refill with the Randoms, defined as subcategories, in Town Roles (http://wiki.sc2mafia.com/en/index.php/Category:Town_Roles), Neutral Roles (http://wiki.sc2mafia.com/en/index.php/Category:Neutral_Roles), and Mafia Roles (http://wiki.sc2mafia.com/en/index.php/Category:Mafia_Roles).
Again, I might being making a fool of myself, this is strictly me attempting to interpret something that I know nothing of.
Then edit this:


{|class="wikitable" style="font-size:90%; border: 2px solid darkgrey" cellpadding="3" cellspacing="0" colspan="2" align="left" width="100%" ||
|-
! colspan="2" style="background: lightblue; color: Black; font-size:150%" | Roles
|-
! style="background: lightgreen; color: black" width="10%" | Town:
||
<DynamicPageList>
category = Town Roles
count = 100
mode = inline
order = ascending
</DynamicPageList>
|-
! style="background: salmon; color: black" width="10%" | Mafia:
||
<DynamicPageList>
category = Mafia Roles
count = 100
mode = inline
order = ascending
</DynamicPageList>
|-
! style="background: lightgray; color: black" width="10%" | Neutral:
||
<DynamicPageList>
category = Neutral Roles
count = 100
mode = inline
order = ascending
</DynamicPageList>
|}
to this:


{|class="wikitable" style="font-size:90%; border: 2px solid darkgrey" cellpadding="3" cellspacing="0" colspan="2" align="left" width="100%" ||
|-
! colspan="2" style="background: lightblue; color: Black; font-size:150%" | Roles
|-
! style="background: lightgreen; color: black" width="10%" | Town:
||
<DynamicPageList>
category = Town Roles
count = 100
mode = inline
order = ascending
</DynamicPageList>
|-
! style="background: salmon; color: black" width="10%" | Mafia:
||
<DynamicPageList>
category = Mafia Roles
count = 100
mode = inline
order = ascending
</DynamicPageList>
|-
! style="background: lightgray; color: black" width="10%" | Neutral:
||
<DynamicPageList>
category = Neutral Roles
count = 100
mode = inline
order = ascending
</DynamicPageList>
|-
! style="background: teal; color: black" width="10%" | Randoms:
||
<DynamicPageList>
category = Random Roles
count = 100
mode = inline
order = ascending
</DynamicPageList>
|}

Gingerape
August 16th, 2012, 12:17 PM
lol creeds post is all gibberish to me.

tl;dr Eagleman doesn't know how to control the wiki hes a mod of

Damus_Graves
August 16th, 2012, 12:19 PM
I must admit creeds post confuses me as well

Cryptonic
August 16th, 2012, 12:22 PM
creed, this random roles category, would it just be "Neutral Killer" "Town Core" and that kind of stuff, explaining what each are?

Voss
August 16th, 2012, 04:59 PM
the point of the random roles category is to take it make the home page a little less cluttered. the way the town core, town investigative, etc looks a little bit smushed together. ANYWAY, that's not even how its organized in the mafia game setup. its town, mafia, neutrals, randoms. DR didn't put the random roles into their respective town,mafia,neutral categories. He made another 'randoms' category. The home page should reflect it.

creedkingsx
August 16th, 2012, 05:55 PM
Too clarify what I think I am understanding, this is the Home Page (http://wiki.sc2mafia.com/en/index.php/Main_Page).
This is the Source for the Home Page (http://wiki.sc2mafia.com/en/index.php?title=Main_Page&action=edit).

If you look down about 3/4's of the way it says, "wikitable," in the code, followed by 3 set of open/closed code that say, "DynamicPageList."
Each of these sections mention a section from the table in the Main Page. They say, "Category = XXX Roles."

So, I found the list of all Categories and they include, " Mafia Roles, Town Roles, and Neutral Roles," and each include X amount of "subcategories" that contain each other the list as "Category:" from the table.

I think, if you remove the subcategories, make a new Category labeled, "Randoms," and just add another section with the, "DynamicPageList," thing, it should do what the OP is requesting, which is to have the last row of the Table clarify the randoms rather than the randoms being listed under each Category as a subcategory.

creedkingsx
August 16th, 2012, 05:56 PM
Again, the amount of code I know for internet is little to none. I just know some BB code from being on this site and that involves brackets, so I think this is different. I am just looking at the patterns and making my best guess.

Voss
August 16th, 2012, 06:13 PM
that's correct. but who can edit it? and if it's not correct, the only way to know is to try and see!

creedkingsx
August 16th, 2012, 06:16 PM
I can't edit, but just to be sure, this is what you are looking for?:

Voss
August 16th, 2012, 06:30 PM
yes

Voss
August 16th, 2012, 11:17 PM
i like this too. http://wiki.sc2mafia.com/en/index.php/User:Deantwo

Deantwo
August 19th, 2012, 04:12 AM
Deantwo kinda messed something up when he went around adding that stuff. I don't want the categories in the role list but I haven't really figured it out yet. It should be pretty simple, it's just a matter of finding the right thing to edit.
i already posted how you fix it... in more then one even ^^; here: User_talk:EagleMan#Role_Navigator (http://wiki.sc2mafia.com/en/index.php/User_talk:EagleMan#Role_Navigator)
yeah i hadn't noticed that the Categories ended up there... but removing the Sub-Categories i don't wanna do...

besides it's a simple fix... i just can't do it... cause the Template:RoleNavigator (http://wiki.sc2mafia.com/en/index.php/Template:RoleNavigator) can only be edited my admins...

yeah... i kinda have a thing about editing Wikis... and i get a little overboard some times XD

Deantwo
August 19th, 2012, 04:16 AM
I can't edit, but just to be sure, this is what you are looking for?:
that could work yeah ^^
but the list of Random Categories would have to be static... or pages with Redirects... i can do it either way...

i just can't edit it can't i don't have the admin rights to do so ^^;

creedkingsx
August 19th, 2012, 04:19 AM
I dun no nuthin bout edittin no wikis

Deantwo
August 19th, 2012, 04:49 AM
I dun no nuthin bout edittin no wikis
hehe ok ^^ just looked like you wanted to XD
but yeah it's a good idea you had in the picture! working on to see if i can do it in a easy way...

Deantwo
August 19th, 2012, 05:49 AM
i like this too. http://wiki.sc2mafia.com/en/index.php/User:Deantwo
someone do look at my Project ^^

and the ideas i just read here... i just made a new little Project around that ^^
tell me what you think!
User:Deantwo#Random_System_Category_List_Idea (http://wiki.sc2mafia.com/en/index.php/User:Deantwo#Random_System_Category_List_Idea)

at least it's smaller then the big one i made ^^;

Deantwo
August 24th, 2012, 04:31 PM
i am just waiting on EagleMan (http://www.sc2mafia.com/forum/member.php/3042-EagleMan) to decide on what version to use ^^;

User:Deantwo#Fixed Current Version (http://wiki.sc2mafia.com/en/index.php/User:Deantwo#Fixed_Current_Version)

User:Deantwo#Random System Category List Idea (http://wiki.sc2mafia.com/en/index.php/User:Deantwo#Random_System_Category_List_Idea)

User:Deantwo#Dean's Big Version (http://wiki.sc2mafia.com/en/index.php/User:Deantwo#Dean.27s_Big_Version)

and then he just need to add it ^^;