Home
Random
Recent changes
Special pages
Community portal
Preferences
About Sundering
Disclaimers
Sundering
Search
User menu
Talk
Contributions
Create account
Log in
Patches
|
Items
|
Quests
|
Creatures
|
Dungeons
|
NPCs
Attributes
|
Skills
|
Titles
|
XP Augmentation
|
Luminance Augmentation
|
Tailoring
Character Creation
β’
New Player Guide
β’
User Interface
β’
Glossary
Editing
Help:Template
(section)
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.
Anti-spam check. Do
not
fill this in!
=== Whitespace === Whitespace (including newlines, tabs and spaces) is stripped from the beginning and end of all parameters. If this is not desirable, adding any non-whitespace characters (including the HTML ''encoding'' for a whitespace character, or invisible Unicode characters such as the zero-width space or direction marks) will prevent further stripping: :<pre>{{#ifeq: foo | foo | equal | not equal }}</pre> :→ '''{{#ifeq: foo | foo | equal | not equal }}''' :<pre>{{#ifeq: &#32;foo &#32;|&#32; foo&#32; | equal | not equal }}</pre> :→ '''{{#ifeq: &#32; foo &#32; | &#32; foo &#32; | equal | not equal }}''' Judicious use of whitespace can make templates more readable, quicker to fill out, and easier to debug when unexpected behavior occurs. Compare the two uses below that would have identical results. <pre style="width:auto; overflow:auto"> {{Template | Parameter One = One | Parameter Two = Two | Parameter Three = Three | Parameter Four = Four }} {{Template|Parameter One=One|Parameter Two=Two|Parameter Three=Three|Parameter Four=Four}} </pre> ==== Strip/Trim ==== Some complicated templates can experience problems with how white space is used when invoking the template (where you would get different results using <nowiki>{{template | variable }} vs. {{template|variable}}</nowiki> even though technically they should be the same. Use the {{tl|Strip}} function around the variable in the template for consistent results.
Summary:
Please note that all contributions to Sundering may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Sundering:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
If you're new to the wiki, please take a moment to review our
Naming Conventions
and
Page Templates
. Using proper article names and image formats/sizes keep the wiki clean and helps avoid duplicate entries. Thanks!