|
|
(85 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:
| | {{LocaleDate|2001|1|29}} |
|
| |
|
| <pre><nowiki>{{Divbox|yellow|{{Pullquote|Pretend something witty is written here.|Iritscen}}}}</nowiki></pre> | | {|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> |
| | |} |
|
| |
|
| begets:
| | {{Find BSL Group|ai2_idle}} |
|
| |
|
| {{Divbox|yellow|{{Pullquote|Pretend something witty is written here.|Iritscen}}}} | | ==Task A== |
| | {{BSLfuncinfo |
| | |type=bool |
| | |name=chr_has_lsi |
| | }} |
|
| |
|
| | ==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 |
| | }} |
|
| |
|
| After doing some reading on WP and some fiddling, I've found that:
| | ==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 |
| | }} |
|
| |
|
| <pre><nowiki>{{Divbox|yellow|3=<br>{{Pullquote|Pretend something witty is written here.|Iritscen}}}}</nowiki></pre>
| | ==Task D== |
|
| |
|
| begets
| |
|
| |
|
| {{Divbox|yellow|3=<br>{{Pullquote|Pretend something witty is written here.|Iritscen}}}}
| | [[Category:Userspace]] |
| | |
| 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|}}}|, {{{3}}}}}</cite></small></p>}}
| |
| |}<!-- User:Iritscen/TestSpace -->}}
| |