Editing User:Artoire/Template:Profession panel

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 10: Line 10:
|3}}
|3}}
|4}}}}}}<!--
|4}}}}}}<!--
--><div style="background-color:#2A2A2A;padding:5px;float:{{{float|right}}};width:auto"><!--
--><span style="background-color:#2A2A2A;padding:5px;width:auto;float:right"><!--
--><span style="color:#{{#switch:{{lc:{{{favourite|{{#var:User:Artoire:latest_discovered}}}}}}}
--><span style="color:#{{#switch:{{lc:{{{favourite|{{#var:User:Artoire:latest_discovered}}}}}}}
|1|hopeport=A69C62
|1|hopeport=A69C62
Line 18: Line 18:
--><div style="float:right;border:1px solid white;border-radius:5px;color:white;padding:3px 5px 3px 5px;display:flex;justify-content:space-between;align-items:center"><!--
--><div style="float:right;border:1px solid white;border-radius:5px;color:white;padding:3px 5px 3px 5px;display:flex;justify-content:space-between;align-items:center"><!--
--><span style="text-align:center;font-size:12px;line-height:12px">Total<br>Level</span><!--
--><span style="text-align:center;font-size:12px;line-height:12px">Total<br>Level</span><!--
--><span style="font-size:28px;line-height:0px;margin-left:8px"><!--
--><span style="font-size:28px;line-height:0px;margin-left:8px">{{#expr:
{{#vardefineecho:User:Artoire:total_hopeport|{{#expr:{{XP/Level for|{{{guard|0}}}}}+{{XP/Level for|{{{chef|0}}}}}+{{XP/Level for|{{{fisher|0}}}}}+{{XP/Level for|{{{forager|0}}}}}+{{XP/Level for|{{{alchemist|0}}}}}}}}} +
-->{{#expr:
{{#vardefineecho:User:Artoire:total_hopeport|{{#expr:{{XP/Level for|{{#replace:{{{guard|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{chef|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{fisher|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{forager|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{alchemist|0}}}| |}}}}}}}} +
{{#vardefineecho:User:Artoire:total_hopeforest|{{#expr:{{XP/Level for|{{{scout|0}}}}}+{{XP/Level for|{{{gatherer|0}}}}}+{{XP/Level for|{{{woodcutter|0}}}}}+{{XP/Level for|{{{carpenter|0}}}}}}}}} +
{{#vardefineecho:User:Artoire:total_hopeforest|{{#expr:{{XP/Level for|{{#replace:{{{scout|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{gatherer|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{woodcutter|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{carpenter|0}}}| |}}}}}}}} +
{{#vardefineecho:User:Artoire:total_mine|{{#expr:{{XP/Level for|{{{minefighter|0}}}}}+{{XP/Level for|{{{bonewright|0}}}}}+{{XP/Level for|{{{miner|0}}}}}+{{XP/Level for|{{{blacksmith|0}}}}}+{{XP/Level for|{{{stonemason|0}}}}}}}}} +
{{#vardefineecho:User:Artoire:total_mine|{{#expr:{{XP/Level for|{{#replace:{{{minefighter|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{bonewright|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{miner|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{blacksmith|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{stonemason|0}}}| |}}}}}}}} +
{{#vardefineecho:User:Artoire:total_crenopolis|{{#expr:{{XP/Level for|{{{watchperson|0}}}}}+{{XP/Level for|{{{detective|0}}}}}+{{XP/Level for|{{{leatherworker|0}}}}}+{{XP/Level for|{{{merchant|0}}}}}}}}}
}}</span><!--
{{#vardefineecho:User:Artoire:total_crenopolis|{{#expr:{{XP/Level for|{{#replace:{{{watchperson|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{detective|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{leatherworker|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{merchant|0}}}| |}}}}}}}}
}}<!--
--></span><!--
--></div><!--
--></div><!--
-->{{Clear}}<!--
-->{{Clear}}<!--
Line 32: Line 30:
-->{{User:Artoire/Template:Profession panel/Line|episode=Mine of Mantuban|border-colour=668498|text-colour=639FAF|total={{#var:User:Artoire:total_mine}}|discovered={{#ifexpr:{{#var:User:Artoire:latest_discovered}}>2|1}}|Minefighter|{{{minefighter|0}}}|Bonewright|{{{bonewright|0}}}|Miner|{{{miner|0}}}|Blacksmith|{{{blacksmith|0}}}|Stonemason|{{{stonemason|0}}}}}<!--
-->{{User:Artoire/Template:Profession panel/Line|episode=Mine of Mantuban|border-colour=668498|text-colour=639FAF|total={{#var:User:Artoire:total_mine}}|discovered={{#ifexpr:{{#var:User:Artoire:latest_discovered}}>2|1}}|Minefighter|{{{minefighter|0}}}|Bonewright|{{{bonewright|0}}}|Miner|{{{miner|0}}}|Blacksmith|{{{blacksmith|0}}}|Stonemason|{{{stonemason|0}}}}}<!--
-->{{User:Artoire/Template:Profession panel/Line|episode=Crenopolis|border-colour=C2C0B4|text-colour=99A3A7|total={{#var:User:Artoire:total_crenopolis}}|discovered={{#ifexpr:{{#var:User:Artoire:latest_discovered}}>3|1}}|Watchperson|{{{watchperson|0}}}|Detective|{{{detective|0}}}|Leatherworker|{{{leatherworker|0}}}|Merchant|{{{merchant|0}}}}}<!--
-->{{User:Artoire/Template:Profession panel/Line|episode=Crenopolis|border-colour=C2C0B4|text-colour=99A3A7|total={{#var:User:Artoire:total_crenopolis}}|discovered={{#ifexpr:{{#var:User:Artoire:latest_discovered}}>3|1}}|Watchperson|{{{watchperson|0}}}|Detective|{{{detective|0}}}|Leatherworker|{{{leatherworker|0}}}|Merchant|{{{merchant|0}}}}}<!--
--></span></onlyinclude></includeonly>Still under construction.
-->{{#if:{{{last_updated|}}}|<div style="text-align:center;color:white;width:100%">Last updated: {{#time:{{{last_updated_format|j M Y}}}|{{{last_updated}}}}}</div>}}<!--
--></div></onlyinclude></includeonly>Usage:

<syntaxhighlight lang="wikitext">{{User:Artoire/Template:Profession panel
|guard =
|chef =
|fisher =
|forager =
|alchemist =
|scout =
|gatherer =
|woodcutter =
|carpenter =
|minefighter =
|bonewright =
|miner =
|blacksmith =
|stonemason =
|watchperson =
|detective =
|leatherworker =
|merchant =
|last_updated = {{subst:CURRENTTIMESTAMP}} <!-- {{subst:CURRENTTIMESTAMP}} -->
}}</syntaxhighlight>

All the profession names need to be given an xp value.

"|last_updated = " is optional but shows when the infobox was last edited if you supply it. It can also be in the format YYYY-MM-DD if you want to supply a specific date.

"|discovered = " takes an episode name like "Hopeport"/"Hopeforest"/etc. It will show all episodes afterwards as "not yet discovered". By default, it's the last episode where any profession has xp.

"|favourite = " takes an episode name like "Hopeport"/"Hopeforest"/etc. This is the colour the "PROFESSIONS" at the top is. It defaults to the value of "discovered".

"|float = " can be used to set the css float property. This is "right" by default (to show the panel on the right). It can also be set to "left" or "none".

For example, with 1 000xp in all skills, this would look like:


Test:
<hr>
{{User:Artoire/Template:Profession panel
{{User:Artoire/Template:Profession panel
|guard = 1 000
|guard = 250
|chef = 1 000
|chef = 5000
|fisher = 1 000
|fisher = 250
|forager = 1 000
|forager = 250
|alchemist = 1 000
|alchemist = 250
|scout = 1 000
|scout = 250
|gatherer = 1 000
|gatherer = 5000
|woodcutter = 1 000
|woodcutter = 250
|carpenter = 1 000
|carpenter = 250
|minefighter = 1 000
|minefighter = 250
|bonewright = 1 000
|blacksmith = 5000
|miner = 1 000
|stonemason = 250
|watchperson = 0
|blacksmith = 1 000
|stonemason = 1 000
|detective = 0
|leatherworker = 0
|watchperson = 1 000
|detective = 1 000
|merchant = 0}}
|leatherworker = 1 000
|merchant = 1 000
|last_updated = 20250106125351 <!-- {{subst:CURRENTTIMESTAMP}} -->
|float = left
}}
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see Brighter Shores:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)