Actions

Template

Difference between revisions of "Omni"

From NEC Retro

Line 3: Line 3:
 
|-
 
|-
 
| 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}}}} | [[File:Notavailable.svg|120px]] }}
 
| valign="top"|
 
| valign="top"|
 
[[{{{name}}}|Main page]]{{
 
[[{{{name}}}|Main page]]{{
#ifeq: {{{comparisonspage}}} | yes | {{!}} [[{{{name}}}/Comparisons|Comparisons]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{comparisonspage|}}}|subpage=Comparisons}}{{
#ifeq: {{{mapspage}}} | yes | {{!}} [[{{{name}}}/Maps|Maps]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{mapspage|}}}|subpage=Maps}}{{
#ifeq: {{{achievementspage}}} | yes | {{!}} [[{{{name}}}/Achievements|Achievements]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{achievementspage|}}}|subpage=Achievements}}{{
#ifeq: {{{dlcpage}}} | yes | {{!}} [[{{{name}}}/Downloadable content|Downloadable content]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{dlcpage|}}}|subpage=Downloadable content}}{{
#ifeq: {{{historypage}}} | yes | {{!}} [[{{{name}}}/History|History]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{historypage|}}}|subpage=History}}{{
#ifeq: {{{changelogpage}}} | yes | {{!}} [[{{{name}}}/Changelog|Changelog]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{changelogpage|}}}|subpage=Changelog}}{{
#ifeq: {{{creditspage}}} | yes | {{!}} [[{{{name}}}/Credits|Credits]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{creditspage|}}}|subpage=Production credits|subpagename=Credits}}{{
#ifeq: {{{hiddencontentpage}}} | yes | {{!}} [[{{{name}}}/Hidden content|Hidden content]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{hiddencontentpage|}}}|subpage=Hidden content}}{{
#ifeq: {{{bugspage}}} | yes | {{!}} [[{{{name}}}/Bugs|Bugs]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{bugspage|}}}|subpage=Bugs}}{{
#ifeq: {{{developmentpage}}} | yes | {{!}} [[{{{name}}}/Development|Development]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{developmentpage|}}}|subpage=Development}}{{
#ifeq: {{{magazinepage}}} | yes | {{!}} [[{{{name}}}/Magazine articles|Magazine articles]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{magazinepage|}}}|subpage=Magazine articles}}{{
#ifeq: {{{videopage}}} | yes | {{!}} [[{{{name}}}/Video coverage|Video coverage]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{videopage|}}}|subpage=Video coverage}}{{
#ifeq: {{{receptionpage}}} | yes | {{!}} [[{{{name}}}/Reception|Reception]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{receptionpage|}}}|subpage=Reception}}{{
#ifeq: {{{promopage}}} | yes | {{!}} [[{{{name}}}/Promotional material|Promotional material]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{promopage|}}}|subpage=Promotional material}}{{
#ifeq: {{{merchandisepage}}} | yes | {{!}} [[{{{name}}}/Merchandise|Merchandise]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{merchandisepage|}}}|subpage=Merchandise}}{{
#ifeq: {{{compatibilitypage}}} | yes | {{!}} [[{{{name}}}/Compatibility|Compatibility]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{regioncodingpage|}}}|subpage=Region coding}}{{
#ifeq: {{{techpage}}} | yes | {{!}} [[{{{name}}}/Technical information|Technical information]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{techpage|}}}|subpage=Technical information}}{{
#if: {{{extrasubpage1|}}}|<br/>[[{{{name}}}/{{{extrasubpage1|}}}|{{{extrasubpage1|}}}]]{{
+
#if: {{{extrasubpage1|}}}|<br/>{{
#if: {{{extrasubpage2|}}}|&nbsp;{{!}} [[{{{name}}}/{{{extrasubpage2|}}}|{{{extrasubpage2|}}}]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{extrasubpage1|}}}|subpage={{{extrasubpage1|}}}|nopipe=true}}{{
#if: {{{extrasubpage3|}}}|&nbsp;{{!}} [[{{{name}}}/{{{extrasubpage3|}}}|{{{extrasubpage3|}}}]]|}}{{
+
OmniSubPageCheck|name={{{name|}}}|override={{{extrasubpage2|}}}|subpage={{{extrasubpage2|}}}}}{{
#if: {{{extrasubpage4|}}}|&nbsp;{{!}} [[{{{name}}}/{{{extrasubpage4|}}}|{{{extrasubpage4|}}}]]|}}
+
OmniSubPageCheck|name={{{name|}}}|override={{{extrasubpage3|}}}|subpage={{{extrasubpage3|}}}}}{{
 +
OmniSubPageCheck|name={{{name|}}}|override={{{extrasubpage4|}}}|subpage={{{extrasubpage4|}}}}}
 
|}}
 
|}}
  
Line 82: Line 83:
 
{{Omni
 
{{Omni
 
| name=Bonk's Adventure
 
| name=Bonk's Adventure
| comparisonspage=yes
 
| mapspage=yes
 
| hiddencontentpage=yes
 
| magazinepage=yes
 
| videopage=yes
 
| receptionpage=yes
 
 
| extrasubpage1=Smelly
 
| extrasubpage1=Smelly
 
| extrasubpage2=Bums
 
| extrasubpage2=Bums

Revision as of 19:39, 15 April 2023

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. Title screens and categories are handled automatically.

{{Omni
| name=
| comparisonspage=
| mapspage=
| achievementspage=
| dlcpage=
| historypage=
| changelogpage=
| creditspage=
| 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 | Hidden content | Bugs | Magazine articles | Promotional material
Smelly | Bums