×
Create a new article
Write your page title here:
We currently have 230 articles on Farthest Frontier. Type your article name above or create one of the articles listed here!



    Farthest Frontier

    User:Jamespapp/sandbox/Infobox Building Tabbed/doc: Difference between revisions

    Content added Content deleted
    mNo edit summary
     
    Line 76: Line 76:
    The Healer's House is a little different because it doesn't become available until Tier 2 ''and'' it's name actually changes when upgraded.
    The Healer's House is a little different because it doesn't become available until Tier 2 ''and'' it's name actually changes when upgraded.


    I also experimented with using a &amp;times; instead of an "x" for the size (and I think it looks nicer but do accept that it's WAY more typing.) I tried automating this with a <code><nowiki>{{#replace:6x6|x|&amp;times;}}</nowiki></code> (here's the result &rarr;{{#replace:6x6|x|&times;}}&larr;) but even though we have Extension:ParserFunctions installed, it seems to be getting ignored and just rendered verbatim.
    I also experimented with using a &amp;times; instead of an "x" for the size. I think it looks nicer but do accept that it's WAY more typing, so I automated it (so it converts at render time).


    {|
    {|
    Line 84: Line 84:
    |name=Healer's House
    |name=Healer's House
    |category=Amenities and Services
    |category=Amenities and Services
    |size=3&times;3
    |size=3x3
    |name1=
    |name1=
    |image1=[[File:IMG Building HealersHutT1.png|200px]]
    |image1=[[File:IMG Building HealersHutT1.png|200px]]

    Latest revision as of 01:47, 29 August 2023

    Overview

    Note: As this is just a proof of concept, I haven't implemented ALL of the data fields.

    Below, I'm demonstrating how the template reacts to a different number of tiers being included in the call. If there are exactly two tiers for which details are provided, the second panel has the title "Upgraded". If there's only one tier specified, "No upgrade", etc.

    • I also put in a single header (above the panels) with optional subheaders (in the panels).
    • I also pulled static properties (those that don't change through upgrades) up, above the panels.
    • I'm also defaulting the "Upgrades To" to the name provided for the next upgrade.
    • I also experimented with not providing names for the Town Center (the last one of the four examples below) at the various tiers (just to compare how that looks, and if it still makes sense while still using the "Upgrades To" names).
    • I also linkified all the data titles because why not?

    Town Center example

    DEBUG
    tier1→1←
    tier2→2←
    tier3→←
    tier4→←

    DEBUG
    tier1→1←
    tier2→←
    tier3→←
    tier4→←

    DEBUG
    tier1→1←
    tier2→2←
    tier3→3←
    tier4→←

    DEBUG
    tier1→1←
    tier2→2←
    tier3→3←
    tier4→4←

    Healer's House example

    The Healer's House is a little different because it doesn't become available until Tier 2 and it's name actually changes when upgraded.

    I also experimented with using a &times; instead of an "x" for the size. I think it looks nicer but do accept that it's WAY more typing, so I automated it (so it converts at render time).

    DEBUG
    tier1→2←
    tier2→3←
    tier3→←
    tier4→←

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.