Roxen.git/
server/
modules/
tags/
obox.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1999-12-08
1999-12-08 14:14:14 by Martin Nilsson <mani@lysator.liu.se>
a68f5d2e93de57ff715aa5ae9298e5658cec4118 (
38
lines) (+
10
/-
28
)
[
Show
|
Annotate
]
Branch:
5.2
Example of multilingual tag documentation
Rev: server/modules/tags/obox.pike:1.17
5:
// Several modifications by Francesco Chemolli.
-
constant cvs_version = "$Id: obox.pike,v 1.
16
1999/
10
/
04
11
:
34
:
33
nilsson Exp $";
+
constant cvs_version = "$Id: obox.pike,v 1.
17
1999/
12
/
08
14
:
14
:
14
nilsson Exp $";
constant thread_safe=1; #include <module.h> inherit "module"; inherit "roxenlib";
-
+
TAGDOCUMENTATION
+
#ifdef manual
+
constant tagdoc=(["obox": ([
+
"standard":"<desc cont>Outlined box</desc>",
+
"svenska":"<desc cont>Ramlåda</desc>"]) ]);
+
#endif
+
constant unit_gif = "/internal-roxen-unit";
-
static private int loaded;
-
-
static private string doc()
-
{
-
return !loaded?"":replace(Stdio.read_bytes("modules/tags/doc/obox")||"",
-
({ "{", "}" }), ({ "<", ">" }));
-
}
-
+
static string img_placeholder (mapping args) { int width=((int)args->outlinewidth)||1;
142:
{ string s;
-
if (args->help) {
-
args->right = 250;
-
args->title = "The Outlined Box container tag";
-
contents = doc();
-
}
-
+
// Set the defaults... args->outlinecolor = args->outlinecolor || "#000000"; args->style = args->style || "groupbox";
195:
]), ([ "standard":
-
"This is a container tag making outlined boxes.
<p>
"
-
"<tt><obox help></obox></tt> gives help.\n\n "
-
+doc()
,
+
"This is a container tag making outlined boxes.",
"svenska": "<tt><obox help></obox></tt> är en tag som ramar " "in det som står i den. <obox title=exempel>innehåll</obox>", ]), 0, 1 }); }
-
-
void start(int num, object configuration)
-
{
-
loaded = 1;
-
}
-
-
mapping query_container_callers()
-
{
-
return ([ "obox":container_obox, ]);
-
}
+