User:Iritscen/TestSpace: Difference between revisions

From OniGalore
Jump to navigation Jump to search
No edit summary
m (link fix to satisfy my script)
 
(82 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Divbox and Pullquote don't get along well. Here's what happens when I write some reasonable wiki code:
{|border=1 cellspacing=0 cellpadding=2
!Kind
!Type
!Name
!Platform<onlyinclude>
|-<includeonly>
|Group 1</includeonly>
|style="font-family:cursive; font-weight:bold" align="center"|f
|bool
|[[User:Iritscen/TestSpace#chr_has_lsi|chr_has_lsi]]
|align="center" data-sort-value="wm"|[[Image:Platform-Win.png|20px]] [[Image:Platform-Mac.png|20px]]
|-<includeonly>
|Group 2</includeonly>
|style="font-size:166%; font-family:cursive" align="center"|v
|bool
|[[User:Iritscen/TestSpace#gl_fog_start_changeto|gl_fog_start_changeto]]
|align="center" data-sort-value=" m"|[[Image:Platform-empty.png|20px]] [[Image:Platform-Mac.png|20px]]</onlyinclude>
|}


<pre><nowiki>{{Divbox|yellow|{{Pullquote|Pretend something witty is written here.|Iritscen}}}}</nowiki></pre>
{{Find BSL Group|ai2_idle}}


begets:
==Task A==
{{BSLfuncinfo
|type=bool
|name=chr_has_lsi
}}


{{Divbox|yellow|{{Pullquote|Pretend something witty is written here.|Iritscen}}}}
==Task B==
{{BSLvarinfo
|name=gl_fog_red
|type=float
|default=0.25
|mac=no
}}
{{BSLvarinfo
|name=gl_fog_green
|type=string
|default=0.25
}}
{{BSLvarinfo
|name=gl_fog_blue
|type=float
|default=0.25
}}
{{BSLvarinfo
|name=gl_fog_start
|type=float
|default=0.925
}}
{{BSLvarinfo
|name=gl_fog_end
|type=float
|default=1.0
}}
{{BSLfuncinfo
|type=void
|default=
|name=gl_fog_start_changeto
|arg1default=
|arg1type=float
|arg1name=start_val
|arg2default=
|arg2type=int
|arg2name=frames
}}
{{BSLfuncinfo
|type=void
|default=
|name=gl_fog_end_changeto
|arg1default=
|arg1type=float
|arg1name=start_val
|arg2default=
|arg2type=int
|arg2name=frames
}}


==Task C==
{{BSLfuncinfo
|type=void
|name=playback
|arg1type=string
|arg1name=ai_name
|arg1alttype=int
|arg1altname=script_id
|arg2type=string
|arg2name=film_name
|arg3optional=yes
|arg3type=string
|arg3name=mode
|arg4optional=yes
|arg4type=int
|arg4name=num_frames
}}


After doing some reading on WP and some fiddling, I've found that:
==Task D==


<pre><nowiki>{{Divbox|yellow|3=<br>{{Pullquote|Pretend something witty is written here.|Iritscen}}}}</nowiki></pre>


begets
[[Category:Userspace]]
 
{{Divbox|yellow|3=<br>{{Pullquote|Pretend something witty is written here.|Iritscen}}}}
 
So, although it works, it's only by a hack that the two templates get along together even partially.
 
Questions that need answering:
# Why do I need to declare that the quote text is the third parameter with "3="?
# Why does some bum text need to be inserted (here I've used "<nowiki><br></nowiki>") before the data returned by Pullquote?
# Why does using Pullquote inside of Divbox break Divbox's "width" parameter?
:Because pullquote has its own width...[[User:Gumby|Gumby]]
<nowiki>#</nowiki>3 is of the most concern to me, followed by #2. I suspect that the fact that Pullquote actually returns table code is part of the problem behind all this.
 
{{Divbox|yellow|
{| align="center" style="border-collapse:collapse;border-style:none;background-color:transparent;max-width:40em;width:auto;margin:0 10%;"
| valign="top" style="color:{{{color|silver}}};font-size:{{{size|3.6em}}};font-family:serif;font-weight:bold;text-align:left;padding:10px 0;" | “
| valign="top" style="padding:0 1em;" | Pretend something witty is written here.
| valign="bottom" style="color:{{{color|silver}}};font-size:{{{size|3.6em}}};font-family:serif;font-weight:bold;text-align:right;padding:10px 0;" | „
|-
| colspan="3" style="padding:1ex 0 0 0;" | {{#if:Iritscen|<p style="line-height:1em;text-align:right;"><small><cite style="font-style:normal;">—Iritscen{{#if:{{{3|}}}|,&nbsp;{{{3}}}}}</cite></small></p>}}
|}<!-- User:Iritscen/TestSpace -->}}

Latest revision as of 14:44, 5 April 2021

Kind Type Name Platform
f bool chr_has_lsi Platform-Win.png Platform-Mac.png
v bool gl_fog_start_changeto Platform-empty.png Platform-Mac.png

AI tasks

Task A

bool
Edit this info
chr_has_lsi(
);
default: --

Task B

float gl_fog_red string gl_fog_green float gl_fog_blue float gl_fog_start float gl_fog_end

void
float
int
Edit this info
gl_fog_start_changeto(
start_val,
frames
);
default: --
--
--

void
float
int
Edit this info
gl_fog_end_changeto(
start_val,
frames
);
default: --
--
--

Task C

void
string or int
string
string
int
Edit this info
playback(
ai_name or script_id,
film_name,
mode,
num_frames
);
default: --
--
--
--
--

Task D