Actions

Template

Difference between revisions of "Omni"

From NEC Retro

m (Text replacement - "Category:NEC Retro templates" to "Category:Templates")
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:collapse|{{{1}}}}}{| class="bottomtemplate mw-collapsible {{#ifeq: {{#var: collapse}}|collapse|mw-collapsed| }}" align="center"
+
<includeonly>{{#vardefine:collapse|{{{1}}}}}{| class="bottomtemplate mw-collapsible {{#ifeq: {{#var: collapse}}|collapse|mw-collapsed| }}" align="center" style="width:100%;"
 
! class="bottomtemphead" align="center" colspan="2"| ''[[{{#if:{{{title|}}}|{{{title|}}}|{{#replace:{{{name}}}|!!|<nowiki>!!</nowiki>}}}}]]''
 
! class="bottomtemphead" align="center" colspan="2"| ''[[{{#if:{{{title|}}}|{{{title|}}}|{{#replace:{{{name}}}|!!|<nowiki>!!</nowiki>}}}}]]''
 
|-
 
|-
 
| class="bottomtempalt" width="120" valign="top" |
 
| class="bottomtempalt" width="120" valign="top" |
{{#vardefine:titlescreen|{{#dpl:|titlematch={{{name|}}}|noresultsheader=\n|include={{{{type|}}}Bob}:bobscreen|mode=userformat|skipthispage=no|secseparators=,,}}}}{{#vardefine:noresize|{{#dpl:|titlematch={{{name|}}}|noresultsheader=\n|include={{{{type|}}}Bob}:noresize|mode=userformat|skipthispage=no|secseparators=,,}}}}
+
{{#vardefine:titlescreen|{{#dpl:|titlematch={{{name|}}}|noresultsheader=\n|include={{{{type|}}}Bob}:bobscreen|mode=userformat|skipthispage=no|secseparators=,,}}}}{{#vardefine:forcewidescreen|{{#dpl:|titlematch={{{name|}}}|noresultsheader=\n|include={{{{type|}}}Bob}:forcewidescreen|mode=userformat|skipthispage=no|secseparators=,,}}}}{{#vardefine:noresize|{{#dpl:|titlematch={{{name|}}}|noresultsheader=\n|include={{{{type|}}}Bob}:noresize|mode=userformat|skipthispage=no|secseparators=,,}}}}
{{#if: {{#var:titlescreen}} | {{bobscreen|{{#var:titlescreen}}|width=120|noresize={{#var:noresize}}}} | [[File:Notavailable.svg|120px]] }}
+
{{#if: {{#var:titlescreen}} | {{bobscreen|{{#var:titlescreen}}|width=120|forcewidescreen={{#var:forcewidescreen}}|noresize={{#var:noresize}}|link={{{name|}}}}} | [[File:Notavailable.svg|120px|link={{{name|}}}]] }}
 
| valign="top"|
 
| valign="top"|
 
[[{{{name}}}|Main page]]{{
 
[[{{{name}}}|Main page]]{{
#ifeq: {{{comparisonspage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Comparisons|Comparisons]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{comparisonspage|}}}|subpage=Comparisons}}{{
#ifeq: {{{mapspage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Maps|Maps]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{mapspage|}}}|subpage=Maps}}{{
#ifeq: {{{achievementspage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Achievements|Achievements]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{achievementspage|}}}|subpage=Achievements}}{{
#ifeq: {{{dlcpage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Downloadable content|Downloadable content]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{dlcpage|}}}|subpage=Downloadable content}}{{
#ifeq: {{{historypage}}} | yes |&nbsp;{{!}} [[{{{name}}}/History|History]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{historypage|}}}|subpage=History}}{{
#ifeq: {{{changelogpage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Changelog|Changelog]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{changelogpage|}}}|subpage=Changelog}}{{
#ifeq: {{{creditspage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Credits|Credits]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{creditspage|}}}|subpage=Production credits|subpagename=Credits}}{{
#ifeq: {{{hiddencontentpage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Hidden content|Hidden content]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{passwordspage|}}}|subpage=Passwords}}{{
#ifeq: {{{bugspage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Bugs|Bugs]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{hiddencontentpage|}}}|subpage=Hidden content}}{{
#ifeq: {{{developmentpage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Development|Development]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{bugspage|}}}|subpage=Bugs}}{{
#ifeq: {{{magazinepage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Magazine articles|Magazine articles]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{developmentpage|}}}|subpage=Development}}{{
#ifeq: {{{videopage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Video coverage|Video coverage]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{magazinepage|}}}|subpage=Magazine articles}}{{
#ifeq: {{{receptionpage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Reception|Reception]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{videopage|}}}|subpage=Video coverage}}{{
#ifeq: {{{promopage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Promotional material|Promotional material]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{receptionpage|}}}|subpage=Reception}}{{
#ifeq: {{{merchandisepage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Merchandise|Merchandise]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{promopage|}}}|subpage=Promotional material}}{{
#ifeq: {{{regioncodingpage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Region coding|Region coding]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{merchandisepage|}}}|subpage=Merchandise}}{{
#ifeq: {{{techpage}}} | yes |&nbsp;{{!}} [[{{{name}}}/Technical information|Technical information]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{compatibilitypage|}}}|subpage=Compatibility}}{{
#if: {{{extrasubpage1|}}}|<br/>[[{{{name}}}/{{{extrasubpage1|}}}|{{{extrasubpage1|}}}]]{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{techpage|}}}|subpage=Technical information}}{{
#if: {{{extrasubpage2|}}}|&nbsp;{{!}} [[{{{name}}}/{{{extrasubpage2|}}}|{{{extrasubpage2|}}}]]|}}{{
+
#if: {{{extrasubpage1|}}}|<br/>{{
#if: {{{extrasubpage3|}}}|&nbsp;{{!}} [[{{{name}}}/{{{extrasubpage3|}}}|{{{extrasubpage3|}}}]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{extrasubpage1|}}}|subpage={{{extrasubpage1|}}}|nopipe=true}}{{
#if: {{{extrasubpage4|}}}|&nbsp;{{!}} [[{{{name}}}/{{{extrasubpage4|}}}|{{{extrasubpage4|}}}]]|}}
+
OmniSubPageCheck|name={{{name|}}}|override={{{extrasubpage2|}}}|subpage={{{extrasubpage2|}}}}}{{
 +
OmniSubPageCheck|name={{{name|}}}|override={{{extrasubpage3|}}}|subpage={{{extrasubpage3|}}}}}{{
 +
OmniSubPageCheck|name={{{name|}}}|override={{{extrasubpage4|}}}|subpage={{{extrasubpage4|}}}}}
 
|}}
 
|}}
  
Line 35: Line 37:
 
#if:{{{videos|}}}|<br/>'''Videos:''' {{{videos}}}|}}|<br/>{{OmniMedia|{{{name}}}}}}}{{
 
#if:{{{videos|}}}|<br/>'''Videos:''' {{{videos}}}|}}|<br/>{{OmniMedia|{{{name}}}}}}}{{
 
#if:{{{prereleases|}}}|<br/>'''Prereleases:''' {{{prereleases}}}|}}
 
#if:{{{prereleases|}}}|<br/>'''Prereleases:''' {{{prereleases}}}|}}
|}{{clearvar|titlescreen}}{{#if:{{NAMESPACE}}|[[Category:Navigational templates (single game)]]|[[Category:{{{name}}}]]}}</includeonly><noinclude>
+
|}{{clearvar|titlescreen}}{{#if:{{NAMESPACE}}|[[Category:Navigational templates (single game)]]|[[Category:{{{name}}}]]}}</includeonly><noinclude>{{SegaRetroTemplate}}{{TODO}}
Omni template for navigating sub-pages. Most video games will need one. Title screens and categories are handled automatically.
+
Omni template for navigating sub-pages. Most video games will need one. Most of this template is automated when a "name" is provided, but by adding "xxxpage=yes" arguments, you can force a red link to appear.
  
 
<pre>
 
<pre>
 
{{Omni
 
{{Omni
 
| name=
 
| name=
| comparisonspage=
+
 
 +
| comparisonspage= <!--optional overrides -->
 
| mapspage=
 
| mapspage=
 
| achievementspage=
 
| achievementspage=
Line 48: Line 51:
 
| changelogpage=
 
| changelogpage=
 
| creditspage=
 
| creditspage=
 +
| passwordspage=
 
| hiddencontentpage=
 
| hiddencontentpage=
 
| bugspage=
 
| bugspage=
Line 56: Line 60:
 
| promopage=
 
| promopage=
 
| merchandisepage=
 
| merchandisepage=
| regioncodingpage=
+
| compatibilitypage=
 
| techpage=
 
| techpage=
  

Latest revision as of 13:06, 17 February 2024

Segaretro-round.svg This template has been manually copied from Sega Retro, specifically Template:Omni
Technical restrictions prevent this template from being shared across multiple wikis. In the medium term, any changes should be made to the Sega Retro variant first, before manually copying the contents back here. As this is not an automatic process, this version of the template might also be out of date.
48
This task is unfinished
This is a wiki task that requires more thought or peer review. An important issue that needs to be solved, which will appear at the top of NEC Retro:Todo until this message is removed.

Omni template for navigating sub-pages. Most video games will need one. Most of this template is automated when a "name" is provided, but by adding "xxxpage=yes" arguments, you can force a red link to appear.

{{Omni
| name=

| comparisonspage= <!--optional overrides -->
| mapspage=
| achievementspage=
| dlcpage=
| historypage=
| changelogpage=
| creditspage=
| passwordspage=
| hiddencontentpage=
| bugspage=
| developmentpage=
| magazinepage=
| videopage=
| receptionpage=
| promopage=
| merchandisepage=
| compatibilitypage=
| techpage=

| audiobooks=
| prereleases=
}}

Use | extrasubpageX= for any necessary non-standard sub-pages.

Example

{{Omni
| name=Bonk's Adventure
| comparisonspage=yes
| mapspage=yes
| hiddencontentpage=yes
| magazinepage=yes
| videopage=yes
| receptionpage=yes
| extrasubpage1=Smelly
| extrasubpage2=Bums
}}
Bonk's Adventure

BonksAdventure title.png

Main page | Comparisons | Maps | Hidden content | Bugs | Magazine articles | Video coverage | Reception | Promotional material
Smelly | Bums