Main Page Help Center Templates and complex editing

Help:Templates and complex editing View history

imported>Wottem
(Created page with "{{HelpPage |page content=MediaWiki supports using templates and HTML coding for more complex content and design solutions |zippers={{Togglesection |title=Understanding templat...")
 
imported>Wottem
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{HelpPage
{{HelpPage
|linklist=Template:Help complex editing
|page content=MediaWiki supports using templates and HTML coding for more complex content and design solutions
|page content=MediaWiki supports using templates and HTML coding for more complex content and design solutions
|zippers={{Togglesection
|zippers={{Togglesection
Line 5: Line 6:
|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>This will include the template <code>Template_name</code> in the page edited.


<br />
===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.
}}
}}
}}
}}

Latest revision as of 00:52, 15 October 2020


MediaWiki supports using templates and HTML coding for more complex content and design solutions

Understanding templates


HTML coding


Designing

Related articles