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...")
 
 
(11 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>
+
{| class="wikitable"
=== Example ===
+
|-
<code><nowiki>{{s|the actual subtitle text}}</nowiki></code><br>
+
! Code !! Example !! Result
 +
|-
 +
| <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|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|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|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>
 +
|}
 +
= 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>
<div style="text-align:center;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