User:Artoire/Template:Profession panel: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 10:
|3}}
|4}}}}}}<!--
--><spandiv style="background-color:#2A2A2A;padding:5px;width:auto;float:{{{float|right}}};width:auto"><!--
--><span style="color:#{{#switch:{{lc:{{{favourite|{{#var:User:Artoire:latest_discovered}}}}}}}
|1|hopeport=A69C62
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"><!--
--><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">{{#expr:<!--
-->{{#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|{{#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|{{#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|{{#replace:{{{watchperson|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{detective|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{leatherworker|0}}}| |}}}}+{{XP/Level for|{{#replace:{{{merchant|0}}}| |}}}}}}}}
}}</span><!--
--></span><!--
--></div><!--
-->{{Clear}}<!--
Line 30 ⟶ 32:
-->{{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}}}}}<!--
-->{{#if:{{{last_updated|}}}|<div style="text-align:center;color:white;width:100%">Last updated: {{#time:{{{last_updated_format|j M Y}}}|{{{last_updated}}}}}</spandiv>}}<!--
--></spandiv></onlyinclude></includeonly>Usage:
 
<syntaxhighlight lang="wikitext">{{User:Artoire/Template:Profession panel
Line 44 ⟶ 46:
|carpenter =
|minefighter =
|bonewright =
|miner =
|blacksmith =
|stonemason =
Line 61 ⟶ 65:
"|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),. butIt thiscan behaviour canalso be disabledset byto setting"left" it toor "none".
 
For example, with 1 000xp in all skills, this would look like:
Line 76 ⟶ 80:
|carpenter = 1 000
|minefighter = 1 000
|bonewright = 1 000
|miner = 1 000
|blacksmith = 1 000
|stonemason = 1 000
Line 82 ⟶ 88:
|leatherworker = 1 000
|merchant = 1 000
|discovered = 1
|last_updated = 20250106125351 <!-- {{subst:CURRENTTIMESTAMP}} -->
|float = left
}}
1,524

edits