Template:MainArticle: Difference between revisions
SimpleArrows (talk | contribs) (Created page with "<includeonly>{{Banner|caption_override=This subject has an article with more information: [[{{{1}}}{{#if: {{{2|}}}|{{!}}{{{2}}} }}]].}}</includeonly><noinclude>Category:Banner Templates <templatedata> { "params": { "1": { "label": "Page", "description": "The name of the page with more info on the subject.", "type": "wiki-page-name", "example": "Heroic System", "required": true }, "2": { "label": "Display Label", "description": "A display n...") |
SimpleArrows (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>:: [[File:Icon_Document.png|17px]] ''This subject has an article with more information: [[{{{1}}}{{#if: {{{2|}}}|{{!}}{{{2}}} }}]]''</includeonly><noinclude>[[Category:Inline Templates]] | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 17: | Line 17: | ||
} | } | ||
}, | }, | ||
"description": "Creates | "description": "Creates text to show that a subject has more info on another page from the wiki. Place this directly under a heading.", | ||
"format": "inline" | "format": "inline" | ||
} | } |
Revision as of 14:45, 1 February 2024
Creates text to show that a subject has more info on another page from the wiki. Place this directly under a heading.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page | 1 | The name of the page with more info on the subject.
| Page name | required |
Display Label | 2 | A display name of the linked page, usually a shortened version of the linked page or the name of the current page. Don't use unless absolutely necessary.
| String | optional |
{{MainArticle|WIKI_PAGE|DISPLAY_LABEL}}
Usage:
{{MainArticle|Heroic System}}
Output:
- This subject has an article with more information: Heroic System
Linking a section from a page:
If more information on the subject is within a section under a heading, you can add a hashtag and the name of the heading in front of the page's name, for example:
{{MainArticle|Heroic System#I Remember Sopot (Best Ending)|Heroic System}}
- This subject has an article with more information: Heroic System
Be sure to use the display label parameter to make the link appear as the page name.