Template:GlobalFlag: Difference between revisions

From Ephinea PSO Wiki
(Template Mark III, now with chrome plating)
m (Template 3.1 (Solitaire not included))
Line 19: Line 19:
{{#if:{{{fhex|}}}|
{{#if:{{{fhex|}}}|
<tr>
<tr>
<th style="text-align: left;"><div style="display: inline;" align="left">Flag {{Note|Clicking/tapping the hexadecimal value will reveal its decimal conversion, if necessary.|(Hex)}}</div><div style="float: right;">:</div></th>
<th style="text-align: left;"><div style="display: inline;" align="left">Flag {{Note|Clicking/tapping the hexadecimal value will reveal its decimal conversion, if available.|(Hex)}}</div><div style="float: right;">:</div></th>
<td style="text-align: right;"><span class="mw-customtoggle-flag">{{{fhex}}}</span></td>
<td style="text-align: right;"><span class="mw-customtoggle-flag">{{{fhex}}}</span></td>
</tr>
</tr>
Line 31: Line 31:
{{#if:{{{bmhex|}}}|
{{#if:{{{bmhex|}}}|
<tr>
<tr>
<th style="text-align: left;"><div style="display: inline;" align="left">Bitmask {{Note|Clicking/tapping a hexadecimal value will reveal its decimal conversion, if necessary.|(Hex)}}</div><div style="float: right;">:</div></th>
<th style="text-align: left;"><div style="display: inline;" align="left">Bitmask {{Note|Clicking/tapping a hexadecimal value will reveal its decimal conversion, if available.|(Hex)}}</div><div style="float: right;">:</div></th>
<td style="text-align: right;"><span class="mw-customtoggle-bitmask">{{{bmhex}}}</span></td>
<td style="text-align: right;"><span class="mw-customtoggle-bitmask">{{{bmhex}}}</span></td>
</tr>
</tr>
Line 46: Line 46:
|title = Lucky Coins
|title = Lucky Coins
|type = Currency
|type = Currency
|max = 100
|max = 100       //optional
|fhex = B
|fhex = B
|fdec = 11        //optional, will be hidden until hexadecimal value is clicked/tapped
|fdec = 11        //optional, will be hidden until hexadecimal value is clicked/tapped

Revision as of 14:15, 22 December 2021

GlobalFlag

Usage and Example

There is a side effect where an expanded hexadecimal value revealing its decimal conversion will reveal the relevant conversion for all global flag infoboxes on a page, however at that point it is likely the user will want to make use of the decimal conversions within them as well, so there is no practical reason to fix this currently.

{{GlobalFlag
|title = Lucky Coins
|type = Currency
|max = 100        //optional
|fhex = B
|fdec = 11        //optional, will be hidden until hexadecimal value is clicked/tapped
|bmhex = 00001FC
|bmdec = 508      //optional, will be hidden until hexadecimal value is clicked/tapped
}}
Lucky Coins
Type
:
Currency
Max Amount
:
100
Flag (Hex)
:
B
Flag (Dec)
:
11
Bitmask (Hex)
:
00001FC
Bitmask (Dec)
:
508