Difference between revisions of "ReNamer:Rules:Padding"

From den4b Wiki
Jump to: navigation, search
(Navigation added)
 
(Added documentation and a screenshot)
Line 1: Line 1:
 
{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Randomize|next=ReNamer:Rules:CleanUp}}
 
{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Randomize|next=ReNamer:Rules:CleanUp}}
 +
 +
== Padding Rule ==
 +
 +
[[Image:PaddingRule.png|center]]
 +
 +
This rule allows you to apply or remove zero padding to/from number sequences, or add text padding using custom characters.
 +
 +
The "number sequences" parameters:
 +
 +
{| class="wikitable"
 +
|-
 +
! Parameter
 +
! Description
 +
 +
|-
 +
| Add zero padding to length
 +
| Apply zero padding to number sequences until the number of digits reaches a specified count (length).
 +
 +
|-
 +
| Remove zero padding
 +
| Strip away leading zeros from all number sequences.
 +
 +
|}
 +
 +
The "text padding" parameters:
 +
 +
{| class="wikitable"
 +
|-
 +
! Parameter
 +
! Description
 +
 +
|-
 +
| Add padding to length
 +
| Add custom text padding either form the left or the right side of the subject.
 +
 +
|-
 +
| Padding characters
 +
| A sequence of custom characters which will be used as the padding material.
 +
 +
|-
 +
| Position
 +
| Choose either the left or the right side for adding the text padding.
 +
 +
|}
 +
 +
General parameters:
 +
 +
{| class="wikitable"
 +
|-
 +
! Parameter
 +
! Description
 +
 +
|-
 +
| Skip extension
 +
| If this check box is selected, the extension will be ignored by the rule.
 +
 +
|}

Revision as of 12:45, 6 October 2020

Padding Rule

PaddingRule.png

This rule allows you to apply or remove zero padding to/from number sequences, or add text padding using custom characters.

The "number sequences" parameters:

Parameter Description
Add zero padding to length Apply zero padding to number sequences until the number of digits reaches a specified count (length).
Remove zero padding Strip away leading zeros from all number sequences.

The "text padding" parameters:

Parameter Description
Add padding to length Add custom text padding either form the left or the right side of the subject.
Padding characters A sequence of custom characters which will be used as the padding material.
Position Choose either the left or the right side for adding the text padding.

General parameters:

Parameter Description
Skip extension If this check box is selected, the extension will be ignored by the rule.