[Mediawiki-l] I delete something on a page and it pops back... again and again.

The Gadget Doctor mediawiki at thegadgetdoctor.com
Wed Sep 10 12:11:27 UTC 2008


Before I go out of my mind, does Mediawiki correct things after I hit
save???? I'm sure it doesn't.

I have the following line in one of my ridiculously complicated templates
which involves SMW and properties:

{{ #if: {{{other authors|}}}|, {{#arraymap:{{{other
authors}}}|,|x|[[Authors::x|:x]]}} }}

Right at then end is a ":x" that I want to remove. So I edit the template
and change it to:


{{ #if: {{{other authors|}}}|, {{#arraymap:{{{other
authors}}}|,|x|[[Authors::x|]]}} }}

Hit save and bingo, nothing changes! I can change other parts of the
template and that works. I can substitute any text for the :x and that works
but if I just delete :x it pops back.

I'm going mad????

Here is the full template:

<div class="floatright">{{Amazonlinkimage|isbn={{{isbn}}} }}</div>
<div class="wmd-cite wmd-says"><span
class="wmd-cite-sechead">Book:</span>[[{{{book}}} by
{{{author}}}|{{{book}}}]] {{ #if: {{{author|}}}|by [[{{{author}}}]]}} {{
#if: {{{other authors|}}}| and {{#arraymap:{{{other authors}}}|,|x|[[x]]}}
}}</div>
<div class="wmd-cite wmd-says"><span
class="wmd-cite-sechead">Publisher:</span>{{{publisher}}}, [[web
date::{{{date}}}]]</div>
{{ #if: {{{isbn|}}}|<div class="wmd-cite wmd-says"><span
class="wmd-cite-sechead">ISBN:</span>[[ISBN::{{{isbn}}}]]</div>}}
[[Book Page Titles::{{{book}}} by {{{author}}}|]]
[[Book Titles::{{{book}}}|]]
{{ #if: {{{author|}}}|[[Authors::{{{author}}}|]]}}
{{ #if: {{{other authors|}}}|, {{#arraymap:{{{other
authors}}}|,|x|[[Authors::x|:x]]}} }}<noinclude>
Is it gone?
==Usage==
Include the following text to use the template:
<pre>
{{Book
|book=
|author=
|other authors=
|publisher=
|date=Month dd, YYYY
|isbn=
}}
<no include>{{Books}}</no include>
</pre>
[[Category:Book Templates]]
</noinclude>


More information about the MediaWiki-l mailing list