asfenthebig.blogg.se

Mediawiki page template
Mediawiki page template







  1. Mediawiki page template how to#
  2. Mediawiki page template full#

A simple technique is to include an example on the template page. Note: when you change the categories applied by a template, the categorization of the pages that use that template may not be updated until some time later: this is handled by the job queue.įor templates to be effective users need to find them and be able to use them. The obvious application is to add all pages containing a given template to a category, without putting the template itself into that category.

mediawiki page template

Text between and will be processed and displayed only when the page is being included. That's because the philosophy of Page Forms is that all true data in MediaWiki - including data, category information and anything else - should be stored within templates.

Mediawiki page template how to#

Explanatory text about how to use the template.Interlanguage links to similar templates in other languages.

So basically the tags are ignored on the template page, fooling the parser into highlighting code parameter when it is transcluded on another page.

Mediawiki page template full#

Check 'Include templates' and check 'Include only the current revision, not the full history', (or the file will be too big). The markup . means that the text between the tags will only be used when the page is transcluded onto another page, and will not appear on the page itself.

You can control template inclusion by the use of andĪnything between and will be processed andĭisplayed only when the template's page is being viewed directly. Go to Wikipedia and copy the name of the template youre after, go to Special:Export and paste the name of the template in the big text box, e.g. would result in "all your hard work" if no value was provided for the parameter reason.You then add the custom set of links you want to include in that template page. Templates are wiki pages which can be used in other pages in three ways: 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). 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. Therefore you can create them like any other wiki page. 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. 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. Templates follow a convention that the name is prefixed with " Template:", assigning it to that namespace. Templates are standard wiki pages whose content is designed to be transcluded (embedded) inside other pages.









Mediawiki page template