Difference between revisions of "Template:MainArticle"

From DDO Compendium
(initial template)
 
Line 1: Line 1:
<noinclude>
<noinclude>
== About ==
{{TemplateDocumentation
This template can be used on broader category-like pages to point to a more specified article on a topic.
|name = MainArticle
 
|description = This template can be used on broader category-like pages to point to a more specified article on a topic.
== Usage ==
|category=Shared Templates
<pre><nowiki>
|example1=<nowiki>{{MainArticle|Bugbear Scout}}</nowiki>
{{MainArticle
|example1output={{MainArticle|Bugbear Scout}}
| <name of the article>
|parameter1name = Main article name
}}</nowiki></pre>
|parameter1description = The name of the main article to link to
 
}}</noinclude><includeonly>:'''''Main article:''' [[{{{1}}}]]''</includeonly>
== Example ==
<pre><nowiki>
{{MainArticle
| Bugbear Scout
}}
 
or with no line breaks:
 
{{MainArticle|Bugbear Scout}}
</nowiki></pre>
 
Produces:
 
{{MainArticle| Bugbear Scout}}
 
</noinclude>
 
<includeonly>:'''''Main article:''' [[{{{1}}}]]''</includeonly>
 
<noinclude>Category:Template</noinclude>

Revision as of 16:59, 28 September 2018


MainArticle[edit]

This template can be used on broader category-like pages to point to a more specified article on a topic.

Example Usage
{{MainArticle|Bugbear Scout}}:Main article: Bugbear Scout

Usage[edit]

{{MainArticle|(Main article name)}}

Parameter Documentation
Main article nameThe name of the main article to link to

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.