In mediawiki, whenever you embed a template into an article, it is always proceeded by a line break (as far as I know). Is there some way to prevent this so that I may place templates next to one another without the second one being on a new line?
To use the template in a page, type "{{header}}". What marks the use of the template are the "{" and "}" characters, also known as curly brackets. To replace the name of the template with its contents directly in the source wikitext before the text is saved, use "{{subst:header}}".
The <br /> or <br> tags are used for a single forced line break.
If you add two line breaks (by pressing return twice) to the source text, Wikipedia will create a new paragraph. It is uncontroversial that paragraphs should be used to make articles easy to read.
Use the <includeonly>
tag if you didn't already, and make sure not to put any returns in your template before the </includeonly>
So
<includeonly>This is a template. </includeonly>
makes {{Template}}{{Template}} output as
This is a template. This is a template
But,
<includeonly>This is a template.
</includeonly>
makes {{Template}}{{Template}} output as
This is a template.
This is a template
Even single returns are dangerous. If template A contains:
<includeonly>{{B}}
</includeonly>
and template B contains:
<includeonly>Text
</includeonly>
then when you insert {{A}} into your page, both returns are subsequent and give paragraph break.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With