Register - Login
Views: 99831135
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 09:22:05 PM
Jul - Computers and Technology - Mediawiki & Templates New poll - New thread - New reply
Next newer thread | Next older thread
Sukasa

Level: 123


Posts: 2320/4326
EXP: 20936859
For next: 294407

Since: 07-07-07


Since last post: 1.1 years
Last activity: 1.1 years

Posted on 04-25-10 01:47:10 AM Link | Quote

So, I am having absolutely *no* luck getting a mediawiki template to work. Could anyone see what I'm doing wrong?


<includeonly>{|cellpadding="0" cellspacing="0" class="room_info"

| style="text-align: center;"|
{{ #if: {{{Width|}}} | [[Image:{{ #if: {{{Image|}}} | {{{Image}}} | NoImage.png }}|{{{Width}}}px]] | [[Image:{{ #if: {{{Image|}}} | {{{Image}}} | NoImage.png }}]] }}
|-class="room_info_title"
! ''{{ #if: {{{Name|}}} | {{{Name}}} | {{PAGENAME}} }}''
|-
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
{{#if: {{{Connects|}}} | '''Connects To''': {{{Connects}}}<br> | }}
{{#if: {{{Location|}}} | '''Approximate Location''': {{{Location}}}<br> | }}
{{#if: {{{Profession|}}} | '''Associated Profession''': {{{Profession}}}<br> | }}
{{#if: {{{Access|}}} | '''Access(es) Needed''': {{{Access}}}<br> | }}
|}
</includeonly><noinclude>
==Usage==

<pre>
{{Room
| Image= Room picture filename (e.g. Filename.png)
| Width= Width, in pixels (leave blank for auto)
| Name= Room's Name
| Location= Approximate location of the room
| Profession= Which Job(s) the room services
| Access= What Accesses you need to normally enter the room
}}
</pre>
</noinclude>





____________________
<@Bitmap> Be completely humble and gentle;
<@Bitmap> And tell them to shut the fuck up
Sukasa

Level: 123


Posts: 2321/4326
EXP: 20936859
For next: 294407

Since: 07-07-07


Since last post: 1.1 years
Last activity: 1.1 years

Posted on 04-25-10 01:47:58 AM Link | Quote

As a note, here's the plaintext that comes *out* on a page that uses the template:


{{ #if: 200px | [[Image:{{ #if: Bridge.png | Bridge.png | NoImage.png }}|200pxpx]] | [[Image:{{ #if: Bridge.png | Bridge.png | NoImage.png }}]] }}

Bridge | Bridge }}
{{#if: | Connects To: {{{Connects}}}
| }} {{#if: Northwest Donut, through courtroom | Approximate Location: Northwest Donut, through courtroom
| }} {{#if: Heads of Staff | Associated Profession: Heads of Staff
| }} {{#if: Bridge Access | Access(es) Needed: Bridge Access
| }}



____________________
<@Bitmap> Be completely humble and gentle;
<@Bitmap> And tell them to shut the fuck up
Liliana
"A horrible person". That's what it says. "A horrible person."

We weren't even testing for that.


Level: NaN


Posts: 1657/-3841
EXP: NaN
For next: 0

Since: 07-23-07


Since last post: 10.3 years
Last activity: 10.1 years

Posted on 04-25-10 07:44:34 AM Link | Quote
Does the wiki even have parser functions installed? If it doesn't, this can't work.

____________________
Originally posted by HotSoup
IE8 is just as secure -if not more so- than any browser on the market.
Sukasa

Level: 123


Posts: 2327/4326
EXP: 20936859
For next: 294407

Since: 07-07-07


Since last post: 1.1 years
Last activity: 1.1 years

Posted on 04-25-10 07:56:13 AM Link | Quote

That turned out to be the problem. Now, of course, I'm just showcasing how bad I am at working with templates elsewhere

____________________
<@Bitmap> Be completely humble and gentle;
<@Bitmap> And tell them to shut the fuck up
Next newer thread | Next older thread
Jul - Computers and Technology - Mediawiki & Templates New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

28 database queries, 2 query cache hits.
Query execution time: 0.097287 seconds
Script execution time: 0.013395 seconds
Total render time: 0.110682 seconds