Topic on Project:Support desk

Summary by Abrape

Very helpful. Problem solved. Many Thanks.

Abrape (talkcontribs)

Hello, I created a template infobox in my wiki. If I insert the info box with brackets in the lemma, the template appears correctly. After inserting the data, I save the lemma, but the info box remains empty (no data). How do I have to program the template so that the template is inserted into the lemma (without using subst) and the info box filled with data becomes visible in the lemma after saving? LG Abrape

Jonathan3 (talkcontribs)

I guess lemma is a word for page.

Copy and paste your page (at least the part calling the template) and your template here and we'll see!

Abrape (talkcontribs)
[[Datei:<Name>.png|thumb|center|<Berg>]]
Name =
Höhe in m ü. NHN =
Lage =
Gebirge =
Breitengrad =
Längengrad =
Typ =
Gestein =
Bauwerke =
Jonathan3 (talkcontribs)

Could you also copy and paste your page?

In the template, you need to add the parameters. E.g. it might have Name = {{{Name|}}} if your page has {{Templatename|Name=Joe Bloggs}}.

See Help:Templates#Parameters.

Abrape (talkcontribs)

Done. Thank you for your help!

[[Datei:<Name>.png|thumb|center|<Berg>]]
Name =
Höhe in m ü. NHN =
Lage =
Gebirge =
Breitengrad =
Längengrad =
Typ =
Gestein =
Bauwerke =
Jonathan3 (talkcontribs)

That looks like the Template page rather than the content page. Could you send both?

It's surrounded by noinclude tags. That tells mediawiki not to include the text between the tags when the template is used. You could change them to includeonly and see what difference it makes.

Also I wonder whether template parameters are case sensitive. I can't remember.

Abrape (talkcontribs)

The copy of the side box has no reference here and therefore only Template:Testberg appears here. Sorry!

Jonathan3 (talkcontribs)

I don't know what that means.

If you mean how it appears on this website, don't worry - I can click "edit" to see what you copy/pasted.

It would be good to see two things:

1. The name and content of the page containing the template code, e.g. Template:Testberg is the name and <includeonly>...</includeonly> is the content. 2. The content of the call to the template, e.g. {{Testberg|name=Berlin}}.

Abrape (talkcontribs)

{{Infobox Test |NAME=Testberg |BILD= |BILDBESCHREIBUNG= |HÖHE=708 |HÖHE-BEZUG=DE-NHN |LAGE=[[Bayern]], [[Deutschland]] |GEBIRGE=[[Fichtelgebirge]] |BREITENGRAD=49/56/49/N |LÄNGENGRAD=12/08/10/E |REGION-ISO=DE-BY |TYP= |GESTEIN=Basalt |ALTER= |ERSTBESTEIGUNG= |BESONDERHEITEN= }}