Death StarLevelsCommercialFoodServiceRecreationRetailResidentialImperialBitizensCharacters and SpeciesBounty HuntersDroidsMen of the RebellionLadies of the RebellionRebel HeroesRebel AliensOuter RimTroopsRebel ForcesThe ForceCantina CrewHutt's HenchmenLimited EditionGalactic Registry: Series 1The Deep CoreVIPsElevatorCreditsBuxMenuScenesInventoryStoreHolonetTutorialMissionsAchievementsTasksCatch the SpyBitizen of InterestFind the BitizenEventsDecoration Event - Mar 2014Decoration Event - Dec 2013CommunityRecent blog postsSpottraApplerGamersMhommerTiny Tower Wiki
Tiny Death Star Wiki
All Contributors
Avatar
Avatar
Avatar

Levels Page Redesign

I have been working on a series of templates that would dramatically make things easier.  Here are the features:

  • Level information is automatically populated; no user intervention needed
  • Colors will adapt dynamically based on the type of level (this still needs to manually defined)
  • Pictures are automatically populated, provided they are already uploaded and follow a strict naming scheme
  • Productivity and discounted stocking times are automatically calculated - no need to fill up tables now!
  • Decorations are overlaid on the level image, without any need to upload any additional pictures
  • Page is automatically added to the correct categories

Take a look at the Galaxies Opera page, and tell me what you think!

0 51
  • Upvote
  • Reply
Avatar
Avatar
Avatar

I've added the caveat to Overbridge and added the 2 icons. Imperial page updated with the 2 items/times/costs. Anything you want to add to that? Stupid Wikia servers still caching old images though.

All Imperial levels updated with new template and level images. :) Did I mention the stupid Wikia servers are still caching some of the old images? :(

0

Stupid Wikia servers are caching some of the old images >:(

The caches are flushing. :) Only the Recon Droid icon and a few of the level pics remain to be updated.

@Zergrinch,

I've come across a problem with the Imperial Museum and Mon Cala Aquarium levels. They both have an Item 1 called "Admission".

I renamed the Imperial Museum one from Icon_IM_Admission.png to Icon_Admission.png before I found out about the Aquarium one, which is called Icon_MCA_Admission.png.

Any ideas on how to handle this in the Db and templates?

0

We will retain the Db name.  Let me think how to solve this via templates.

0

Templates updated.  If ever you need to specify a custom filename, add this:

  • |Icon1=nameoffile.png
  • |Icon2=nameoffile.png
  • |Icon3=nameoffile.png

When invoking the template.  You can see how it's done on Mon Cala Aquarium.

As always, brilliant work! Thanks Zergrinch.

I've just found a bug in the new version of the LevelSummary template when using the "name=" parameter for levels with an apostrophe in the level name. It uses the name= text for the level image, instead of {{PAGENAME}}. e.g. Rebo's Karaoke, Watto's Wares. It was working correctly before the last change.

I guess your change was to cater for Bounty Hunters (Service Level).

But it does "work" for Nightsister's... because you've uploaded 2 versions of the level image file. :D :D

Edit: Perhaps we should rename the "Bounty Hunters (Service Level)" page to "Bounty Hunters", and the "Bounty Hunters" page to "Bounty Hunters (Bitizens)", if it would make things easier, and there's no objections.

0

This wasn't introduced in the last modification, but when I was trying to fix Bounty Hunters (Service Level).  I had long argued for Bounty Hunters (Service Level) to be renamed (look at the Talk Page for it), but there was no administrative comment :P

As such, it's not a bug - it is intended behavior.  Apostrophes can get wonky, which is why this workaround was needed. The requisite code is: 

[[Image:{{{name|{{PAGENAME}}}}}.png|192px]]<br />'''{{{name|{{PAGENAME}}}}}'''

It invokes an image which is first based on what is specified in "name=", which in wikispeak is {{{name}}}.  In case the name is unspecified, it reverts to {{PAGENAME}}, which is the title of the page.  The same goes for the text that follows the image.

Wow, I could have sworn that when using "name=" the LevelSummary would show the level image. But looking at that code, there's no way that could have been. I must have been dreaming. Thanks for your explanation.

I'll upload copies of the apostrophe levels.

Write a reply...