Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

Template:Subpage: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div id="catlinks"><blockquote>This is a sub-page for ''[[{{{game}}}]]''.</blockquote></div>[[Category:Subpages]]</includeonly>
<includeonly>
<noinclude>{{subpage}}<pre>{{subpage|game=GAME NAME}}</pre>
{{#if: {{{1|}}} | {{mbox
[[Category:Templates]]</noinclude>
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{#if: {{{tr|}}} | {{#titleparts: {{FULLPAGENAME}} | -1 }} | {{FULLPAGENAME}} }}/{{{1}}}{{#if: {{{tr|}}} | /{{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | {{#if: {{{tr|}}} | {{{tr|}}} | {{{1}}} }}]]'''</span><br>{{{text|}}}
| image=      {{{image|Blank.png}}}
| caption=     
| border=      #ddd
| background=  #fff
| iwidth    =  {{{width|50}}}
| pic-align =  {{{pic-align|center}}}
| min-width =  {{{min-width|50}}}
}}
| {{#if: {{#titleparts: {{FULLPAGENAME}}|-1}} | <blockquote>'''This is a sub-page of ''[[{{#titleparts: {{FULLPAGENAME}}|-1}}]]''.'''</blockquote> | [[Category:Pages at the top level with a subpage template]]<blockquote>'''This is an [[:Category:Pages at the top level with a subpage template|incorrectly used]] <nowiki>{{subpage}}</nowiki> template.'''</blockquote>}}
{{#ifeq: {{NAMESPACE}} | User | | {{#ifeq: {{NAMESPACE}} | User talk | | [[Category:Subpages]]{{#ifexist: {{BASEPAGENAME}} | | [[Category:Subpages without a parent]]}} }} }}
}}<!--{{UnimportantAwards}}-->{{TalkIndicator}}</includeonly><noinclude>
 
==Usage==
If you want to point out that this is a subpage of another one, just use <nowiki>{{subpage}}</nowiki>. If you want to '''link''' to a subpage, use it like this:
<pre>
{{subpage|Name|text=Text|image=Image|width=Width|pic-align=Align|min-width=Min-width}}
</pre>
 
Only the subpage name is mandatory.
 
*'''Name''' is the name of the subpage.
*'''Text''' is a small description of its contents. Usually has a [[Help:Guidelines#Humor|humorous]] sentence.
*'''Image''' is a related picture, sometimes one of the most interesting items on that subpage.
*'''Width''' is the image's width. Default is 50px.
*'''Align''' is the image's align. Default is center.
*'''Min-width''' is the image's minimum width. Default is 50px.
*'''tr''' is the translated title, and is to be only used in translations of pages. Using it outside of these will break it brilliantly.
</noinclude><noinclude>[[Category:Layout templates]]</noinclude>

Latest revision as of 21:10, 8 February 2024


Usage

If you want to point out that this is a subpage of another one, just use {{subpage}}. If you want to link to a subpage, use it like this:

{{subpage|Name|text=Text|image=Image|width=Width|pic-align=Align|min-width=Min-width}}

Only the subpage name is mandatory.

  • Name is the name of the subpage.
  • Text is a small description of its contents. Usually has a humorous sentence.
  • Image is a related picture, sometimes one of the most interesting items on that subpage.
  • Width is the image's width. Default is 50px.
  • Align is the image's align. Default is center.
  • Min-width is the image's minimum width. Default is 50px.
  • tr is the translated title, and is to be only used in translations of pages. Using it outside of these will break it brilliantly.