Template talk:Bid
From The Urban Dead Wiki
Jump to navigationJump to search
Added button for increased functionality
Example User (talk | contribs | UDWiki contribs | logs1 | logs2 | vndl data | Misconduct | discuss | demote the crunt)
Discuss is, in practice, useless because all normal discussion starts on the main page. -- LEMON #1 15:23, 10 January 2011 (UTC)
Question. Could it be worked out with Ifs to automatically spit out the two variations? I'm not 100% sure how to code them, but when you consider that UDWiki Administration is a namespace, you could have it detect {{BASEPAGENAME}}, and spoot out based on whether it's Promotion or Re-Evaluations. No? 16:14, 10 January 2011 (UTC)
- I had thought about that. I wouldn't use an if statement, though (although I'm sure it could be done). Instead of using a variable, to control the switch, I would use {{FULLPAGENAME}} like so:
{{switch
|{{FULLPAGENAME}}
|case: UDWiki:Administration/Promotions=''blah blah blah code code code''
|case: UDWiki:Administration/Re-Evaluations=''blah blah blah code code code''}}
- But the thought occured to me that one might want to place the template on other pages or, in the case of a former sysop opening another A/PM bid, might want to use the A/RE version on A/PM. Not a bad idea, mind you but this version offers a bit more freedom. ~ 16:33, 10 January 2011 (UTC)
- And I see that MHSstaff had the same idea. So yeah, just place it on the page and you're good to go it seems. ~ 16:35, 10 January 2011 (UTC)
- It might be worthwhile to use BASEPAGENAME instead of FULLPAGENAME so that when it is moved to underneath the A/PM,A/RE space, it still works. The basepage should work in theory, but since all the subpages are protected and I am not a magic-sysop-type-person-thingamajig, I can't really test it.-MHSstaff 17:02, 10 January 2011 (UTC)
- It doesn't.--Yonnua Koponen Talk ! Contribs 17:06, 10 January 2011 (UTC)
- You would have to modify the template to use Basepagename and edit the cases. What does basepagename say in A/RE and a subpage of A/RE?-MHSstaff 17:18, 10 January 2011 (UTC)
- BASEPAGENAME just drops the namespace in from of the page name. So UDWiki:Administration/Promotions would become Adminsitration/Promotions. These changes won't work when bids are moved away from A/PM and A/RE. They are archived at A/PM/Username and A/RE/Username and so the template call would break at that time. ~ 17:29, 10 January 2011 (UTC)
- You would have to modify the template to use Basepagename and edit the cases. What does basepagename say in A/RE and a subpage of A/RE?-MHSstaff 17:18, 10 January 2011 (UTC)
- It doesn't.--Yonnua Koponen Talk ! Contribs 17:06, 10 January 2011 (UTC)
- MHSstaff (talk | contribs | UDWiki contribs | vndl data)
Problems
The misconduct link does not work, see Boxy's re-evaluation --TCAPD(╯°□°)╯ ┻━┻ 00:23, 27 March 2011 (UTC)