https://wiki.kerbalspaceprogram.com/index.php?title=Template:Braces/doc&feed=atom&action=historyTemplate:Braces/doc - Revision history2024-03-28T22:47:29ZRevision history for this page on the wikiMediaWiki 1.29.0https://wiki.kerbalspaceprogram.com/index.php?title=Template:Braces/doc&diff=97819&oldid=prevArnePeirs at 11:51, 7 March 20202020-03-07T11:51:54Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 11:51, 7 March 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l4" >Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* An alternative is to use <code>&amp;#123;{foo}&amp;#125;</code>.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* An alternative is to use <code>&amp;#123;{foo}&amp;#125;</code>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Set {{mono|code{{=}}on}}{{\}}{{mono|code{{=}}true}}{{\}}etc to switch the font used to the HTML <nowiki><code></nowiki>-style monospaced font.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Set {{mono|code{{=}}on}}{{\}}{{mono|code{{=}}true}}{{\}}etc to switch the font used to the HTML <nowiki><code></nowiki>-style monospaced font.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; 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>* To improve legibility, {{tl|thinsp}}aces are inserted either side of any [[Vertical bar|pipe character]]s ("{{thinsp|{{!}}}}") displayed by the template.</div></td><td class='diff-marker'>+</td><td style="color:black; 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>* To improve legibility, {{tl|thinsp}}aces are inserted either side of any [[<ins class="diffchange diffchange-inline">w:</ins>Vertical bar|pipe character]]s ("{{thinsp|{{!}}}}") displayed by the template.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* To ensure equals-signs are handled as text by the template, use {{tl|{{=}}}} to produce them&nbsp;– e.g. <code><nowiki>{{braces|Templatename|p1{{=}}v1|p2{{=}}v2|...}}</nowiki></code> (and see examples below).</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* To ensure equals-signs are handled as text by the template, use {{tl|{{=}}}} to produce them&nbsp;– e.g. <code><nowiki>{{braces|Templatename|p1{{=}}v1|p2{{=}}v2|...}}</nowiki></code> (and see examples below).</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>ArnePeirshttps://wiki.kerbalspaceprogram.com/index.php?title=Template:Braces/doc&diff=63677&oldid=prevMurph: Import from Wikipedia (CC BY-SA license)2015-05-31T16:06:31Z<p>Import from Wikipedia (CC BY-SA license)</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<br />
* This template returns the first unnamed parameter in double braces. To be used to demonstrate template code without the need for clunky nowiki'ing. Further unnamed parameters (up to 8 more) can be used without worrying for pipes.<br />
* An alternative is to use <code>&amp;#123;{foo}&amp;#125;</code>.<br />
* Set {{mono|code{{=}}on}}{{\}}{{mono|code{{=}}true}}{{\}}etc to switch the font used to the HTML <nowiki><code></nowiki>-style monospaced font.<br />
* To improve legibility, {{tl|thinsp}}aces are inserted either side of any [[Vertical bar|pipe character]]s ("{{thinsp|{{!}}}}") displayed by the template.<br />
* To ensure equals-signs are handled as text by the template, use {{tl|{{=}}}} to produce them&nbsp;– e.g. <code><nowiki>{{braces|Templatename|p1{{=}}v1|p2{{=}}v2|...}}</nowiki></code> (and see examples below).<br />
<br />
===Examples===<br />
{{Markup<br />
| col2 = Output<br />
<br />
| <nowiki>{{braces|Templatename|item1|item2}}</nowiki><br />
| {{braces|Templatename|item1|item2}}<br />
<br />
| <nowiki>{{braces|code=on |Templatename|item1|item2}}</nowiki><br />
| {{braces|code=on |Templatename|item1|item2}}<br />
<br />
| <nowiki>{{braces |Templatename|item1{{=}}XYZ|item2{{=}}PQR}}</nowiki><br />
| {{braces |Templatename|item1{{=}}XYZ|item2{{=}}PQR}}<br />
<br />
| <nowiki>{{braces|code=on |Templatename|item1=XYZ|item2=PQR}}</nowiki><br />
| {{cross|15}} {{braces|code=on |Templatename|item1=XYZ|item2=PQR}}<br />
}}<br />
<br />
== See also ==<br />
* {{tl|brackets}}<br />
* {{tl|nowiki}}<br />
* {{tl|mono}}<br />
* {{tl|mset}}<br />
<!--[Now deprecated?:] * {{tl|Ttt}} {{tag|tt}} tags.--><br />
<br />
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |<br />
[[Category:Wikipedia character-substitution templates]]<br />
[[Category:Typing-aid templates]]<br />
}}</includeonly></div>Murph