Template:Main/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{documentation |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 section contains this template leading to the administration page. |<code><nowiki>{{main|<PAGE_TITLE>}}</nowiki></code> should be pla...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{documentation | {{documentation | ||
|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 section 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> |
Revision as of 22:42, 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: StoneIf 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