Difference between revisions of "Template:S"

From Data JW United
Jump to navigation Jump to search
Line 18: Line 18:
 
|-
 
|-
 
| <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>{{raw:data:s|c|10|text}}</nowiki></code> || <code><nowiki>{{s|c|10|the actual subtitle text}}</nowiki></code> || <div style="width:400px;">{{s|c|10|the actual subtitle text}}</div>
 +
|-
 +
| <code><nowiki>{{raw:data:s|c|10|40|text}}</nowiki></code> || <code><nowiki>{{s|c|10|40|the actual subtitle text}}</nowiki></code> || <div style="width:400px;">{{s|c|10|40|the actual subtitle text}}</div>
 +
|-
 +
| <code><nowiki>{{raw:data:s|c|100|50|50|5|text}}</nowiki></code> || <code><nowiki>{{s|c|100|50|50|5|the actual subtitle text}}</nowiki></code> || <div style="width:400px;">{{s|c|c|the actual subtitle text}}</div>
 
|}
 
|}
 
</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:{{{5|}}}|{{{5}}}
 +
| {{#ifeq: {{{1}}} |l| <div style="padding-left:{{{2}}}px; padding-top:{{{3}}}px; padding-right:{{{4}}}px; padding-bottom:{{{5}}}px; text-align:left;font-weight:bold;">{{{6}}}</div>}}
 +
{{#ifeq: {{{1}}} |r| <div style="padding-left:{{{2}}}px; padding-top:{{{3}}}px; padding-right:{{{4}}}px; padding-bottom:{{{5}}}px;text-align:right;font-weight:bold;">{{{6}}}</div>}}
 +
{{#ifeq: {{{1}}} |c| <div style="padding-left:{{{2}}}px; padding-top:{{{3}}}px; padding-right:{{{4}}}px; padding-bottom:{{{5}}}px;text-align:center;font-weight:bold;">{{{6}}}</div>}}
 +
|{{#ifeq:{{{4|}}}|{{{4}}}
 +
|
 +
{{#ifeq: {{{1}}} |l| <div style="padding-top:{{{2}}}px; padding-bottom:{{{3}}}px;text-align:left;font-weight:bold;">{{{4}}}</div>}}
 +
{{#ifeq: {{{1}}} |r| <div style="padding-top:{{{2}}}px; padding-bottom:{{{3}}}px;text-align:right;font-weight:bold;">{{{4}}}</div>}}
 +
{{#ifeq: {{{1}}} |c| <div style="padding-top:{{{2}}}px; padding-bottom:{{{3}}}px;text-align:center;font-weight:bold;">{{{4}}}</div>}}
 +
 
 +
 
 +
|    {{#ifeq:{{{3|}}}|{{{3}}}
 +
|
 +
{{#ifeq: {{{1}}} |l| <div style="padding-top:{{{2}}}px; padding-bottom:{{{2}}}px;text-align:left;font-weight:bold;">{{{3}}}</div>}}
 +
{{#ifeq: {{{1}}} |r| <div style="padding-top:{{{2}}}px; padding-bottom:{{{2}}}px;text-align:right;font-weight:bold;">{{{3}}}</div>}}
 +
{{#ifeq: {{{1}}} |c| <div style="padding-top:{{{2}}}px; padding-bottom:{{{2}}}px;text-align:center;font-weight:bold;">{{{3}}}</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>

Revision as of 14:00, 30 September 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.

Parameters

With no parameter the alignment will be left.

  • l left
  • c center
  • r right

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
{{raw:data:s|c|10|text}} {{s|c|10|the actual subtitle text}}
the actual subtitle text
{{raw:data:s|c|10|40|text}} {{s|c|10|40|the actual subtitle text}}
the actual subtitle text
{{raw:data:s|c|100|50|50|5|text}} {{s|c|100|50|50|5|the actual subtitle text}}
the actual subtitle text