https://www.zeldadungeon.net/wiki/index.php?title=Template:Void&feed=atom&action=historyTemplate:Void - Revision history2024-03-29T08:34:15ZRevision history for this page on the wikiMediaWiki 1.39.5https://www.zeldadungeon.net/wiki/index.php?title=Template:Void&diff=103947&oldid=prevScrapper: Text replacement - "<br>" to "<br/>"2015-02-08T18:34:00Z<p>Text replacement - "<br>" to "<br/>"</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:34, February 8, 2015</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l7">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==Importance==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==Importance==</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This template is critical for the proper functioning various parser functions. Specifically switch cases. Normally the #switch function cannot properly distinguish a null value from the default value. This template works around that.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This template is critical for the proper functioning various parser functions. Specifically switch cases. Normally the #switch function cannot properly distinguish a null value from the default value. This template works around that.</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>::When using this: <b><nowiki>{{#switch:{{{1|}}}|{{Void}}={{Void}}|Yes}}</nowiki></b>, it will always work.<br></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>::When using this: <b><nowiki>{{#switch:{{{1|}}}|{{Void}}={{Void}}|Yes}}</nowiki></b>, it will always work.<br<ins style="font-weight: bold; text-decoration: none;">/</ins>></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>::When using this: <b><nowiki>{{#switch:{{{1|}}}| |Yes}}</nowiki></b>, it won't work because the function will think that both the blank space and the "yes" are what the default value is. And the "yes" overrides the blank space.<br></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>::When using this: <b><nowiki>{{#switch:{{{1|}}}| |Yes}}</nowiki></b>, it won't work because the function will think that both the blank space and the "yes" are what the default value is. And the "yes" overrides the blank space.<br<ins style="font-weight: bold; text-decoration: none;">/</ins>></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Here are some examples of this issue:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Here are some examples of this issue:</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:Using the void template:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:Using the void template:</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::<div class="messagebox" style="margin: 12px 0px; background-color: #1f4973; style="width: 5em; border: solid 1px #3b587e; padding: 5px;">{{#switch:{{{1|}}}|{{Void}}={{Void}}|Yes}}</div></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::<div class="messagebox" style="margin: 12px 0px; background-color: #1f4973; style="width: 5em; border: solid 1px #3b587e; padding: 5px;">{{#switch:{{{1|}}}|{{Void}}={{Void}}|Yes}}</div></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:Using a blank space: </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:Using a blank space: </div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>::<div class="messagebox" style="margin: 12px 0px; background-color: #1f4973; style="width: 5em; border: solid 1px #3b587e; padding: 5px;">{{#switch:{{{1|}}}| |Yes}}</div><br></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>::<div class="messagebox" style="margin: 12px 0px; background-color: #1f4973; style="width: 5em; border: solid 1px #3b587e; padding: 5px;">{{#switch:{{{1|}}}| |Yes}}</div><br<ins style="font-weight: bold; text-decoration: none;">/</ins>></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>In some cases however, there are other ways to work around this problem. Even in the above example. However these workarounds are less intuitive and make the coding more difficult to read and understand. Above you could replace the blank space with a single equals sign and it will work correctly. However, as stated before, this can be problematic with complex code. In cumbersome templates with lengthy switch cases this singular blank case with the equals sign can be potentially confusing and subjected to accidental removal in edits. It works as shown:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>In some cases however, there are other ways to work around this problem. Even in the above example. However these workarounds are less intuitive and make the coding more difficult to read and understand. Above you could replace the blank space with a single equals sign and it will work correctly. However, as stated before, this can be problematic with complex code. In cumbersome templates with lengthy switch cases this singular blank case with the equals sign can be potentially confusing and subjected to accidental removal in edits. It works as shown:</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*<b><nowiki>{{#switch:{{{1|}}}|=Blank|Not Blank}}</nowiki></b></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*<b><nowiki>{{#switch:{{{1|}}}|=Blank|Not Blank}}</nowiki></b></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>**<div class="messagebox" style="margin: 12px 0px; background-color: #1f4973; style="width: 5em; border: solid 1px #3b587e; padding: 5px;">{{#switch:{{{1|}}}|=Blank|Not Blank}}</div></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>**<div class="messagebox" style="margin: 12px 0px; background-color: #1f4973; style="width: 5em; border: solid 1px #3b587e; padding: 5px;">{{#switch:{{{1|}}}|=Blank|Not Blank}}</div></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The code <b><nowiki>{{ns:0}}</nowiki></b> also behaves like void. But is also counter-intuitive and can make template coding potentially confusing.<br> </div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The code <b><nowiki>{{ns:0}}</nowiki></b> also behaves like void. But is also counter-intuitive and can make template coding potentially confusing.<br<ins style="font-weight: bold; text-decoration: none;">/</ins>> </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>So all in all this template exists for readability and convienience of the codes in the edit view. It's largely harmless to keep.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>So all in all this template exists for readability and convienience of the codes in the edit view. It's largely harmless to keep.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{Cat|Workaround Templates}}</noinclude></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{Cat|Workaround Templates}}</noinclude></div></td></tr>
</table>Scrapperhttps://www.zeldadungeon.net/wiki/index.php?title=Template:Void&diff=56735&oldid=prevEmma: Protected "Template:Void": Widely used page ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))2013-01-09T00:21:23Z<p>Protected "<a href="/wiki/Template:Void" title="Template:Void">Template:Void</a>": Widely used page ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 00:21, January 9, 2013</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Emmahttps://www.zeldadungeon.net/wiki/index.php?title=Template:Void&diff=45096&oldid=prevLocke: marked High Use2012-10-26T13:20:42Z<p>marked High Use</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 13:20, October 26, 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><noinclude></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><noinclude><ins style="font-weight: bold; text-decoration: none;">{{High Use}}</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==Usage==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==Usage==</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This template is blank. It is used to represent a value being empty on other templates.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This template is blank. It is used to represent a value being empty on other templates.</div></td></tr>
</table>Lockehttps://www.zeldadungeon.net/wiki/index.php?title=Template:Void&diff=20&oldid=prevMases: Created page with "<noinclude> ==Usage== This template is blank. It is used to represent a value being empty on other templates. To use this template, type: '''<nowiki>{{Void}}</nowiki>''' ==Impo..."2011-03-29T03:57:10Z<p>Created page with "<noinclude> ==Usage== This template is blank. It is used to represent a value being empty on other templates. To use this template, type: '''<nowiki>{{Void}}</nowiki>''' ==Impo..."</p>
<p><b>New page</b></p><div><noinclude><br />
==Usage==<br />
This template is blank. It is used to represent a value being empty on other templates.<br />
<br />
To use this template, type: '''<nowiki>{{Void}}</nowiki>'''<br />
<br />
==Importance==<br />
This template is critical for the proper functioning various parser functions. Specifically switch cases. Normally the #switch function cannot properly distinguish a null value from the default value. This template works around that.<br />
::When using this: <b><nowiki>{{#switch:{{{1|}}}|{{Void}}={{Void}}|Yes}}</nowiki></b>, it will always work.<br><br />
::When using this: <b><nowiki>{{#switch:{{{1|}}}| |Yes}}</nowiki></b>, it won't work because the function will think that both the blank space and the "yes" are what the default value is. And the "yes" overrides the blank space.<br><br />
Here are some examples of this issue:<br />
:Using the void template:<br />
::<div class="messagebox" style="margin: 12px 0px; background-color: #1f4973; style="width: 5em; border: solid 1px #3b587e; padding: 5px;">{{#switch:{{{1|}}}|{{Void}}={{Void}}|Yes}}</div><br />
:Using a blank space: <br />
::<div class="messagebox" style="margin: 12px 0px; background-color: #1f4973; style="width: 5em; border: solid 1px #3b587e; padding: 5px;">{{#switch:{{{1|}}}| |Yes}}</div><br><br />
In some cases however, there are other ways to work around this problem. Even in the above example. However these workarounds are less intuitive and make the coding more difficult to read and understand. Above you could replace the blank space with a single equals sign and it will work correctly. However, as stated before, this can be problematic with complex code. In cumbersome templates with lengthy switch cases this singular blank case with the equals sign can be potentially confusing and subjected to accidental removal in edits. It works as shown:<br />
*<b><nowiki>{{#switch:{{{1|}}}|=Blank|Not Blank}}</nowiki></b><br />
**<div class="messagebox" style="margin: 12px 0px; background-color: #1f4973; style="width: 5em; border: solid 1px #3b587e; padding: 5px;">{{#switch:{{{1|}}}|=Blank|Not Blank}}</div><br />
<br />
The code <b><nowiki>{{ns:0}}</nowiki></b> also behaves like void. But is also counter-intuitive and can make template coding potentially confusing.<br> <br />
So all in all this template exists for readability and convienience of the codes in the edit view. It's largely harmless to keep.<br />
{{Cat|Workaround Templates}}</noinclude></div>Mases