Template:Main/doc: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 2: Line 2:
|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.
|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.
|<code><nowiki>{{main|<PAGE_TITLE>}}</nowiki></code> should be placed at the very top of a section.
|<code><nowiki>{{main|<PAGE_TITLE>}}</nowiki></code> should be placed at the very top of a section.
|Typing <code><nowiki>{{main|Stone}}</nowiki></code> creates the following: {{main|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|Building}}{{main|Mines and deposits}}}}<noinclude>[[Category:Doc_templates]]</noinclude>
|Typing <code><nowiki>{{main|Stone}}</nowiki></code> creates the following: {{main|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|Building}}{{main|Mines and deposits}}}}<noinclude>[[Category:Doc_templates]]</noinclude>

Latest revision as of 23:48, 21 November 2021

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