Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing Help:Using templates

Help page
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{hatnote|This article is an introduction to using templates. For a more technical guide, see [[Help:Templates]]. For a list of all commonly used templates, see [[Help:List of templates]].}}
{{hatnote|This article is an introduction to using templates. For a more technical guide, see [[Help:Templates]]. For a list of all commonly used templates, see [[Help:List of templates]].}}
{{NavWiki|help}}
{{NavWiki|help}}
{{nav button|right|Help: Uploading files|Uploading files|noclear=1|padding=1%}}
{{nav button|left|Help: Editing basics|Editing basics|noclear=1|padding=1%}}
{{TocHelp}}
{{clear}}
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.


Line 9: Line 13:


=== Via the 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>}}.


A template's parameters are specified through the use of pipes {{code|<nowiki>|</nowiki>}}.
A template's parameters are specified through the use of pipes {{code|(<nowiki>|</nowiki>)}}.


* Template with one parameter:
* Template with one parameter:
Line 17: Line 21:
** Result: {{enchantment|+1}}
** Result: {{enchantment|+1}}
* Template with multiple parameters:
* Template with multiple parameters:
** Code: {{code|<nowiki>{{AttributeBlock|8|15|7|6|10|8|dex save = yes|race=Bird|hp=10}}</nowiki>}}
** Code: {{code|<nowiki>{{AttributeBlock|8|15|7|6|10|8|hp=12|dex save = yes|race=Bird|hp=10}}</nowiki>}}
** Result:
** Result:
{{AttributeBlock|8|15|7|6|10|8|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 ==
== Specific uses of templates ==
Contributions are considered to be licensed under CC BY-NC-SA 4.0 and (where possible) CC BY-SA 4.0. See Copyrights for details. Per our Content Rules, you are promising that any new text you add was written by yourself, or is available under a license that permits its inclusion in bg3.wiki. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)