imported>Wottem No edit summary |
imported>Wottem No edit summary |
||
Line 5: | Line 5: | ||
|content=MediaWiki templates are actually wiki pages that are included in other pages, while enabling the change of specific parameters. | |content=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 <code>Template:Template_name</code>) and included by clicking '''Insert > Template''' in the editor or by typing | Templates are mostly used in the Template name space (i.e. the page name will be <code>Template:Template_name</code>) and included by clicking '''Insert > Template''' in the editor or by typing in the source editor: | ||
<pre><nowiki>{{template name|parameter name=paremeter information}}</nowiki></pre> | <pre><nowiki>{{template name|parameter name=paremeter information}}</nowiki></pre>This will include the template <code>Template_name</code> in the page edited. | ||
=== How to build templates? === | |||
For understanding better wiki templating visit MediaWiki documentation: | |||
* [[Mediawikiwiki:Help:Templates|Templates]] - how to build and use templates | |||
* [[Mediawikiwiki:Help:TemplatesData|Template data]] - assisting users to add the right information to templates | |||
}}{{Togglesection | }}{{Togglesection | ||
|title=HTML coding | |title=HTML coding | ||
|content=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 [[metawikimedia:Help:HTML_in_wikitext|here]]. | |||
<br /> | |||
}}{{Togglesection | }}{{Togglesection | ||
|title=Designing | |title=Designing | ||
|content=You can add styling to HTML tags inline or by adding CSS to templates. See here a [[Mediawikiwiki:Help:TemplateStyles|documentation on template styling]]. | |||
Note that there are few specific CSS rules that are not permitted for security reasons, like image background. | |||
}} | }} | ||
}} | }} |
Revision as of 00:46, 15 October 2020
MediaWiki supports using templates and HTML coding for more complex content and design solutions
Understanding templates
HTML coding
Designing
Related articles
How to use the Translation tool
You can translate pages from between different wikis to your local wiki. This is done by using the...