Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
Playing the Game
Play by Post
Living Worlds
Living 4th Edition
Living 4th Edition Discussion Thread
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="covaithe" data-source="post: 4457934" data-attributes="member: 46559"><p>The wiki page name for a template is the template's name preceded by "Template:". Thus, if I wanted to create a new template called "L4W:Nonsense" I'd type the following url in my browser window:</p><p></p><p>[code]http://www.enworld.org/wiki/index.php/Template:L4W:Nonsense[/code]</p><p></p><p>Going there should bring up an empty page, which you can edit. Alternatively, you can add the following code to any wiki page: </p><p></p><p>[code][[Template:L4W:Nonsense]][/code]</p><p></p><p>It might well make sense to have a wiki page somewhere in the L4W namespace linking to all the templates we've written, with descriptions of what they're for. </p><p></p><p></p><p></p><p>I think that's my fault. Wiki text inserts newlines (HTML <br/> tags) whenever you have what it thinks are extra newlines within the template. I wrote the new powers section of the summary as </p><p></p><p>[code]</p><p>{{ #ifeq: {{{Power01|}}} ||| <tr><td> {{{Power01}}} </tr></td> }}</p><p>{{ #ifeq: {{{Power02|}}} ||| <tr><td> {{{Power02}}} </tr></td> }}</p><p>{{ #ifeq: {{{Power03|}}} ||| <tr><td> {{{Power03}}} </tr></td> }}</p><p>[/code]</p><p></p><p>etc. If I'd written instead: </p><p></p><p>[code]</p><p>{{ #ifeq: {{{Power01|}}} ||| <tr><td> {{{Power01}}} </tr></td> }} {{ #ifeq: {{{Power02|}}} ||| <tr><td> {{{Power02}}} </tr></td> }} {{ #ifeq: {{{Power03|}}} ||| <tr><td> {{{Power03}}} </tr></td> }}</p><p>[/code]</p><p></p><p>then the wikitext wouldn't emit the <br/>'s. <br/> inside of a <table> tag isn't legal HTML, so your browser attempts to figure out what the page developer "meant", and moves them outside the table. In this case, above the summary section. </p><p></p><p>At least, that's my theory, based on spending most of Sunday dealing with weird interactions between wikitext and html. It would be easily tested, by taking out the extra newlines in the template code and seeing if that fixed the extra space above the summary.</p></blockquote><p></p>
[QUOTE="covaithe, post: 4457934, member: 46559"] The wiki page name for a template is the template's name preceded by "Template:". Thus, if I wanted to create a new template called "L4W:Nonsense" I'd type the following url in my browser window: [code]http://www.enworld.org/wiki/index.php/Template:L4W:Nonsense[/code] Going there should bring up an empty page, which you can edit. Alternatively, you can add the following code to any wiki page: [code][[Template:L4W:Nonsense]][/code] It might well make sense to have a wiki page somewhere in the L4W namespace linking to all the templates we've written, with descriptions of what they're for. I think that's my fault. Wiki text inserts newlines (HTML <br/> tags) whenever you have what it thinks are extra newlines within the template. I wrote the new powers section of the summary as [code] {{ #ifeq: {{{Power01|}}} ||| <tr><td> {{{Power01}}} </tr></td> }} {{ #ifeq: {{{Power02|}}} ||| <tr><td> {{{Power02}}} </tr></td> }} {{ #ifeq: {{{Power03|}}} ||| <tr><td> {{{Power03}}} </tr></td> }} [/code] etc. If I'd written instead: [code] {{ #ifeq: {{{Power01|}}} ||| <tr><td> {{{Power01}}} </tr></td> }} {{ #ifeq: {{{Power02|}}} ||| <tr><td> {{{Power02}}} </tr></td> }} {{ #ifeq: {{{Power03|}}} ||| <tr><td> {{{Power03}}} </tr></td> }} [/code] then the wikitext wouldn't emit the <br/>'s. <br/> inside of a <table> tag isn't legal HTML, so your browser attempts to figure out what the page developer "meant", and moves them outside the table. In this case, above the summary section. At least, that's my theory, based on spending most of Sunday dealing with weird interactions between wikitext and html. It would be easily tested, by taking out the extra newlines in the template code and seeing if that fixed the extra space above the summary. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
Playing the Game
Play by Post
Living Worlds
Living 4th Edition
Living 4th Edition Discussion Thread
Top