Yes, Brunhilda, that was my problem. To be easier to the visitors to understand what to put in each field. However, I think that is solved even with the large definition names. Your suggestion to put something that will be erased by the user is also a very good idea.
OK, the important thing is that we understood each other :) So, you chose the way you prefer, it does not matter… ;)
Let's see the infobox code:
http://terrasdeportugal.wikidot.com/infobox-concelho:_template
here is the maps storage page:
http://terrasdeportugal.wikidot.com/mapas:concelhos
now, here is the infobox in a page:
http://terrasdeportugal.wikidot.com/trofa
as you can see, the map is included automatically! Try other page, like Lisboa or Porto and you will see the municipalities map changing. Unfortunately, I can't use that %%title%% solution because certain cities have more than one word in their designation. Per example: "Vila do Conde" has three words and the image module can't deal with spaces. To solve that, I will use %%name%% instead and I need to rename all the pictures to words-separated-by-hifen and witout first capital letters. No problem…
This is what I was telling you about putting hyphen between the words…
Imagine the advantage to use that solution in an Infobox for my encyclopedia of all the Portuguese villages: Memória Portuguesa. It's only necessary to use the infobox template, containing the code: %%title%%.png, and the respective map is included automatically!
No, it is not good solution, and I think that Scott has already told you in some other thread, because the correct photo is drawn on the basis of equalness of the title and the name of the photo, so if someone changes the title, then your module will not be able to recognize the photo… Let me explain:
In the module:
[[image mapas:concelhos/%%title%%.png]]
This title calls for the title of the article, not the name of the photo. That is WHY the name of the photo must be the same as the title. So, if the page where this module is included is titled lisboa, then %%title%% in your image module is changed by the word from this title and it is lisboa, and we get
[[image mapas:concelhos/lisboa.png]]
which is the name of your photo.
Now imagine that someone changes the title of the page to lisabon. The image module then would show:
[[image mapas:concelhos/lisabon.png]]
And since there is no picture called lisabon, then your module will show no picture.
That is why Scott proposed to use %%name%% instead of %%title%% because it is more unlikely that someone renames the article, than to change the title of the article. %%name%% refers to the name of the page in URL, meaning in your article on Lisboa, it is http://terrasdeportugal.wikidot.com/lisboa where the %%name%% refers to the lisboa after /.
Therefore, in conclusion, it is much safer to user %%name%% than %%title%%
Also, an image of that city is automatically included form the Flickr Gallery concerning that city. Nice touch!
Of course. :)
However, I have another problem… I was thinking to includ the Infobox in the general template page: http://terrasdeportugal.wikidot.com/_template
Is this possible? If so, how can I display the infobox form to include the data in each field? I suspect that I need to include the infobox in each page, and if so that will be a colossal work for more than 1.600 pages :(
What is your suggestion?
Hm, I am not an expert as far as live templates are concerned, but I suppose that then you should make all data automatic as you made it with photos, and I am not sure this is possible.
If you already have articles without infoboxes, then yes, I think that you should go on introducing one by one, and I know it is a tedious work, but if you want it to be done, you will just have to do it. However, I do hope I am wrong and that someone will appear with a magic solution for you…. :)
What I can suggest is for future articles is to make a normal template for your articles in which you will put the include module, so when someone opens a new page, he will get already introduced include module, and the only thing he must do is to fill it in.