Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Incubator escapee wiki:Template namespace
(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!
=== Readability of the code === For templates that have a large number of parameters, it can be helpful to place each parameter on a separate line and align the equals signs. This helps future editors to more easily read the wikicode. For example, if you wish to create a new [[Help:Infobox|infobox]] β which may contain dozens of parameters β your code might look like this: <pre>{{Infobox | header1 = Text of header1 | label2 = Text of label2 | data2 = Text of data2 | etc = etc }}</pre> Templates using many [[Help:Conditional expressions|conditional expressions]] often benefit from line spacing, such as the following code used in {{t|If either}} <syntaxhighlight lang=wikitext> {{#if:{{{1|}}} |{{{then|{{{3|}}}}}} |{{#if:{{{2|}}} |{{{then|{{{3|}}}}}} |{{{else|{{{4|}}}}}} }} }} </syntaxhighlight> While not necessary, the demonstrated linebreaks allow for easier parsing of which conditionals relate to which #if statement.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)