Difference between revisions of "Template:Main"

From The Battle for Wesnoth Wiki
(Implement a simple version of Wikipedia’s Template:Main.)
 
(Add documentation.)
 
Line 1: Line 1:
<div style="padding-left: 1.6em; margin-bottom: .5em">''Main article: [[{{{1}}}]]''</div>
+
<div style="padding-left: 1.6em; margin-bottom: .5em">''Main article: [[{{{1}}}]]''</div><noinclude>
 +
 
 +
This is a simple version of Wikipedia’s [https://en.wikipedia.org/wiki/Template:Main Template:Main], to be used thus:
 +
 
 +
<nowiki>{{Main|Main Article}}</nowiki>
 +
 
 +
For example, this…
 +
 
 +
<nowiki>{{Main|StartingPoints}}</nowiki>
 +
 
 +
…would produce this:
 +
 
 +
{{Main|StartingPoints}}
 +
</noinclude>

Latest revision as of 04:34, 24 January 2014

Main article: [[{{{1}}}]]

This is a simple version of Wikipedia’s Template:Main, to be used thus:

{{Main|Main Article}}

For example, this…

{{Main|StartingPoints}}

…would produce this:

Main article: StartingPoints
This page was last edited on 24 January 2014, at 04:34.