User:Σ/Testing facility/Sgn
This template evaluates its numeric parameter and returns its mathematical sign. If the parameter is empty or missing, it returns an empty string. Otherwise, the return value is 1 if the parameter is positive, 0 if it is null, -1 if negative.
- Syntax:
- {{Σ/Testing facility|value}}
- Examples:
- "{{Σ/Testing facility|100}}" = "
- https://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=stable&leprop=title%7Ctimestamp&format=jsonfm
- https://en.wikipedia.org/w/api.php?action=query&prop=info%7Cflagged%7Crevisions&rvprop=flagged%7Cids&inprop=protection&titles=Qnet&format=jsonfm
Username? Content? Warning templates? Editcount? On HG's whitelist?
06:26, 4 November 2013 (diff | hist) . . (-250,599) . . m User talk:Liz (Robot: Archiving 107 threads (older than 31d) to User talk:Liz/Archive 2, User talk:Liz/Archive 3, User talk:Liz/Archive 1, User talk:Liz/Archive 4.) 06:26, 4 November 2013 (diff | hist) . . (+52,214) . . N User talk:Liz/Archive 4 (Robot: Archiving 29 threads from User talk:Liz.) (current) 06:26, 4 November 2013 (diff | hist) . . (+72,346) . . N User talk:Liz/Archive 3 (Robot: Archiving 30 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+71,720) . . N User talk:Liz/Archive 2 (Robot: Archiving 38 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+54,582) . . m User talk:Liz/Archive 1 (Robot: Archiving 10 threads from User talk:Liz. (ARCHIVE FULL)) (current) [rollback: 1 edit]
Coal balls
[edit]Coal balls. →Σσς. (Sigma) 08:39, 12 November 2013 (UTC)
Exception hierarchy".
- "{{Σ/Testing facility|0.1}}" = "
- https://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=stable&leprop=title%7Ctimestamp&format=jsonfm
- https://en.wikipedia.org/w/api.php?action=query&prop=info%7Cflagged%7Crevisions&rvprop=flagged%7Cids&inprop=protection&titles=Qnet&format=jsonfm
Username? Content? Warning templates? Editcount? On HG's whitelist?
06:26, 4 November 2013 (diff | hist) . . (-250,599) . . m User talk:Liz (Robot: Archiving 107 threads (older than 31d) to User talk:Liz/Archive 2, User talk:Liz/Archive 3, User talk:Liz/Archive 1, User talk:Liz/Archive 4.) 06:26, 4 November 2013 (diff | hist) . . (+52,214) . . N User talk:Liz/Archive 4 (Robot: Archiving 29 threads from User talk:Liz.) (current) 06:26, 4 November 2013 (diff | hist) . . (+72,346) . . N User talk:Liz/Archive 3 (Robot: Archiving 30 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+71,720) . . N User talk:Liz/Archive 2 (Robot: Archiving 38 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+54,582) . . m User talk:Liz/Archive 1 (Robot: Archiving 10 threads from User talk:Liz. (ARCHIVE FULL)) (current) [rollback: 1 edit]
Coal balls
[edit]Coal balls. →Σσς. (Sigma) 08:39, 12 November 2013 (UTC)
Exception hierarchy".
- "{{Σ/Testing facility|1-1}}" = "
- https://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=stable&leprop=title%7Ctimestamp&format=jsonfm
- https://en.wikipedia.org/w/api.php?action=query&prop=info%7Cflagged%7Crevisions&rvprop=flagged%7Cids&inprop=protection&titles=Qnet&format=jsonfm
Username? Content? Warning templates? Editcount? On HG's whitelist?
06:26, 4 November 2013 (diff | hist) . . (-250,599) . . m User talk:Liz (Robot: Archiving 107 threads (older than 31d) to User talk:Liz/Archive 2, User talk:Liz/Archive 3, User talk:Liz/Archive 1, User talk:Liz/Archive 4.) 06:26, 4 November 2013 (diff | hist) . . (+52,214) . . N User talk:Liz/Archive 4 (Robot: Archiving 29 threads from User talk:Liz.) (current) 06:26, 4 November 2013 (diff | hist) . . (+72,346) . . N User talk:Liz/Archive 3 (Robot: Archiving 30 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+71,720) . . N User talk:Liz/Archive 2 (Robot: Archiving 38 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+54,582) . . m User talk:Liz/Archive 1 (Robot: Archiving 10 threads from User talk:Liz. (ARCHIVE FULL)) (current) [rollback: 1 edit]
Coal balls
[edit]Coal balls. →Σσς. (Sigma) 08:39, 12 November 2013 (UTC)
Exception hierarchy".
- "{{Σ/Testing facility|-0.1}}" = "
- https://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=stable&leprop=title%7Ctimestamp&format=jsonfm
- https://en.wikipedia.org/w/api.php?action=query&prop=info%7Cflagged%7Crevisions&rvprop=flagged%7Cids&inprop=protection&titles=Qnet&format=jsonfm
Username? Content? Warning templates? Editcount? On HG's whitelist?
06:26, 4 November 2013 (diff | hist) . . (-250,599) . . m User talk:Liz (Robot: Archiving 107 threads (older than 31d) to User talk:Liz/Archive 2, User talk:Liz/Archive 3, User talk:Liz/Archive 1, User talk:Liz/Archive 4.) 06:26, 4 November 2013 (diff | hist) . . (+52,214) . . N User talk:Liz/Archive 4 (Robot: Archiving 29 threads from User talk:Liz.) (current) 06:26, 4 November 2013 (diff | hist) . . (+72,346) . . N User talk:Liz/Archive 3 (Robot: Archiving 30 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+71,720) . . N User talk:Liz/Archive 2 (Robot: Archiving 38 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+54,582) . . m User talk:Liz/Archive 1 (Robot: Archiving 10 threads from User talk:Liz. (ARCHIVE FULL)) (current) [rollback: 1 edit]
Coal balls
[edit]Coal balls. →Σσς. (Sigma) 08:39, 12 November 2013 (UTC)
Exception hierarchy".
- "{{Σ/Testing facility|-100}}" = "
- https://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=stable&leprop=title%7Ctimestamp&format=jsonfm
- https://en.wikipedia.org/w/api.php?action=query&prop=info%7Cflagged%7Crevisions&rvprop=flagged%7Cids&inprop=protection&titles=Qnet&format=jsonfm
Username? Content? Warning templates? Editcount? On HG's whitelist?
06:26, 4 November 2013 (diff | hist) . . (-250,599) . . m User talk:Liz (Robot: Archiving 107 threads (older than 31d) to User talk:Liz/Archive 2, User talk:Liz/Archive 3, User talk:Liz/Archive 1, User talk:Liz/Archive 4.) 06:26, 4 November 2013 (diff | hist) . . (+52,214) . . N User talk:Liz/Archive 4 (Robot: Archiving 29 threads from User talk:Liz.) (current) 06:26, 4 November 2013 (diff | hist) . . (+72,346) . . N User talk:Liz/Archive 3 (Robot: Archiving 30 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+71,720) . . N User talk:Liz/Archive 2 (Robot: Archiving 38 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+54,582) . . m User talk:Liz/Archive 1 (Robot: Archiving 10 threads from User talk:Liz. (ARCHIVE FULL)) (current) [rollback: 1 edit]
Coal balls
[edit]Coal balls. →Σσς. (Sigma) 08:39, 12 November 2013 (UTC)
Exception hierarchy".
- "{{Σ/Testing facility|}}" = "
- https://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=stable&leprop=title%7Ctimestamp&format=jsonfm
- https://en.wikipedia.org/w/api.php?action=query&prop=info%7Cflagged%7Crevisions&rvprop=flagged%7Cids&inprop=protection&titles=Qnet&format=jsonfm
Username? Content? Warning templates? Editcount? On HG's whitelist?
06:26, 4 November 2013 (diff | hist) . . (-250,599) . . m User talk:Liz (Robot: Archiving 107 threads (older than 31d) to User talk:Liz/Archive 2, User talk:Liz/Archive 3, User talk:Liz/Archive 1, User talk:Liz/Archive 4.) 06:26, 4 November 2013 (diff | hist) . . (+52,214) . . N User talk:Liz/Archive 4 (Robot: Archiving 29 threads from User talk:Liz.) (current) 06:26, 4 November 2013 (diff | hist) . . (+72,346) . . N User talk:Liz/Archive 3 (Robot: Archiving 30 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+71,720) . . N User talk:Liz/Archive 2 (Robot: Archiving 38 threads from User talk:Liz. (ARCHIVE FULL)) (current) 06:26, 4 November 2013 (diff | hist) . . (+54,582) . . m User talk:Liz/Archive 1 (Robot: Archiving 10 threads from User talk:Liz. (ARCHIVE FULL)) (current) [rollback: 1 edit]
Coal balls
[edit]Coal balls. →Σσς. (Sigma) 08:39, 12 November 2013 (UTC)
Exception hierarchy".