Simple Templates

From mw.mh370.wiki
Revision as of 10:24, 15 July 2025 by Grant (talk | contribs) (Created page with "<h2>Simple Templates</h2> <p>I view simple templates as those which do not use variables.</p> <p>For the mh370wiki.net site I have a lot of useful components in the Template namespace. When these are transcluded into a page there is no need to include the namespace.</p> <h3>A Short Line</h3> <p>I frequently use a short line to separate parts of a page. The html horizontal line <hr> is full width by default and has no significant white space before or after.</p> <p>My S...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Simple Templates

I view simple templates as those which do not use variables.

For the mh370wiki.net site I have a lot of useful components in the Template namespace. When these are transcluded into a page there is no need to include the namespace.

A Short Line

I frequently use a short line to separate parts of a page. The html horizontal line


is full width by default and has no significant white space before or after.

My ShortLine is simple and reusable:-

<includeonly><div style="margin-left:20%; margin-right:20%; margin-top:1em; margin-bottom:1em;"><hr></div></includeonly>

If there was nothing else on the source page then the includeonly tags would not be needed. But I have kept a few previous versions, where I adjusted the white space, between noinclude tags.

To use the ShortLine I just transclude it with this instruction:-

{{ShortLine}}

And the result is this:-