Forgotten Realms Wiki
Advertisement
Forgotten Realms Wiki
Forums: Helping Hand > Location Template

Use the following template for a nicely presented post:

{{Forum post|Write your message here!|~~~~}}


Forgive me if I'm in the wrong location to ask this - but what is it that's put in the source code for the Location Template (!)?

http://forgottenrealms.wikia.com/wiki/Template:Location

Thanks — User:Othya


Here is fine, but the Talk page for the template is a bit tidier.
As for your question, I'm afraid I don't know what you mean. What source code? You can see the wiki code for it by clicking edit. But what do you mean by 'it'? — BadCatMan (talk) 13:15, July 25, 2013 (UTC)

I'm going to take a wild guess that Othya is asking about the {{!}}'s that occur throughout the template, and any other template that produces a table. Those are used to insert the pipe character (aka, vertical bar), " | ", into the output stream and not be interpreted as a separator in an "#if" statement. Does that answer your question?

Moviesign (talk) 13:44, July 25, 2013 (UTC)


Yes it does, thank you! I thought it was only showing the vertical bar because it was protected.

Thanks again - User:Othya

One more question that is related.. again I apologize for any ignorance in regards to writing wiki material.
Why if I copy everything word for word does the location template not align things properly for me? Example: copy of location template
Compared to the Template:Location on this wiki.

Thank you - User:Othya

The reason things do not line up is because you do not have the "infobox" style sheets (CSS files) installed on your wiki. I have just added the generic "wikitable" class to your template and put the "float:right;" style attribute on the first line of your Location template. I'm sorry, I do not have access to the CSS files to help you any more than this, but at least this should get you started. If you want to learn more about tables, perhaps start here. If you want to learn more about style sheets, I recommend w3schools. Good luck!

Moviesign (talk) 15:00, July 25, 2013 (UTC)


Thank you very much Moviesign! - this was very helpful! - User:Othya


OK my location template looks perfect now (the example)! http://othya.wikia.com/wiki/Template:Location

My only problem now, is that using it as a template on other pages doesn't seem to be working.. for example, I created a copy&paste page Silverymoon.. the formatting looks like it applied itself, but not the aligning or style (even though in the example on the locations template, it did apply perfectly)

It looks like you are missing the "float:right;" style parameter somewhere in your CSS file—it allows text to flow around the box. That's my best guess.

Moviesign (talk) 17:14, July 25, 2013 (UTC)


OK I'll look at that. The thing that makes no sense to me is that exactly what I want is displayed on the template page (the example)... but the example won't work on the doc page or on the Silverymoon page.

If it works in one place but not the other, then maybe you have a namespace problem. Some things are restricted to only work in certain namespaces. "Template:" is a namespace, and so is "User:" and "Forum:" etc. As a test, you could try copying your Silverymoon page to "Template:Silverymoon" and then see how it displays. If that works, then I'm guessing (really guessing) somewhere in your wiki settings must be something that is restricting templates to the Template: namespace. Good luck!

Moviesign (talk) 18:23, July 25, 2013 (UTC)
Advertisement