Difference between revisions of "Template:S"

From Data JW United
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<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>
+
This template is used for subtitles. It is mainly used for the WatchTower magazines, but it can be used for other types of literature.<br>
= Parameters =
+
= Usage =
<code>first</code> - the actual subtitle text.<br>
 
=== Examples ===
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
 
! Code !! Example !! Result
 
! 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|text}}</nowiki></code> || <code><nowiki>{{raw:data:s|the actual subtitle}}</nowiki></code> || <div style="width:400px;">{{s|The actual subtitle}}</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|10|text}}</nowiki></code> || <code><nowiki>{{raw:data:s|10|the actual subtitle}}</nowiki></code> || <div style="width:400px;">{{s|10|The actual subtitle}}</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|bold|text}}</nowiki></code> || <code><nowiki>{{raw:data:s|bold|the actual subtitle}}</nowiki></code> || <div style="width:400px;">{{s|bold|The actual subtitle}}</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>{{raw:data:s|bold|10|text}}</nowiki></code> || <code><nowiki>{{raw:data:s|bold|10|the actual subtitle}}</nowiki></code> || <div style="width:400px;">{{s|bold|10|The actual subtitle}}</div>
 
|}
 
|}
<code><nowiki>{{s|the actual subtitle text}}</nowiki></code><br>
+
= Usage in combination with other templates for align and set margins =
 +
{| class="wikitable"
 +
|-
 +
! Code !! Example !! Result
 +
|-
 +
| <code><nowiki>{{raw:data:m|50|{{raw:data:s|bold|10|text}}}}</nowiki></code> || <code><nowiki>{{raw:data:m|50|{{raw:data:s|bold|10|The actual subtitle}}}}</nowiki></code> || <div style="width:400px;">{{m|50|{{s|bold|10|The actual subtitle}}}}</div>
 +
|-
 +
| <code><nowiki>{{raw:data:ai|1|r|{{raw:data:s|bold|10|text}}}}</nowiki></code> || <code><nowiki>{{raw:data:ai|1|r|{{raw:data:s|bold|10|The actual subtitle}}}}</nowiki></code> || <div style="width:400px;">{{ai|1|r|{{s|bold|10|The actual subtitle}}}}</div>
 +
|}
 +
 
 
</noinclude>
 
</noinclude>
<includeonly>
+
<includeonly>{{#ifeq: {{{1}}} |bold| {{#ifeq:{{{3|}}}|{{{3}}} | <div style="font-size:{{{2}}}px;font-weight:bold;">{{{3}}}</div> | <div style="font-size:30px;font-weight:bold;">{{{2}}}</div> }} | {{#ifeq:{{{2|}}}|{{{2}}} | <div style="font-size:{{{1}}}px;">{{{2}}}</div> | <div style="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>
 

Latest revision as of 06:00, 1 October 2020

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

Usage

Code Example Result
{{raw:data:s|text}} {{raw:data:s|the actual subtitle}}
The actual subtitle
{{raw:data:s|10|text}} {{raw:data:s|10|the actual subtitle}}
The actual subtitle
{{raw:data:s|bold|text}} {{raw:data:s|bold|the actual subtitle}}
The actual subtitle
{{raw:data:s|bold|10|text}} {{raw:data:s|bold|10|the actual subtitle}}
The actual subtitle

Usage in combination with other templates for align and set margins

Code Example Result
{{raw:data:m|50|{{raw:data:s|bold|10|text}}}} {{raw:data:m|50|{{raw:data:s|bold|10|The actual subtitle}}}}
The actual subtitle
{{raw:data:ai|1|r|{{raw:data:s|bold|10|text}}}} {{raw:data:ai|1|r|{{raw:data:s|bold|10|The actual subtitle}}}}
The actual subtitle