Difference between revisions of "Template:S"

From Data JW United
Jump to navigation Jump to search
(Created page with "<noinclude> This template is used for subtitles. It is mainly used for the WatchTower magazines, but it can be used to other types of literature.<br> = Parameters = <code>firs...")
 
Line 3: Line 3:
 
= Parameters =
 
= Parameters =
 
<code>first</code> - the actual subtitle text.<br>
 
<code>first</code> - the actual subtitle text.<br>
=== Example ===
+
=== Examples ===
 +
{| class="wikitable"
 +
|-
 +
! Code !! Example !! Result
 +
|-
 +
| <code><nowiki>{{raw:data:s|text}}</nowiki></code> || <code><nowiki>{{s|the actual subtitle text}}</nowiki></code> || <div style="width:400px;">{{s|the actual subtitle text}}</div>
 +
|-
 +
| <code><nowiki>{{raw:data:s|l|text}}</nowiki></code> || <code><nowiki>{{s|l|the actual subtitle text}}</nowiki></code> || <div style="width:400px;">{{s|l|the actual subtitle text}}</div>
 +
|-
 +
| <code><nowiki>{{raw:data:s|c|text}}</nowiki></code> || <code><nowiki>{{s|c|the actual subtitle text}}</nowiki></code> || <div style="width:400px;">{{s|c|the actual subtitle text}}</div>
 +
|-
 +
| <code><nowiki>{{raw:data:s|r|text}}</nowiki></code> || <code><nowiki>{{s|r|the actual subtitle text}}</nowiki></code> || <div style="width:400px;">{{s|r|the actual subtitle text}}</div>
 +
|}
 
<code><nowiki>{{s|the actual subtitle text}}</nowiki></code><br>
 
<code><nowiki>{{s|the actual subtitle text}}</nowiki></code><br>
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
<div style="text-align:center;font-weight:bold;">{{{1}}}</div>
+
{{#ifeq:{{{2|}}}|{{{2}}}| {{#ifeq: {{{1}}} |l| <div style="text-align:left;font-weight:bold;">{{{2}}}</div>}}{{#ifeq: {{{1}}} |r| <div style="text-align:right;font-weight:bold;">{{{2}}}</div>}}{{#ifeq: {{{1}}} |c| <div style="text-align:center;font-weight:bold;">{{{2}}}</div>}} | <div style="text-align:left;font-weight:bold;">{{{1}}}</div> }}
 +
 
 
</includeonly>
 
</includeonly>

Revision as of 13:15, 30 September 2020

This template is used for subtitles. It is mainly used for the WatchTower magazines, but it can be used to other types of literature.

Parameters

first - the actual subtitle text.

Examples

Code Example Result
{{raw:data:s|text}} {{s|the actual subtitle text}}
the actual subtitle text
{{raw:data:s|l|text}} {{s|l|the actual subtitle text}}
the actual subtitle text
{{raw:data:s|c|text}} {{s|c|the actual subtitle text}}
the actual subtitle text
{{raw:data:s|r|text}} {{s|r|the actual subtitle text}}
the actual subtitle text

{{s|the actual subtitle text}}