Difference between revisions of "Template:Navbox/doc"

From FSDeveloper Wiki
Jump to: navigation, search
m
m
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{:Ambox-Wiki-Editors}}
 
{{:Ambox-Wiki-Editors}}
Navigation boxes, (navboxes), are a extremely flexible method of implementing linking, (internal & external).
+
Implementing navigation boxes, (navboxes).
  
 +
Navboxes are a extremely flexible method of implementing linking, (internal & external).
 +
<br>
 
Navboxes can be created for use on single pages, (i.e. inline), or across multiple pages (i.e. template).
 
Navboxes can be created for use on single pages, (i.e. inline), or across multiple pages (i.e. template).
  
Navboxes are template based.
+
Navboxes are generated using a simple predefined '''parameter = variable''' list structure.
 +
<br>
 +
Formatting and output requires no editing, as these are template based generation.
  
 
'''Apologies''' -  
 
'''Apologies''' -  
 +
<br>
 
This page is displayed as exceptionally wide due to the quoted code samples below.
 
This page is displayed as exceptionally wide due to the quoted code samples below.
 
Implementing navigation boxes.
 
  
 
== Example - Wikipedia ==
 
== Example - Wikipedia ==
Line 17: Line 20:
  
 
For examples of other navigational templates, please see - [http://en.wikipedia.org/wiki/Category:Navigational_templates Wikipedia - Navigational templates]
 
For examples of other navigational templates, please see - [http://en.wikipedia.org/wiki/Category:Navigational_templates Wikipedia - Navigational templates]
 
  
 
== Example - FSDeveloper ==
 
== Example - FSDeveloper ==
Line 23: Line 25:
  
 
It's a work in progress, and some intended fuctionality is not presently visible.
 
It's a work in progress, and some intended fuctionality is not presently visible.
 +
<br>
 +
'''N.B.'''
 +
Many of the links are to pages yet to be created.
 
{{Template:Navbox-Missions-ObjRef}}
 
{{Template:Navbox-Missions-ObjRef}}
  
 +
== For Editors & Admins ==
  
== Calling ==
+
=== Calling ===
Method of calling the Missions-ObjRef navbox.
+
'''Relevant to both Editors & Admins.'''
 +
 
 +
Method of calling the Missions-ObjRef navbox, (only use the top line ATM).
 
<pre>
 
<pre>
 
{{Template:Navbox-Missions-ObjRef}}
 
{{Template:Navbox-Missions-ObjRef}}
Line 33: Line 41:
 
<!--  
 
<!--  
 
These versions are currently non-working.
 
These versions are currently non-working.
 +
Maybe due to being intended for calling from within a template, (rather than inline).
 +
 
{{Tnavbar|Template:Navbox-Missions-ObjRef|mini=1 |nodiv=1 |fontcolor=green }}
 
{{Tnavbar|Template:Navbox-Missions-ObjRef|mini=1 |nodiv=1 |fontcolor=green }}
 
{{tnavbar|Template:Navbox-Missions-ObjRef}}
 
{{tnavbar|Template:Navbox-Missions-ObjRef}}
Line 38: Line 48:
 
</pre>
 
</pre>
  
 +
=== Template:Navbox-Missions-ObjRef ===
 +
'''Relevant to both Editors & Admins.'''
  
 +
This is the content that populates the Missions-ObjRef version navbox.
 +
<br>
 +
Capable of accepting up to 20 groups & lists.
 +
<br>
 +
List items are unlimited.
 +
<br>
 +
The Missions-ObjRef version only uses 9  groups & lists.
  
 +
Populated using a simple predefined '''parameter = variable''' list structure.
  
 
+
For an explanation of the fields see - [http://en.wikipedia.org/wiki/Template:Navbox Wikipedia - Template:Navbox]
== Template:Navbox-Missions-ObjRef ==
 
  
 
<pre>
 
<pre>
Line 56: Line 75:
 
| title  = [[Mission Object Reference]] for [[:Category:Missions]]
 
| title  = [[Mission Object Reference]] for [[:Category:Missions]]
 
| state  = {{{state<includeonly>|autocollapse</includeonly>}}}
 
| state  = {{{state<includeonly>|autocollapse</includeonly>}}}
 +
 +
| navbar =
 +
 +
| titlestyle = background:#CCCCFF;
 +
| bodystyle =
 +
 +
| abovestyle = background:#ddddff;
 +
| belowstyle = background:#ddddff;
 +
 +
| groupstyle =
 
| liststyle = line-height:1.5em;
 
| liststyle = line-height:1.5em;
  
| above  = Categoristed list of references to all the properties that apply to each of the Mission Objects.
+
| oddstyle =
 +
| evenstyle =
 +
 
 +
| above  = Categorised list of references to all the properties that apply to each of the Mission Objects.
 
| below  = {{:Transclusion:Click links-Warn same window}}
 
| below  = {{:Transclusion:Click links-Warn same window}}
  
Line 91: Line 123:
  
  
== Template:Navbox ==
+
 
Navbox
+
 
 +
----
 +
 
 +
== For Admins only ==
 +
 
 +
=== Template:Navbox ===
 +
'''Relevant to Admins only !'''
 +
 
 +
A generic structuring template, matching data to fields, which in turn calls the Template:Navbox/core.
 +
<br>
 +
Accepts up to 20 groups & lists.
 +
 
 +
This is the code as implemented at both FSDeveloper and Wikipedia.
 +
 
 +
'''Issues - '''
 +
* NONE - This template's code is working correctly, and requires no changes.
 
<pre>
 
<pre>
 
<!--
 
<!--
Line 102: Line 149:
 
Code herein is per wikipedia.
 
Code herein is per wikipedia.
 
No changes required.
 
No changes required.
 +
 +
EDITs -
 +
Control of all fixed background colours is now relocated to calling file.
 +
  
 
-->{{Navbox/core
 
-->{{Navbox/core
Line 119: Line 170:
 
|bodystyle = {{{style|}}}{{{bodystyle|}}}
 
|bodystyle = {{{style|}}}{{{bodystyle|}}}
 
|titlestyle = {{{titlestyle|}}}
 
|titlestyle = {{{titlestyle|}}}
|abovestyle = background:#ddddff;{{{abovestyle|}}}
+
|abovestyle = {{{abovestyle|}}}
|belowstyle = background:#ddddff;{{{belowstyle|}}}
+
|belowstyle = {{{belowstyle|}}}
  
 
|above = {{{above|}}}
 
|above = {{{above|}}}
 
|below = {{{below|}}}
 
|below = {{{below|}}}
  
|gs = white-space:nowrap;background:#ddddff;text-align:right;{{{groupstyle|}}}
+
|gs = white-space:nowrap;text-align:right;{{{groupstyle|}}}
 
|os = width:100%;font-size:95%;{{{liststyle|}}}{{{oddstyle|}}}
 
|os = width:100%;font-size:95%;{{{liststyle|}}}{{{oddstyle|}}}
|es = width:100%;font-size:95%;background:#f7f7f7;{{{liststyle|}}}{{{evenstyle|}}}
+
|es = width:100%;font-size:95%;{{{liststyle|}}}{{{evenstyle|}}}
  
 
|g1 = {{{group1|}}}
 
|g1 = {{{group1|}}}
Line 176: Line 227:
 
</pre>
 
</pre>
  
 +
=== Template:Navbox/core - FSDeveloper ===
 +
'''Relevant to Admins only !'''
  
 +
A generic formatting template, conditionally generating the populated fields, and returning the formatted output.
  
== Template:Navbox/core - FSDeveloper ==
 
 
This is the code as currently implemented at FSDeveloper.
 
This is the code as currently implemented at FSDeveloper.
  
Currently lacks the collabsible div as implemented at wikipedia.
+
'''Issues -'''
 +
* Currently lacks the collabsible div as implemented at wikipedia.
 +
* Fails to inhibit the extra uncalled lines.
 +
* Styles are not being applied.
 +
It's possible that these are due to CSS or javascript implementations on this site.
 
<pre>
 
<pre>
 
<!--
 
<!--
Line 200: Line 257:
  
 
---Titlebar---
 
---Titlebar---
--><tr><th colspan="2" style="{{{ts|}}}"><span style="{{{ts|}}}">{{{title}}}</span></th></tr><!--
+
--><tr><th colspan="2" style="{{{titlestyle|}}}"><span style="{{{titlestyle|}}}">{{{title}}}</span></th></tr><!--
  
 
---Above seperator (optional)---
 
---Above seperator (optional)---
Line 243: Line 300:
 
</pre>
 
</pre>
  
 +
=== Template:Navbox/core - Wikipedia ===
 +
'''Relevant to Admins only !'''
  
 +
A generic formatting template, conditionally generating the populated fields, and returning the formatted output.
 +
<br>
 +
Accepts up to 20 groups & lists.
  
== Template:Navbox/core - Wikipedia ==
 
 
This is the code as implemented at wikipedia.
 
This is the code as implemented at wikipedia.
  
Implementing this code at FSDeveloper causes the html code to be displayed, rather than the intended content.
+
'''Issues -'''
 +
* Causes the html code to be displayed, rather than the intended content.
 +
* Output displays content/html above/outside the table.
 +
* Blah
 +
 
 
<pre>
 
<pre>
 
<table class="navbox {{#ifeq:{{{state|}}}|plain||collapsible {{{state|autocollapse}}}}} nowraplinks" style="margin:auto; {{#ifeq:{{{nogroups|}}}|true|{{#if:{{{l1|}}}|{{#if:{{{l2|}}}|background:white;}}}}|background:white;}} {{{bodystyle|}}}"><!--
 
<table class="navbox {{#ifeq:{{{state|}}}|plain||collapsible {{{state|autocollapse}}}}} nowraplinks" style="margin:auto; {{#ifeq:{{{nogroups|}}}|true|{{#if:{{{l1|}}}|{{#if:{{{l2|}}}|background:white;}}}}|background:white;}} {{{bodystyle|}}}"><!--

Latest revision as of 06:46, 18 May 2008

Implementing navigation boxes, (navboxes).

Navboxes are a extremely flexible method of implementing linking, (internal & external).
Navboxes can be created for use on single pages, (i.e. inline), or across multiple pages (i.e. template).

Navboxes are generated using a simple predefined parameter = variable list structure.
Formatting and output requires no editing, as these are template based generation.

Apologies -
This page is displayed as exceptionally wide due to the quoted code samples below.

Example - Wikipedia

See the navbox in a useage context, at page footer - Wikipedia - Technology

For the navbox itself see - Wikipedia - Template:Technology

For examples of other navigational templates, please see - Wikipedia - Navigational templates

Example - FSDeveloper

This is the Missions-ObjRef version intended to be utilised across all pages in the Missions Object Reference subcategory.

It's a work in progress, and some intended fuctionality is not presently visible.
N.B. Many of the links are to pages yet to be created.

For Editors & Admins

Calling

Relevant to both Editors & Admins.

Method of calling the Missions-ObjRef navbox, (only use the top line ATM).

{{Template:Navbox-Missions-ObjRef}}

<!-- 
These versions are currently non-working.
Maybe due to being intended for calling from within a template, (rather than inline).

{{Tnavbar|Template:Navbox-Missions-ObjRef|mini=1 |nodiv=1 |fontcolor=green }}
{{tnavbar|Template:Navbox-Missions-ObjRef}}
 -->

Template:Navbox-Missions-ObjRef

Relevant to both Editors & Admins.

This is the content that populates the Missions-ObjRef version navbox.
Capable of accepting up to 20 groups & lists.
List items are unlimited.
The Missions-ObjRef version only uses 9 groups & lists.

Populated using a simple predefined parameter = variable list structure.

For an explanation of the fields see - Wikipedia - Template:Navbox

<!-- Paste the following line to required location -

{{Template:Navbox-Missions-ObjRef}}

ToDo


 -->{{Navbox
| name   = Missions
| title  = [[Mission Object Reference]] for [[:Category:Missions]]
| state  = {{{state<includeonly>|autocollapse</includeonly>}}}

| navbar = 

| titlestyle = background:#CCCCFF;
| bodystyle = 

| abovestyle = background:#ddddff;
| belowstyle = background:#ddddff;

| groupstyle =
| liststyle = line-height:1.5em;

| oddstyle = 
| evenstyle = 

| above  = Categorised list of references to all the properties that apply to each of the Mission Objects.
| below  = {{:Transclusion:Click links-Warn same window}}

| group1 = [[Actions]]
|  list1 = [[Generic Action Properties]]{{·}} [[Activate Waypoints Action]]{{·}} [[Adjust Payload Action]]{{·}} [[Attach Droppable Payload Action]]{{·}} [[Attach Effect Action]]{{·}} [[Change Object Type Action]]{{·}} [[Count Action]]{{·}} [[Custom Action]]{{·}} [[Dialog Action]]{{·}} [[Disqualify Player Action]]{{·}} [[Failure Action]]{{·}} [[Goal Resolution Action]]{{·}} [[Grant Reward Action]]{{·}} [[Object Activation Action]]{{·}} [[One Shot Sound Action]]{{·}} [[Play Animation Action]]{{·}} [[Play Flight Recording Action]]{{·}} [[Play List Action]]{{·}} [[Point Of Interest Activation Action]]{{·}} [[Random Action]]{{·}} [[Race Course Start Action]]{{·}} [[Race Course Activate Action]]{{·}} [[Refill Action]]{{·}} [[ResetTimer Action]]{{·}} [[Rumble Action]]{{·}} [[Spawn Action]]{{·}} [[Time Penalty Action]]{{·}} [[Timer Adjust Action]]

| group2 = [[AI Objects]]
|  list2 = [[AircraftAI Object]]{{·}} [[TakeoffAI Object]]{{·}} [[LandingAI Object]]{{·}} [[TaxiAI Object]]{{·}} [[GroundVehicleAI Object]]{{·}} [[Waypoint List Object]]{{·}} [[Waypoint Object]]

| group3 = [[Area Definition Object]]
|  list3 = [[RectangleArea]]

| group4 = [[Mission Object]]
|  list4 = [[Allowable Container List]]{{·}} [[Camera]]{{·}} [[Attached World Position]]{{·}} [[Attached World Object]]{{·}} [[Condition Race Point]]{{·}} [[Gate Race Point]]{{·}} [[Living World Exclusion]]{{·}} [[Picture In Picture View Controller]]{{·}} [[Player]]{{·}} [[Point Of Interest]]{{·}} [[Pylon Race Point]]{{·}} [[Race Course ]]{{·}} [[Race Info]]{{·}} [[Realism Overrides]]{{·}} [[Ridge Lift]]{{·}} [[Scenario Metadata]]{{·}} [[Thermal]]{{·}} [[Volume Race Point]]

| group5 = [[Triggers]]
|  list5 = [[Generic Trigger Properties]]{{·}} [[Airport Landing Trigger]]{{·}} [[Area Landing Trigger]]s{{·}} [[Collision Trigger]]{{·}} [[Counter Trigger]]{{·}} [[Last Lap Trigger]]{{·}} [[Menu Prompt Trigger]]{{·}} [[Parking Trigger]]{{·}} [[Property Trigger]]{{·}} [[Proximity Trigger]]{{·}} [[Race End Trigger]]{{·}} [[Timer Trigger]]

| group6 = [[Other Object Types]]
|  list6 = [[Group Object]]{{·}} [[Scenery Objects]]{{·}} [[Mobile Scenery Objects]]{{·}} [[Spawn List]]{{·}} [[Goal Object]]{{·}} [[Reward Object]]{{·}} [[Disabled Traffic Airport Object]]

| group7 = [[Coding Related]]
|  list7 = [[Categories]]{{·}} [[Mission Coding]]{{·}} [[Compiling]]{{·}} [[Debugging missions]]{{·}} [[Object Placement Tool]]

| group8 = [[Mission - General]]
|  list8 = [[Artwork]]{{·}} [[FSX Acceleration]]{{·}} [[SDK Installation (FSX)]]{{·}} [[Sounds]]{{·}} [[Rewards]]

| group9 = [[:Category:Missions]]
|  list9 = [[Mission Creation]]{{·}} [[FSX Default Missions]]{{·}} [[3rd Party Missions]]{{·}} [[Mission Object Reference]]
}}<noinclude></noinclude>




For Admins only

Template:Navbox

Relevant to Admins only !

A generic structuring template, matching data to fields, which in turn calls the Template:Navbox/core.
Accepts up to 20 groups & lists.

This is the code as implemented at both FSDeveloper and Wikipedia.

Issues -

  • NONE - This template's code is working correctly, and requires no changes.
<!--

Please do not edit without discussion first as this is a VERY complex template.

N.B.
This template is correct and fully working.
Code herein is per wikipedia.
No changes required.

EDITs -
Control of all fixed background colours is now relocated to calling file.


-->{{Navbox/core
|name = {{{name<noinclude>|{{FULLPAGENAME}}</noinclude>}}}
|navbar = {{{navbar|}}}
|state = {{{state|autocollapse}}}
|title = {{{title|}}}
|image = {{{image|}}}
|imageleft = {{{imageleft|}}}

|imagespan = {{#expr:{{#if:{{{body|}}}{{{list1|}}}|1|0}} +{{#if:{{{list2|}}}|1|0}} +{{#if:{{{list3|}}}|1|0}} +{{#if:{{{list4|}}}|1|0}} +{{#if:{{{list5|}}}|1|0}} +{{#if:{{{list6|}}}|1|0}} +{{#if:{{{list7|}}}|1|0}} +{{#if:{{{list8|}}}|1|0}} +{{#if:{{{list9|}}}|1|0}} +{{#if:{{{list10|}}}|1|0}} +{{#if:{{{list11|}}}|1|0}} +{{#if:{{{list12|}}}|1|0}} +{{#if:{{{list13|}}}|1|0}} +{{#if:{{{list14|}}}|1|0}} +{{#if:{{{list15|}}}|1|0}} +{{#if:{{{list16|}}}|1|0}} +{{#if:{{{list17|}}}|1|0}} +{{#if:{{{list18|}}}|1|0}} +{{#if:{{{list19|}}}|1|0}} +{{#if:{{{list20|}}}|1|0}}}}

|span = {{#if:{{{group1|}}}{{{group2|}}}{{{group3|}}}{{{group4|}}}{{{group5|}}}{{{group6|}}}{{{group7|}}}{{{group8|}}}{{{group9|}}}{{{group10|}}}{{{group11|}}}{{{group12|}}}{{{group13|}}}{{{group14|}}}{{{group15|}}}{{{group16|}}}{{{group17|}}}{{{group18|}}}{{{group19|}}}{{{group20|}}}{{{imageleft|}}}|{{#if:{{{image|}}}|3|2}}|{{#if:{{{image|}}}|2|1}}}}

|nogroups = {{#if:{{{group1|}}}{{{group2|}}}{{{group3|}}}{{{group4|}}}{{{group5|}}}{{{group6|}}}{{{group7|}}}{{{group8|}}}{{{group9|}}}{{{group10|}}}{{{group11|}}}{{{group12|}}}{{{group13|}}}{{{group14|}}}{{{group15|}}}{{{group16|}}}{{{group17|}}}{{{group18|}}}{{{group19|}}}{{{group20|}}}|false|true}}

|bodystyle = {{{style|}}}{{{bodystyle|}}}
|titlestyle = {{{titlestyle|}}}
|abovestyle = {{{abovestyle|}}}
|belowstyle = {{{belowstyle|}}}

|above = {{{above|}}}
|below = {{{below|}}}

|gs = white-space:nowrap;text-align:right;{{{groupstyle|}}}
|os = width:100%;font-size:95%;{{{liststyle|}}}{{{oddstyle|}}}
|es = width:100%;font-size:95%;{{{liststyle|}}}{{{evenstyle|}}}

|g1 = {{{group1|}}}
|g2 = {{{group2|}}}
|g3 = {{{group3|}}}
|g4 = {{{group4|}}}
|g5 = {{{group5|}}}
|g6 = {{{group6|}}}
|g7 = {{{group7|}}}
|g8 = {{{group8|}}}
|g9 = {{{group9|}}}
|g10 = {{{group10|}}}
|g11 = {{{group11|}}}
|g12 = {{{group12|}}}
|g13 = {{{group13|}}}
|g14 = {{{group14|}}}
|g15 = {{{group15|}}}
|g16 = {{{group16|}}}
|g17 = {{{group17|}}}
|g18 = {{{group18|}}}
|g19 = {{{group19|}}}
|g20 = {{{group20|}}}

|l1 = {{{body|}}}{{{list1|}}}{{{category|}}}
|l2 = {{{list2|}}}
|l3 = {{{list3|}}}
|l4 = {{{list4|}}}
|l5 = {{{list5|}}}
|l6 = {{{list6|}}}
|l7 = {{{list7|}}}
|l8 = {{{list8|}}}
|l9 = {{{list9|}}}
|l10 = {{{list10|}}}
|l11 = {{{list11|}}}
|l12 = {{{list12|}}}
|l13 = {{{list13|}}}
|l14 = {{{list14|}}}
|l15 = {{{list15|}}}
|l16 = {{{list16|}}}
|l17 = {{{list17|}}}
|l18 = {{{list18|}}}
|l19 = {{{list19|}}}
|l20 = {{{list20|}}}

}}<noinclude>
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Template:Navbox/core - FSDeveloper

Relevant to Admins only !

A generic formatting template, conditionally generating the populated fields, and returning the formatted output.

This is the code as currently implemented at FSDeveloper.

Issues -

  • Currently lacks the collabsible div as implemented at wikipedia.
  • Fails to inhibit the extra uncalled lines.
  • Styles are not being applied.

It's possible that these are due to CSS or javascript implementations on this site.

<!--

Please do not edit without discussion first as this is a VERY complex template.

N.B.
This template is non-standard. 
Couldn't get it to work correctly, so removed non-working calls
Also had to add extra {} pairs around #if:

ToDo
Fix the extra lines being displayed
even though they're not present in the calling parent.

--><div id="catlinks">
<table class="navbox {{#ifeq:{{{state|}}}|plain||collapsible {{{state|autocollapse}}}}} nowraplinks" style="margin:auto; {{#ifeq:{{{nogroups|}}}|true||background:white; }}{{#if:{{{l1|}}}|{{#if:{{{l2|}}}|background:white;}}}}{{{bodystyle|}}}" width="100%"><!--

---Titlebar---
--><tr><th colspan="2" style="{{{titlestyle|}}}"><span style="{{{titlestyle|}}}">{{{title}}}</span></th></tr><!--

---Above seperator (optional)---
-->{{{#if:{{{above|}}}|<tr><td colspan="2" style="{{{abovestyle|}}}">{{{above|}}}</td></tr>}}}<!--

---First group and image(s)---
-->{{{#if:{{{l1|}}}|<tr>{{{#if:{{{g1|}}}|<th style="{{{gs|}}}">{{{g1|}}}</th>}}}<td colspan="{{{#if:{{{g1|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g1|}}}|left|center}}};{{{os|}}}">{{{l1|}}}</td></tr>}}}<!--

---Remaining groups---
-->{{{#if:{{{l2|}}}|<tr>{{{#if:{{{g2|}}}|<th style="{{{gs|}}}">{{{g2|}}}</th>}}}<td colspan="{{{#if:{{{g2|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g2|}}}|left|center}}};{{{es|}}}">{{{l2|}}}</td></tr>}}}<!--

-->{{{#if:{{{l3|}}}|<tr>{{{#if:{{{g3|}}}|<th style="{{{gs|}}}">{{{g3|}}}</th>}}}<td colspan="{{{#if:{{{g3|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g3|}}}|left|center}}};{{{os|}}}">{{{l3|}}}</td></tr>}}}<!--

-->{{{#if:{{{l4|}}}|<tr>{{{#if:{{{g4|}}}|<th style="{{{gs|}}}">{{{g4|}}}</th>}}}<td colspan="{{{#if:{{{g4|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g4|}}}|left|center}}};{{{es|}}}">{{{l4|}}}</td></tr>}}}<!--

-->{{{#if:{{{l5|}}}|<tr>{{{#if:{{{g5|}}}|<th style="{{{gs|}}}">{{{g5|}}}</th>}}}<td colspan="{{{#if:{{{g5|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g5|}}}|left|center}}};{{{os|}}}">{{{l5|}}}</td></tr>}}}<!--

-->{{{#if:{{{l6|}}}|<tr>{{{#if:{{{g6|}}}|<th style="{{{gs|}}}">{{{g6|}}}</th>}}}<td colspan="{{{#if:{{{g6|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g6|}}}|left|center}}};{{{es|}}}">{{{l6|}}}</td></tr>}}}<!--

-->{{{#if:{{{l7|}}}|<tr>{{{#if:{{{g7|}}}|<th style="{{{gs|}}}">{{{g7|}}}</th>}}}<td colspan="{{{#if:{{{g7|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g7|}}}|left|center}}};{{{os|}}}">{{{l7|}}}</td></tr>}}}<!--

-->{{{#if:{{{l8|}}}|<tr>{{{#if:{{{g8|}}}|<th style="{{{gs|}}}">{{{g8|}}}</th>}}}<td colspan="{{{#if:{{{g8|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g8|}}}|left|center}}};{{{es|}}}">{{{l8|}}}</td></tr>}}}<!--

-->{{{#if:{{{l9|}}}|<tr>{{{#if:{{{g9|}}}|<th style="{{{gs|}}}">{{{g9|}}}</th>}}}<td colspan="{{{#if:{{{g9|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g9|}}}|left|center}}};{{{os|}}}">{{{l9|}}}</td></tr>}}}<!--

-->{{{#if:{{{l10|}}}|<tr>{{{#if:{{{g10|}}}|<th style="{{{gs|}}}">{{{g10|}}}</th>}}}<td colspan="{{{#if:{{{g10|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g10|}}}|left|center}}};{{{es|}}}">{{{l10|}}}</td></tr>}}}<!--

-->{{{#if:{{{l11|}}}|<tr>{{{#if:{{{g11|}}}|<th style="{{{gs|}}}">{{{g11|}}}</th>}}}<td colspan="{{{#if:{{{g11|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g11|}}}|left|center}}};{{{os|}}}">{{{l11|}}}</td></tr>}}}<!--

-->{{{#if:{{{l12|}}}|<tr>{{{#if:{{{g12|}}}|<th style="{{{gs|}}}">{{{g12|}}}</th>}}}<td colspan="{{{#if:{{{g12|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g12|}}}|left|center}}};{{{os|}}}">{{{l12|}}}</td></tr>}}}<!--

-->{{{#if:{{{l13|}}}|<tr>{{{#if:{{{g13|}}}|<th style="{{{gs|}}}">{{{g13|}}}</th>}}}<td colspan="{{{#if:{{{g13|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g13|}}}|left|center}}};{{{os|}}}">{{{l13|}}}</td></tr>}}}<!--

-->{{{#if:{{{l14|}}}|<tr>{{{#if:{{{g14|}}}|<th style="{{{gs|}}}">{{{g14|}}}</th>}}}<td colspan="{{{#if:{{{g14|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g14|}}}|left|center}}};{{{os|}}}">{{{l14|}}}</td></tr>}}}<!--

-->{{{#if:{{{l15|}}}|<tr>{{{#if:{{{g15|}}}|<th style="{{{gs|}}}">{{{g15|}}}</th>}}}<td colspan="{{{#if:{{{g15|}}}|1|{{{#ifeq:{{{nogroups|}}}|true|1|2}}}}}}" style="text-align:{{{#if:{{{g15|}}}|left|center}}};{{{os|}}}">{{{l15|}}}</td></tr>}}}<!--

---Below (optional)---
-->{{{#if:{{{below|}}}|<tr><td style="{{{belowstyle|}}}" colspan="2">{{{below|}}}</td></tr>}}}<!--

--></table></div>

Template:Navbox/core - Wikipedia

Relevant to Admins only !

A generic formatting template, conditionally generating the populated fields, and returning the formatted output.
Accepts up to 20 groups & lists.

This is the code as implemented at wikipedia.

Issues -

  • Causes the html code to be displayed, rather than the intended content.
  • Output displays content/html above/outside the table.
  • Blah
<table class="navbox {{#ifeq:{{{state|}}}|plain||collapsible {{{state|autocollapse}}}}} nowraplinks" style="margin:auto; {{#ifeq:{{{nogroups|}}}|true|{{#if:{{{l1|}}}|{{#if:{{{l2|}}}|background:white;}}}}|background:white;}} {{{bodystyle|}}}"><!--

---Titlebar---
--><tr><th colspan="{{{span|1}}}" style="text-align:center;width:100%;{{{titlestyle|}}}"><!--
-->{{#ifeq:{{{navbar|}}}|plain||<div style="float:left; width:6em; text-align:left;">{{Tnavbar| {{{name<noinclude>|Navbox</noinclude>}}}|fontstyle={{{titlestyle|}}};border:none;|mini=1}}</div>}}<span style="font-size:110%;">{{{title}}}</span></th></tr><!--

---Above (optional)---
-->{{#if:{{{above|}}}|<tr><td style="text-align:center;{{{abovestyle|}}}" colspan="{{{span|1}}}">{{{above|}}}</td></tr>}}<!--

---First group and image(s)---
-->{{#if:{{{l1|}}}|<tr><!--

-->{{#if:{{{imageleft|}}}|{{#ifeq:{{{nogroups|}}}|true|<td rowspan="{{{imagespan|}}}" style="vertical-align:middle; padding-right:7px; width:0%;">{{{imageleft}}}</td>}}}}<!--

-->{{#if:{{{g1|}}}|<th style="{{{gs|}}}">{{{g1|}}}</th>}}<td colspan="{{#if:{{{g1|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g1|}}}|left|center}};{{{os|}}}">{{{l1|}}}</td><!--

-->{{#if:{{{image|}}}|<td rowspan="{{{imagespan|}}}" style="vertical-align:middle; padding-left:7px; width:0%;">{{{image}}}</td>}}<!--

--></tr>}}<!--

---Remaining groups---
-->{{#if:{{{l2|}}}|<tr>{{#if:{{{g2|}}}|<th style="{{{gs|}}}">{{{g2|}}}</th>}}<td colspan="{{#if:{{{g2|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g2|}}}|left|center}};{{{es|}}}">{{{l2|}}}</td></tr>}}<!--

-->{{#if:{{{l3|}}}|<tr>{{#if:{{{g3|}}}|<th style="{{{gs|}}}">{{{g3|}}}</th>}}<td colspan="{{#if:{{{g3|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g3|}}}|left|center}};{{{os|}}}">{{{l3|}}}</td></tr>}}<!--

-->{{#if:{{{l4|}}}|<tr>{{#if:{{{g4|}}}|<th style="{{{gs|}}}">{{{g4|}}}</th>}}<td colspan="{{#if:{{{g4|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g4|}}}|left|center}};{{{es|}}}">{{{l4|}}}</td></tr>}}<!--

-->{{#if:{{{l5|}}}|<tr>{{#if:{{{g5|}}}|<th style="{{{gs|}}}">{{{g5|}}}</th>}}<td colspan="{{#if:{{{g5|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g5|}}}|left|center}};{{{os|}}}">{{{l5|}}}</td></tr>}}<!--

-->{{#if:{{{l6|}}}|<tr>{{#if:{{{g6|}}}|<th style="{{{gs|}}}">{{{g6|}}}</th>}}<td colspan="{{#if:{{{g6|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g6|}}}|left|center}};{{{es|}}}">{{{l6|}}}</td></tr>}}<!--

-->{{#if:{{{l7|}}}|<tr>{{#if:{{{g7|}}}|<th style="{{{gs|}}}">{{{g7|}}}</th>}}<td colspan="{{#if:{{{g7|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g7|}}}|left|center}};{{{os|}}}">{{{l7|}}}</td></tr>}}<!--

-->{{#if:{{{l8|}}}|<tr>{{#if:{{{g8|}}}|<th style="{{{gs|}}}">{{{g8|}}}</th>}}<td colspan="{{#if:{{{g8|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g8|}}}|left|center}};{{{es|}}}">{{{l8|}}}</td></tr>}}<!--

-->{{#if:{{{l9|}}}|<tr>{{#if:{{{g9|}}}|<th style="{{{gs|}}}">{{{g9|}}}</th>}}<td colspan="{{#if:{{{g9|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g9|}}}|left|center}};{{{os|}}}">{{{l9|}}}</td></tr>}}<!--

-->{{#if:{{{l10|}}}|<tr>{{#if:{{{g10|}}}|<th style="{{{gs|}}}">{{{g10|}}}</th>}}<td colspan="{{#if:{{{g10|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g10|}}}|left|center}};{{{es|}}}">{{{l10|}}}</td></tr>}}<!--

-->{{#if:{{{l11|}}}|<tr>{{#if:{{{g11|}}}|<th style="{{{gs|}}}">{{{g11|}}}</th>}}<td colspan="{{#if:{{{g11|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g11|}}}|left|center}};{{{os|}}}">{{{l11|}}}</td></tr>}}<!--

-->{{#if:{{{l12|}}}|<tr>{{#if:{{{g12|}}}|<th style="{{{gs|}}}">{{{g12|}}}</th>}}<td colspan="{{#if:{{{g12|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g12|}}}|left|center}};{{{es|}}}">{{{l12|}}}</td></tr>}}<!--

-->{{#if:{{{l13|}}}|<tr>{{#if:{{{g13|}}}|<th style="{{{gs|}}}">{{{g13|}}}</th>}}<td colspan="{{#if:{{{g13|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g13|}}}|left|center}};{{{os|}}}">{{{l13|}}}</td></tr>}}<!--

-->{{#if:{{{l14|}}}|<tr>{{#if:{{{g14|}}}|<th style="{{{gs|}}}">{{{g14|}}}</th>}}<td colspan="{{#if:{{{g14|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g14|}}}|left|center}};{{{es|}}}">{{{l14|}}}</td></tr>}}<!--

-->{{#if:{{{l15|}}}|<tr>{{#if:{{{g15|}}}|<th style="{{{gs|}}}">{{{g15|}}}</th>}}<td colspan="{{#if:{{{g15|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g15|}}}|left|center}};{{{os|}}}">{{{l15|}}}</td></tr>}}<!--

-->{{#if:{{{l16|}}}|<tr>{{#if:{{{g16|}}}|<th style="{{{gs|}}}">{{{g16|}}}</th>}}<td colspan="{{#if:{{{g16|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g16|}}}|left|center}};{{{es|}}}">{{{l16|}}}</td></tr>}}<!--

-->{{#if:{{{l17|}}}|<tr>{{#if:{{{g17|}}}|<th style="{{{gs|}}}">{{{g17|}}}</th>}}<td colspan="{{#if:{{{g17|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g17|}}}|left|center}};{{{os|}}}">{{{l17|}}}</td></tr>}}<!--

-->{{#if:{{{l18|}}}|<tr>{{#if:{{{g18|}}}|<th style="{{{gs|}}}">{{{g18|}}}</th>}}<td colspan="{{#if:{{{g18|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g18|}}}|left|center}};{{{es|}}}">{{{l18|}}}</td></tr>}}<!--

-->{{#if:{{{l19|}}}|<tr>{{#if:{{{g19|}}}|<th style="{{{gs|}}}">{{{g19|}}}</th>}}<td colspan="{{#if:{{{g19|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g19|}}}|left|center}};{{{os|}}}">{{{l19|}}}</td></tr>}}<!--

-->{{#if:{{{l20|}}}|<tr>{{#if:{{{g20|}}}|<th style="{{{gs|}}}">{{{g20|}}}</th>}}<td colspan="{{#if:{{{g20|}}}|1|{{#ifeq:{{{nogroups|}}}|true|1|2}}}}" style="text-align:{{#if:{{{g20|}}}|left|center}};{{{es|}}}">{{{l20|}}}</td></tr>}}<!--

---Below (optional)---
-->{{#if:{{{below|}}}|<tr><td style="text-align:center;{{{belowstyle|}}}" colspan="{{{span|1}}}">{{{below|}}}</td></tr>}}<!--

--></table><noinclude></noinclude>