Editing Template:GlobalFlag
From Ephinea PSO Wiki
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 1: | Line 1: | ||
<table style="clear:right; float:right | <table style="clear:right; float:right" class="psoBackground psoStyle"> | ||
<tr><td><table align="center" style="min-width: 200px; width: 100% | <tr><td><table align="center" style="min-width: 200px; width: 100%"> | ||
<tr> | <tr> | ||
< | <th colspan="2" class="psoHeader psoStyle" style="width: 100%">{{{title|{{PAGENAME}}}}}</th> | ||
</tr> | </tr> | ||
{{#if:{{{type|}}}| | {{#if:{{{type|}}}| | ||
Line 9: | Line 9: | ||
<th style="text-align: left;"><div style="display: inline;" align="left">Type</div><div style="float: right;">:</div></th> | <th style="text-align: left;"><div style="display: inline;" align="left">Type</div><div style="float: right;">:</div></th> | ||
<td style="text-align: right;">{{{type}}}</td> | <td style="text-align: right;">{{{type}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 52: | Line 40: | ||
<td style="text-align: right;"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-bitmask">{{{bmdec}}}</div></td> | <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 | ==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. | 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> | |||
{{GlobalFlag | {{GlobalFlag | ||
|title = Lucky Coins | |title = Lucky Coins | ||
|type = Currency | |type = Currency | ||
|max = 100 | |max = 100 //optional | ||
|fhex = B | |fhex = B | ||
|fdec = 11 | |fdec = 11 //optional, will be hidden until hexadecimal value is clicked/tapped | ||
|bmhex = 00001FC | |bmhex = 00001FC | ||
|bmdec = 508 | |bmdec = 508 //optional, will be hidden until hexadecimal value is clicked/tapped | ||
}} | }} | ||
<pre> | </pre> | ||
{{GlobalFlag | {{GlobalFlag | ||
|title = Lucky Coins | |title = Lucky Coins | ||
|type = Currency | |type = Currency | ||
|max = 100 | |max = 100 | ||
|fhex = B | |fhex = B | ||
|fdec = 11 | |fdec = 11 | ||
|bmhex = 00001FC | |bmhex = 00001FC | ||
|bmdec = 508 | |bmdec = 508 | ||
}} | }} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |