Mobile app version of vmapp.org
Login or Join
YK1175434

: MediaWiki fails to show Ambox I am writing you about the use of Template:Ambox in MediaWiki. I have a version 1.28 hosted MediWiki installation that works well apparently at everything, but I

@YK1175434

Posted in: #Mediawiki

I am writing you about the use of Template:Ambox in MediaWiki.

I have a version 1.28 hosted MediWiki installation that works well apparently at everything, but I can't get the boxes explain here www.mediawiki.org/wiki/Template:Ambox to work properly.

As a test I implemented in this page www.lucamauri.net/wikitrek/index.php?title=Pasticci the following code:

{{ambox
| type = notice
| text = Text for a big box, for the top of articles.
| smalltext = Text for the top of article sections.
}}


and I expected a nice box to show up. Instead I simply see the text Template:Ambox shown at the top of the page.
It seems like this template is not defined in MediaWiki, but, as far as I understood, this is built-in and in all examples I saw it seems it should work out-of-the-box.

I guess I miss something basic here, but it really escapes me: any help you might provide will be appreciated.

Thanks

Luca

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @YK1175434

1 Comments

Sorted by latest first Latest Oldest Best

 

@Lee4591628

Contrarily to what I originally thought, the AMBox template is not part of a standard MediaWiki installation.
To make it works it is necessary to:


If not already installed, install Scribunto extension as explained here www.mediawiki.org/wiki/Extension:Scribunto Export the template using the export page www.mediawiki.org/wiki/Special:Export and manually adding the page Template:Ambox in the field
Import the resulting XML file in your MediaWiki installation via the Special:Import page


Then the Template will be available in your Wiki to use as explained in the MediaWiki website mentioned above

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme