Template:Main: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
:''Main article: [[{{{1}}}]]''
:''Main article: [[{{{1}}}]]''<noinclude>
<noinclude>''This template is used to show that there is a page that further explains a section that is being mentioned. An example is shown below.<br />
{{Main/doc}}[[Category:Templates]]</noinclude>
''The syntax of the template is'' <code><nowiki>{{main|page_title}}</nowiki></code>.
==Section==
{{main|Wood}}
Wood is a resource in the game! Don't mind the extra space between this text and the template just above it. It's just a formatting error of the wiki. The extra space won't show up on other pages.</noinclude>
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 22:46, 21 November 2021

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

Description

This template is meant to be used for sections that cover a fraction of a topic, but let the reader know that there's an entire page devoted to what's being talked about in said section. For example, the resources page has a section that briefly talks about points gained through the administration building. So that very section in that page contains this template leading to the administration page.

Syntax

{{main|<PAGE_TITLE>}} should be placed at the very top of a section.

Examples

Typing {{main|Stone}} creates the following:

Main article: Stone

If you need to use more than one of these templates, you can put the templates side by side in the editor, which makes them stack on top of each other, like this:

Main article: Building
Main article: Mines and deposits