Template:Namespaces: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Created page with "{{#ifexist: {{FULLPAGENAME}}/ROM map | {{mbox | text= <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/ROM map|ROM map]]'''</span><br>{{{text|}}} | image= {{{development-image|ROMIcon.png}}} | caption= Read about development information and materials for this game. | border= #bfb | background= #efe | iwidth = {{{width|32}}} | pic-align = center | min-width = 32 }} | {{#ifeq:{{#translation:}}||| {{#ifexist: {{B...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/ROM map|ROM map]]'''</span><br>{{{text|}}}
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/ROM map|ROM map]]'''</span><br>{{{text|}}}
| image=      {{{development-image|ROMIcon.png}}}
| image=      {{{development-image|ROMIcon.png}}}
| caption=    Read about development information and materials for this game.
| caption=    Read about development information and materials for this game. <!-- TO DO-->
| border=      #bfb
| border=      #66a
| background=  #efe
| background=  #ddf
| iwidth    =  {{{width|32}}}
| iwidth    =  {{{width|32}}}
| pic-align =  center
| pic-align =  center
Line 16: Line 16:
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{BASEPAGENAME}}/ROM map|ROM map]]'''{{#ifeq:{{#translation:}}|/en||&nbsp;'''(untranslated)'''}}</span><br>{{{text|}}}
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{BASEPAGENAME}}/ROM map|ROM map]]'''{{#ifeq:{{#translation:}}|/en||&nbsp;'''(untranslated)'''}}</span><br>{{{text|}}}
| image=      {{{development-image|ROMIcon.png}}}
| image=      {{{development-image|ROMIcon.png}}}
| caption=    Read about development information and materials for this game.
| caption=    Read about development information and materials for this game. <!-- TO DO-->
| border=      #bfb
| border=      #66a
| background=  #efe
| background=  #ddf
| iwidth    =  {{{width|32}}}
| iwidth    =  {{{width|32}}}
| pic-align =  center
| pic-align =  center
Line 29: Line 29:
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/RAM map|RAM map]]'''</span><br>{{{text|}}}
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/RAM map|RAM map]]'''</span><br>{{{text|}}}
| image=      {{{proto-image|RAMIcon.png}}}
| image=      {{{proto-image|RAMIcon.png}}}
| caption=    Read about prototype versions of this game that have been released or dumped.
| caption=    Read about prototype versions of this game that have been released or dumped. <!-- TO DO-->
| border=      #bfb
| border=      #66a
| background=  #efe
| background=  #ddf
| iwidth    =  {{{width|32}}}
| iwidth    =  {{{width|32}}}
| pic-align =  center
| pic-align =  center
Line 42: Line 42:
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{BASEPAGENAME}}/RAM map|RAM map]]'''{{#ifeq:{{#translation:}}|/en||&nbsp;'''(untranslated)'''}}</span><br>{{{text|}}}
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{BASEPAGENAME}}/RAM map|RAM map]]'''{{#ifeq:{{#translation:}}|/en||&nbsp;'''(untranslated)'''}}</span><br>{{{text|}}}
| image=      {{{proto-image|RAMIcon.png}}}
| image=      {{{proto-image|RAMIcon.png}}}
| caption=    Read about prototype versions of this game that have been released or dumped.
| caption=    Read about prototype versions of this game that have been released or dumped. <!-- TO DO-->
| border=      #bfb
| border=      #66a
| background=  #efe
| background=  #ddf
| iwidth    =  {{{width|32}}}
| iwidth    =  {{{width|32}}}
| pic-align =  center
| pic-align =  center
Line 55: Line 55:
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/TBL|Text table]]'''</span><br>{{{text|}}}
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/TBL|Text table]]'''</span><br>{{{text|}}}
| image=      {{{prerelease-image|TextIcon.png}}}
| image=      {{{prerelease-image|TextIcon.png}}}
| caption=    Read about prerelease information and/or media for this game.
| caption=    Read about prerelease information and/or media for this game. <!-- TO DO-->
| border=      #bfb
| border=      #66a
| background=  #efe
| background=  #ddf
| iwidth    =  {{{width|32}}}
| iwidth    =  {{{width|32}}}
| pic-align =  center
| pic-align =  center
Line 68: Line 68:
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{BASEPAGENAME}}/TBL|Text table]]'''{{#ifeq:{{#translation:}}|/en||&nbsp;'''(untranslated)'''}}</span><br>{{{text|}}}
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{BASEPAGENAME}}/TBL|Text table]]'''{{#ifeq:{{#translation:}}|/en||&nbsp;'''(untranslated)'''}}</span><br>{{{text|}}}
| image=      {{{prerelease-image|TextIcon.png}}}
| image=      {{{prerelease-image|TextIcon.png}}}
| caption=    Read about prerelease information and/or media for this game.
| caption=    Read about prerelease information and/or media for this game. <!-- TO DO-->
| border=      #bfb
| border=      #66a
| background=  #efe
| background=  #ddf
| iwidth    =  {{{width|32}}}
| iwidth    =  {{{width|32}}}
| pic-align =  center
| pic-align =  center
Line 81: Line 81:
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/Notes|Notes]]'''</span><br>{{{text|}}}
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/Notes|Notes]]'''</span><br>{{{text|}}}
| image=      {{{notes-image|NotesIcon.png}}}
| image=      {{{notes-image|NotesIcon.png}}}
| caption=    Miscellaneous tidbits that are interesting enough to point out here.
| caption=    Miscellaneous tidbits that are interesting enough to point out here. <!-- TO DO-->
| border=      #bfb
| border=      #66a
| background=  #efe
| background=  #ddf
| iwidth    =  {{{width|32}}}
| iwidth    =  {{{width|32}}}
| pic-align =  center
| pic-align =  center
Line 94: Line 94:
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{BASEPAGENAME}}/Notes|Notes]]'''{{#ifeq:{{#translation:}}|/en||&nbsp;'''(untranslated)'''}}</span><br>{{{text|}}}
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{BASEPAGENAME}}/Notes|Notes]]'''{{#ifeq:{{#translation:}}|/en||&nbsp;'''(untranslated)'''}}</span><br>{{{text|}}}
| image=      {{{notes-image|NotesIcon.png}}}
| image=      {{{notes-image|NotesIcon.png}}}
| caption=    Miscellaneous tidbits that are interesting enough to point out here.
| caption=    Miscellaneous tidbits that are interesting enough to point out here. <!-- TO DO-->
| border=      #bfb
| border=      #66a
| background=  #efe
| background=  #ddf
| iwidth    =  {{{width|32}}}
| iwidth    =  {{{width|32}}}
| pic-align =  center
| pic-align =  center
Line 107: Line 107:
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/Tutorials|Tutorials]]'''</span><br>{{{text|}}}
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{FULLPAGENAME}}/Tutorials|Tutorials]]'''</span><br>{{{text|}}}
| image=      {{{data-image|TutorialsIcon.png}}}
| image=      {{{data-image|TutorialsIcon.png}}}
| caption=    Notes on the game's internal data.
| caption=    Notes on the game's internal data. <!-- TO DO-->
| border=      #bfb
| border=      #66a
| background=  #efe
| background=  #ddf
| iwidth    =  {{{width|32}}}
| iwidth    =  {{{width|32}}}
| pic-align =  center
| pic-align =  center
Line 120: Line 120:
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{BASEPAGENAME}}/Tutorials|Tutorials]]'''{{#ifeq:{{#translation:}}|/en||&nbsp;'''(untranslated)'''}}</span><br>{{{text|}}}
| text=        <span style='font-size: 150%; line-height: 150%'>'''[[{{BASEPAGENAME}}/Tutorials|Tutorials]]'''{{#ifeq:{{#translation:}}|/en||&nbsp;'''(untranslated)'''}}</span><br>{{{text|}}}
| image=      {{{data-image|TutorialsIcon.png}}}
| image=      {{{data-image|TutorialsIcon.png}}}
| caption=    Notes on the game's internal data.
| caption=    Notes on the game's internal data. <!-- TO DO-->
| border=      #bfb
| border=      #66a
| background=  #efe
| background=  #ddf
| iwidth    =  {{{width|32}}}
| iwidth    =  {{{width|32}}}
| pic-align =  center
| pic-align =  center
Line 129: Line 129:
|}}
|}}
}}}}<!--
}}}}<!--
-->{{#ifeq: {{NAMESPACE}} | Template | | {{#ifeq: {{NAMESPACE}} | User | | {{#ifeq:{{#translation:}}||
-->{{#ifeq: {{NAMESPACE}} | Template | | {{#ifeq: {{NAMESPACE}} | User | | <!--{{#ifeq:{{#translation:}}||-->
{{#ifexist: {{FULLPAGENAME}}/ROM map | | {{#ifexist: {{FULLPAGENAME}}/RAM map | | {{#ifexist: {{FULLPAGENAME}}/TBL | | {{#ifexist: {{FULLPAGENAME}}/Notes | | {{#ifexist: {{FULLPAGENAME}}/Tutorials | | [[Category:Namespace subpages template used on pages with no namespace subpages]]}}}}}}}}}}}}}}
{{#ifexist: {{FULLPAGENAME}}/ROM map | | {{#ifexist: {{FULLPAGENAME}}/RAM map | | {{#ifexist: {{FULLPAGENAME}}/TBL | | {{#ifexist: {{FULLPAGENAME}}/Notes | | {{#ifexist: {{FULLPAGENAME}}/Tutorials | | [[Category:Namespace subpages template used on pages with no namespace subpages]]''No standard subpages yet!''}}}}}}}}}}<!--}}-->}}
|
|
{{#ifexist: {{BASEPAGENAME}}/ROM map | | {{#ifexist: {{BASEPAGENAME}}/RAM map | | {{#ifexist: {{BASEPAGENAME}}/TBL | | {{#ifexist: {{BASEPAGENAME}}/Notes | | {{#ifexist: {{BASEPAGENAME}}/Tutorials | | [[Category:Namespace subpages template used on pages with no namespace subpages]]}}}}}}}}}}}}<noinclude>Generates subpage links depending on whether a namespace for them exists or not.
{{#ifexist: {{BASEPAGENAME}}/ROM map | | {{#ifexist: {{BASEPAGENAME}}/RAM map | | {{#ifexist: {{BASEPAGENAME}}/TBL | | {{#ifexist: {{BASEPAGENAME}}/Notes | | {{#ifexist: {{BASEPAGENAME}}/Tutorials | | [[Category:Namespace subpages template used on pages with no namespace subpages]]''No standard subpages yet!''}}}}}}}}}}}}<noinclude>Generates subpage links depending on whether a namespace for them exists or not.


==Usage==
==Usage==

Latest revision as of 17:08, 28 January 2024

Generates subpage links depending on whether a namespace for them exists or not.

Usage

It's meant to be used on all the wiki pages that have namespace variants, to make them more visible.

For a page named <game name> that has at least one namespace variant like <game name>/TBL, <game name>/Notes and so on, put this template on the main <game name> like if it was a subpage (example).

Supported Namespaces

Parameters

  • width: Changes the images' width. Default value is 32.
  • <namespace>-image: Changes the respective namespace's image (e.g. the proto-image one changes the one for the Proto namespace). It's not meant to be used in normal circumstances.

Translated Pages

If put on a translated page, will link their respective translated versions if exist. Otherwise, when the respective translated versions don't exist, will put a link to the main untranslated namespace page alongside a (untranslated) suffix.

Cleanup

In case this template is used on pages with no namespace variants, they will be automatically categorized inside a cleanup category. It's not enforced on pages inside people's user spaces.