Ad placeholder

Help:Using templates: Difference between revisions

Jump to navigation Jump to search
Line 7: Line 7:
A '''Template''' is a special type of page designed to be embedded within other pages, providing editors  with access to consistent design and formatting.
A '''Template''' is a special type of page designed to be embedded within other pages, providing editors  with access to consistent design and formatting.


== How to use templates ==
A '''template''' is a special type of page designed to be included within other pages. Templates are used extensively on BG3Wiki.
=== Adding templates to pages ===
 
==== Visual editor ====
== Adding templates to pages ==
=== Via the visual editor ===
[[File:visual_editor_template.png|right|thumb|Inserting a template with the Visual Editor]]
[[File:visual_editor_template.png|right|thumb|Inserting a template with the Visual Editor]]
Templates can be searches for and added via the toolbar above the visual editor by clicking ''''Insert''', and in the dropdown box, selecting '''Templates'''. Most templates can be easily inserted onto a page this way. To later edit its contents, simply click on the inserted template in the visual editor for options.
Templates can be searched for and added via the toolbar above the visual editor by clicking ''Insert'', and in the dropdown box, selecting ''Templates''. Most templates can be easily inserted onto a page this way. To later edit its contents, simply click on the inserted template in the visual editor for options.


==== Source editor ====
=== Via the source editor ===
Templates are added by using double brackets ({{code|<nowiki>{{ ... }}</nowiki>}}. For example, the template {{code|foo}} is added by typing ({{code|<nowiki>foo</nowiki>}}.
Templates are added by using double brackets ({{code|<nowiki>{{ ... }}</nowiki>}}. For example, the template {{code|foo}} is added by typing ({{code|<nowiki>foo</nowiki>}}.


Line 26: Line 27:
{{AttributeBlock|8|15|7|6|10|8|hp=12|dex save = yes|race=Bird|hp=10}}
{{AttributeBlock|8|15|7|6|10|8|hp=12|dex save = yes|race=Bird|hp=10}}


== Specific uses of templates ==
=== Adding navigation to pages ===
=== Adding navigation to pages ===
==== Hatnotes ====
==== Hatnotes ====
8,856
edits

Navigation menu