Template:Sbs: Difference between revisions
From ReformedWiki.org, the wiki for Reformed Christianity
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
{{#if:{{{4|}}}|<td style="border:1px solid #aaa; padding:8px; vertical-align:top;">{{{4|}}}</td>}} | {{#if:{{{4|}}}|<td style="border:1px solid #aaa; padding:8px; vertical-align:top;">{{{4|}}}</td>}} | ||
{{#if:{{{5|}}}|<td style="border:1px solid #aaa; padding:8px; vertical-align:top;">{{{5|}}}</td>}} | {{#if:{{{5|}}}|<td style="border:1px solid #aaa; padding:8px; vertical-align:top;">{{{5|}}}</td>}} | ||
</tr></table>{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|{{#if:{{{nb|}}}||<br />}}}}</includeonly> | </tr></table>{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}|{{#if:{{{nb|}}}||<br />}}}}</includeonly><noinclude> | ||
< | == Template Documentation == | ||
Use this template to create side-by-side text comparisons or multi-column layouts. | |||
'''Basic (2 columns):''' | '''Basic (2 columns):''' | ||
<pre>{{sbs|Left text|Right text}}</pre> | <pre>{{sbs|Left text|Right text}}</pre> | ||
'''With titles:''' | '''With titles:''' | ||
<pre>{{sbs|title=1|1=Left text|2=Right text}}</pre> | <pre>{{sbs|title=1|1=Left text|2=Right text}}</pre> | ||
'''Custom Titles:''' | |||
To rename the headers, use <code>t1=</code>, <code>t2=</code>, etc. | |||
<pre>{{sbs|title=1|t1=Anything|t2=Something Else|1=Left text|2=Right text}}</pre> | |||
'''Up to 5 columns:''' | '''Up to 5 columns:''' | ||
<pre>{{sbs|1=Text|2=Text|3=Text|4=Text|5=Text}}</pre> | <pre>{{sbs|1=Text|2=Text|3=Text|4=Text|5=Text}}</pre> | ||
'''Note:''' If your text contains an <code>=</code> sign, you must use named parameters: | |||
'''Note:''' If your text contains an <code>=</code> sign, you '''must''' use named parameters (1=, 2=, etc.): | |||
<pre>{{sbs|1=Text with = sign|2=Other text}}</pre> | <pre>{{sbs|1=Text with = sign|2=Other text}}</pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 00:18, 20 April 2026
Template Documentation
Use this template to create side-by-side text comparisons or multi-column layouts.
Basic (2 columns):
{{sbs|Left text|Right text}}
With titles:
{{sbs|title=1|1=Left text|2=Right text}}
Custom Titles:
To rename the headers, use t1=, t2=, etc.
{{sbs|title=1|t1=Anything|t2=Something Else|1=Left text|2=Right text}}
Up to 5 columns:
{{sbs|1=Text|2=Text|3=Text|4=Text|5=Text}}
Note: If your text contains an = sign, you must use named parameters (1=, 2=, etc.):
{{sbs|1=Text with = sign|2=Other text}}
