Difference between revisions of "Template:S"

From Data JW United
Jump to navigation Jump to search
Line 14: Line 14:
 
| <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>{{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>
 
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
 
{{#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>
 
{{#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>

Revision as of 13:16, 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.

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