final class DifferenceShadowsV extends Object
(t)-- ] [ +-----------+ +------------+ +--
\ | user page | | discussion | |
\ +---+ +--+------------+--+--
+------------------------ \ |
| \
| | 3
| | v
| w i k i | (showing Monobook skin,
| | | Vector is similar)
| l o g o | |
| | |
| i m a g e | |
| | |
| | |
| | |
+-------------------------+ |
|
]|[ ###########
|
|
| (s)
|
|
]|[ ###########################
| ##################################
| ##############
|
]|[ ########
|
|
The shadow (s) is projected underneath the text of the author's draft in those regions
(segments ###) where it differs from the other person's draft. Each shadow segment is
accompanied by a bridge link ] [ targeting that
particular segment of the difference.
The following parameters are defined for a shadowed page in addition to those already defined by MediaWiki.
| Key | Value | Default |
|---|---|---|
| rep | The debug reporting threshold. | 0 |
| rep_diff_user | Filters difference related debug reports by the username of the other drafter. | Null, optional item. |
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
DifferenceShadowsV.BridgeBox
A box of controls (t or s) that is shown for the shadowed
difference currently lit by the shadow light.
|
(package private) static class |
DifferenceShadowsV.TopBox
The topmost bridge box (t).
|
(package private) static class |
DifferenceShadowsV.Warning
Thrown when a failure is detected that ought to be shown to the user.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
SRC_DIFF
The source URL of the image for links to difference segments.
|
static String |
SRC_DIFF_DISABLED
The source URL of the image for disabled links to difference segments.
|
| Constructor and Description |
|---|
DifferenceShadowsV(DifferenceShadows _shadows,
Stage stage)
Constructs a DifferenceShadowsV for init to finish.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
init()
Completes the construction of the DifferenceShadowsV.
|
(package private) int |
rep()
The debug reporting threshold as requested by the rep
page parameter.
|
(package private) void |
report(String message,
int level)
Shows a debug report to the user.
|
(package private) void |
report(String message,
int level,
ShadowedDiff diff)
Shows a debug report to the user that may be
filtered by difference properties.
|
(package private) DifferenceShadowsV.TopBox |
topBox()
The topmost bridge box (t).
|
public static final String SRC_DIFF
public static final String SRC_DIFF_DISABLED
DifferenceShadowsV(DifferenceShadows _shadows, Stage stage)
void init() throws DifferenceShadowsV.Warning
Warning - if a failure is detected that ought to be reported to the
user.DifferenceShadowsV.Warningvoid report(String message, int level)
level - the detail level of the message, 1 or higher.rep()int rep()
report(String,int)void report(String message, int level, ShadowedDiff diff)
level - the detail level of the message, 1 or higher.diff - the argument for any rep_diff_user
filter.DifferenceShadowsV.TopBox topBox()