Editing Template:GlobalFlag

From Ephinea PSO Wiki
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 1: Line 1:
<table style="clear:right; float:right; margin: 5px" class="psoBackground psoStyle">
<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>
<td colspan="2" align="center" class="psoHeader psoStyle" style="width: 100%; font-size:14px">Global flag<div style="font-size:17px; font-weight:bold">{{{title|{{PAGENAME}}}}}</div></td>
<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>
}}
{{#if:{{{chex|}}}|
<tr>
<th style="text-align: left;"><div style="display: inline;" align="left">Complete {{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-complete">{{{chex}}}</span></td>
</tr>
}}
{{#if:{{{cdec|}}}|
<tr>
<th style="text-align: left;"><div style="display: inline;" align="left;" class="mw-collapsible mw-collapsed" id="mw-customcollapsible-complete">Complete (Dec)</div><div style="float: right;" class="mw-collapsible mw-collapsed" id="mw-customcollapsible-complete">:</div></th>
<td style="text-align: right;"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-complete">{{{cdec}}}</div></td>
</tr>
</tr>
}}
}}
Line 31: 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 available.|(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 necessary.|(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 43: 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 available.|(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 necessary.|(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 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 Examples==
==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>
If using <code><nowiki>{{subst:onlyinclude|id=infobox| ... }}</nowiki></code> for a global flag article, use <code><nowiki>{{:article|infobox}}</nowiki></code> to transclude the infobox, in case other parts of the article are also marked for transclusion.
{{GlobalFlag
{{GlobalFlag
|title = Lucky Coins
|title = Lucky Coins
Line 61: Line 48:
|max = 100
|max = 100
|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>
{{subst:onlyinclude|id=infobox| // optional, used for global flag article transclusion
{{GlobalFlag
{{GlobalFlag
|title = Lucky Coins
|title = Lucky Coins
|type = Currency
|type = Currency
|max = 100         // used with Currency type
|max = 100
|fhex = B
|fhex = B
|fdec = 11         // optional, will be hidden until hexadecimal value is clicked/tapped
|fdec = 11
|bmhex = 00001FC
|bmhex = 00001FC
|bmdec = 508       // optional, will be hidden until hexadecimal value is clicked/tapped
|bmdec = 508
}}
}}                // use if above onlyinclude substitution template is also used
</pre>
{{GlobalFlag
|title = Wrapping Papers
|type = Collection
|chex = 1FF
|cdec = 511
|fhex = B
|fdec = 11
|bmhex = 1FF00000
|bmdec = 535822336
}}
<pre>
{{GlobalFlag
|title = Wrapping Papers
|type = Collection
|chex = 1FF        // used with Collection type
|cdec = 511        // optional, will be hidden until hexadecimal value is clicked/tapped
|fhex = B
|fdec = 11        // optional, will be hidden until hexadecimal value is clicked/tapped
|bmhex = 1FF00000
|bmdec = 535822336 // optional, will be hidden until hexadecimal value is clicked/tapped
}}
}}
</pre>
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>
Please note that all contributions to Ephinea PSO Wiki are considered to be released under the CC BY-NC-SA 4.0 (see Ephinea PSO Wiki: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)