Main Page
Help Center
Templates and complex editing
Help:Templates and complex editing
View history
Revision as of 00:46, 15 October 2020 by imported>Wottem
MediaWiki supports using templates and HTML coding for more complex content and design solutions
Understanding templates
MediaWiki templates are actually wiki pages that are included in other pages, while enabling the change of specific parameters.
Templates are mostly used in the Template name space (i.e. the page name will be Template:Template_name
) and included by clicking Insert > Template in the editor or by typing in the source editor:
{{template name|parameter name=paremeter information}}
This will include the template
Template_name
in the page edited.
How to build templates?
For understanding better wiki templating visit MediaWiki documentation:
- Templates - how to build and use templates
- Template data - assisting users to add the right information to templates
HTML coding
You can add certain HTML tags to your pages or templates. These are some of the allowed tags:
- Text formatting tags: 'b', 'i', 'u', 'big', 'small', 'h1-6', 'cite', 'code', 's', 'strike', 'strong', 'center'.
- Layout tags: 'div', 'blockquote', 'ol', 'ul', 'table', 'p', 'span'.
Full list of permitted tags can be found here.
Designing
You can add styling to HTML tags inline or by adding CSS to templates. See here a documentation on template styling.
Note that there are few specific CSS rules that are not permitted for security reasons, like image background.
Related articles
redirect Help:Editing pages on Wazeopedia
Editing