Template:GlobalFlag: Difference between revisions
From Ephinea PSO Wiki
m (Modified table alignment for stacking purposes, take 2) |
(Template Mark III, now with chrome plating) |
||
Line 19: | Line 19: | ||
{{#if:{{{fhex|}}}| | {{#if:{{{fhex|}}}| | ||
<tr> | <tr> | ||
<th style="text-align: left;"><div style="display: inline;" align="left">Flag {{Note|Clicking | <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> | ||
<td style="text-align: right;">{{{fhex}}}</td> | <td style="text-align: right;"><span class="mw-customtoggle-flag">{{{fhex}}}</span></td> | ||
</tr> | |||
}} | |||
{{#if:{{{fdec|}}}| | |||
<tr> | |||
<th style="text-align: left;"><div style="display: inline;" align="left;" class="mw-collapsible mw-collapsed" id="mw-customcollapsible-flag">Flag (Dec)</div><div style="float: right;" class="mw-collapsible mw-collapsed" id="mw-customcollapsible-flag">:</div></th> | |||
<td style="text-align: right;"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-flag">{{{fdec}}}</div></td> | |||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{{bmhex|}}}| | {{#if:{{{bmhex|}}}| | ||
<tr> | <tr> | ||
<th style="text-align: left;"><div style="display: inline;" align="left">Bitmask {{Note|Clicking a hexadecimal value will reveal its decimal | <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> | ||
<td style="text-align: right;">{{{bmhex}}}</td> | <td style="text-align: right;"><span class="mw-customtoggle-bitmask">{{{bmhex}}}</span></td> | ||
</tr> | |||
}} | |||
{{#if:{{{bmdec|}}}| | |||
<tr> | |||
<th style="text-align: left;"><div style="display: inline;" align="left;" class="mw-collapsible mw-collapsed" id="mw-customcollapsible-bitmask">Bitmask (Dec)</div><div style="float: right;" class="mw-collapsible mw-collapsed" id="mw-customcollapsible-bitmask">:</div></th> | |||
<td style="text-align: right;"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-bitmask">{{{bmdec}}}</div></td> | |||
</tr>}}</table></table><noinclude> | </tr>}}</table></table><noinclude> | ||
==Usage and Example== | ==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. | |||
<pre> | <pre> | ||
{{GlobalFlag | {{GlobalFlag | ||
Line 34: | Line 47: | ||
|type = Currency | |type = Currency | ||
|max = 100 | |max = 100 | ||
|fhex = | |fhex = B | ||
|bmhex = | |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 | |||
}} | }} | ||
</pre> | </pre> | ||
Line 42: | Line 57: | ||
|type = Currency | |type = Currency | ||
|max = 100 | |max = 100 | ||
|fhex = | |fhex = B | ||
|bmhex = | |fdec = 11 | ||
|bmhex = 00001FC | |||
|bmdec = 508 | |||
}} | }} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 02:50, 22 December 2021
|
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 |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 }}
|