![]() MediaWiki Help:Templates explains the process in more detail. If there is in template code you'll also need to install the Scribunto extension. When hosting MediaWiki on IIS 7. la diffrence des extensions et des fichiers multimdia, il n'y a pas de lieu centralis pour le stockage des modles. Enabling clean URLs with URL Rewrite Module. Si vous avez des textes standards que vous voulez inclure sur plusieurs pages, les modles (templates) de MediaWiki peuvent vous aider. When done with changes, click 'Save Page'. An Editor displays in which you can make your changes. You can also put a fair amount of whitespace when creating them in the page. Go to the main page and click the Edit link. If it still doesn't work and you have messy pages of braces and if statements, then you need to install the ParserFunctions extension. Templates with arguments could still work. Finally edit the templates to customize for your wiki. You might also need to copy styles in MediaWiki:Common.css page and Javascript in MediaWiki:Common.js before everything works. ![]() If there are any red links repeat the above steps for these templates as well. There are generally six main usages for templates within MediaWiki: (1) tags to highlight problems within a page, (2) infoboxes, (3) navigation boxes, (4) structural elements, (5) formatting aids and (6) templates used as formatting aids directly by various extensions. Then import this into the destination wiki.Īfter it has been imported open the template for editing, check the list below the edit box "Pages transcluded onto the current version of this page:". Foto dei partecipanti allHackathon di Wikimedia 2019. Check "Include templates" and check "Include only the current revision, not the full history", (or the file will be too big). MediaWiki una piattaforma di collaborazione e documentazione fornita da una comunit allavanguardia. .This can be as simple as turning each value into a link, although there can be more complex. These parser functions 'map' some text processing onto each value. Go to Wikipedia and copy the name of the template you're after, go to Special:Export and paste the name of the template in the big text box, e.g. Page Forms also defines the parser functions arraymap and arraymaptemplate, which provide support for having multiple values for a single field, delimited by a comma or other character. You then add the custom set of links you want to include in that template page. Templates load other templates which load others in turn, etc. How to Create Templates In Mediawiki, you create a template by adding template:swordfish on a page (in this case, swordfish is the name of the template I'm creating). It's a PITA and unfortunately (unlike extensions or media files) there is no repository of canned templates.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |