Difference between revisions of "Template:S"

From Data JW United
Jump to navigation Jump to search
Line 6: Line 6:
 
* <code>c</code> center
 
* <code>c</code> center
 
* <code>r</code> right
 
* <code>r</code> right
=== Examples ===
+
= One parameter =
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 12: Line 12:
 
|-
 
|-
 
| <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>{{s|the actual subtitle text}}</nowiki></code> || <div style="width:400px;">{{s|the actual subtitle text}}</div>
 +
|}
 +
 +
= Two parameters =
 +
The first parameter represents the desired alignment and can be one of the following:
 +
* <code>l</code> - left
 +
* <code>c</code> - center
 +
* <code>r</code> - right
 +
{| class="wikitable"
 +
|-
 +
! Code !! Example !! Result
 
|-
 
|-
 
| <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|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>
Line 18: Line 28:
 
|-
 
|-
 
| <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>
 +
|}
 +
 +
= Tree parameters =
 +
The second parameter represents the top and bottom distance in px. It can be whatever number.
 +
* <code><a number></code> - distance top & bottom in pixels.
 +
 +
{| class="wikitable"
 +
|-
 +
! Code !! Example !! Result
 
|-
 
|-
 
| <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|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>
 +
</div>
 +
|}
 +
= Four parameters =
 +
The seconde parameter represents distance top in px.
 +
The third parameter represents distance bottom in px.
 +
{| class="wikitable"
 +
|-
 +
! Code !! Example !! Result
 
|-
 
|-
 
| <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|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>
 +
</div>
 +
|}
 +
 +
= Six parameters =
 +
The second parameter represents distance left in px.
 +
The third parameter represents distance top in px.
 +
The forth parameter represents distance right in px.
 +
The fifth parameter represents distance bottom in px.
 +
 +
{| class="wikitable"
 +
|-
 +
! Code !! Example !! Result
 
|-
 
|-
| <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>
+
| <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|100|50|50|5|the actual subtitle text}}</div>
 
|}
 
|}
 +
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>

Revision as of 14:15, 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

One parameter

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

Two parameters

The first parameter represents the desired alignment and can be one of the following:

  • l - left
  • c - center
  • r - right
Code Example Result
{{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

Tree parameters

The second parameter represents the top and bottom distance in px. It can be whatever number.

  • <a number> - distance top & bottom in pixels.
Code Example Result
{{raw:data:s|c|10|text}} {{s|c|10|the actual subtitle text}}
the actual subtitle text

Four parameters

The seconde parameter represents distance top in px. The third parameter represents distance bottom in px.

Code Example Result
{{raw:data:s|c|10|40|text}} {{s|c|10|40|the actual subtitle text}}
the actual subtitle text

Six parameters

The second parameter represents distance left in px. The third parameter represents distance top in px. The forth parameter represents distance right in px. The fifth parameter represents distance bottom in px.

Code Example Result
{{raw:data:s|c|100|50|50|5|text}} {{s|c|100|50|50|5|the actual subtitle text}}
the actual subtitle text