Difference between revisions of "Template:Infobox-Applicable-FSVersion/doc"

From FSDeveloper Wiki
Jump to: navigation, search
m (MSFS category to match forum's tag rename. Added P3Dv5)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
{{Infobox-Applicable-FSVersion
 
{{Infobox-Applicable-FSVersion
| FS2020 = unknown
+
| MSFS = unknown
 
| FSXI = unknown
 
| FSXI = unknown
 +
| P3D5 = unknown
 
| P3D4 = unknown
 
| P3D4 = unknown
| P3D3 = FALSE
+
| P3D3 = unknown
| P3D2 = TRUE
+
| P3D2 = true
 
| P3D = unknown
 
| P3D = unknown
 
| FSW = unknown
 
| FSW = unknown
| FSX-SE = unknown
+
| FSXSE = unknown
 
| FSXA = unknown
 
| FSXA = unknown
 
| FSX = unknown
 
| FSX = unknown
 
| FS2004 = unknown
 
| FS2004 = unknown
| FS2002 = TRUE
+
| FS2002 = true
 
| XP11 = unknown
 
| XP11 = unknown
 
| XP10 = unknown
 
| XP10 = unknown
 
| XP9 = unknown
 
| XP9 = unknown
 +
 
}}
 
}}
 
The ''Infobox-Applicable-FSVersion'', (small box containing links, to right of this text),
 
The ''Infobox-Applicable-FSVersion'', (small box containing links, to right of this text),
Line 27: Line 29:
  
  
 
+
''For demonstration purposes'' - This current page's ''Infobox-Applicable-FSVersion'' is set to ''FS2002'' and ''LM P3D2''.
''For demonstration purposes'' - This current page's ''Infobox-Applicable-FSVersion'' is set to ''FS2002''.
 
  
 
== Purpose ==
 
== Purpose ==
Line 46: Line 47:
 
* FSXA referenced as a seperate version, (~50 FSXA exclusive pages to be created).
 
* FSXA referenced as a seperate version, (~50 FSXA exclusive pages to be created).
  
== Useage ==
+
== Usage ==
 
The box should be present on every page, (article or category).
 
The box should be present on every page, (article or category).
  
Line 58: Line 59:
 
<pre>
 
<pre>
 
{{Infobox-Applicable-FSVersion
 
{{Infobox-Applicable-FSVersion
| FS2020 = unknown
+
| MSFS = unknown
 
| FSXI = unknown
 
| FSXI = unknown
 +
| P3D5 = unknown
 
| P3D4 = unknown
 
| P3D4 = unknown
 
| P3D3 = unknown
 
| P3D3 = unknown
Line 65: Line 67:
 
| P3D = unknown
 
| P3D = unknown
 
| FSW = unknown
 
| FSW = unknown
| FSX-SE = unknown
+
| FSXSE = unknown
 
| FSXA = unknown
 
| FSXA = unknown
 
| FSX = unknown
 
| FSX = unknown
Line 73: Line 75:
 
| XP10 = unknown
 
| XP10 = unknown
 
| XP9 = unknown
 
| XP9 = unknown
 +
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 04:43, 24 October 2020

The Infobox-Applicable-FSVersion, (small box containing links, to right of this text),
provides at-a-glance indication of a page or category content's relevance to the various flight-simulator product versions.

Applicable Green background
Not Applicable Red background


For demonstration purposes - This current page's Infobox-Applicable-FSVersion is set to FS2002 and LM P3D2.

Purpose

Many wiki pages contained -

  • No information relevant to current or recent FS versions.
  • No mention as to which FS version they applied to.
  • No footer category FS-version listing.


The Applicable FS-Version" infobox provides -

  • Instant recognition.
  • Common reference point.
  • Direct links to FS-Version's categories.
  • Automatic footer generation of FS-Version Categories: links.
  • Simple to place & edit.
  • Extensible to suport future FS-versions.
  • FSXA referenced as a seperate version, (~50 FSXA exclusive pages to be created).

Usage

The box should be present on every page, (article or category).

Positioning

The box should be positioned at the top of the page.

The box automatically aligns itself with the right-hand margin.

Installation

  • Copy the following code to your clipboard.
{{Infobox-Applicable-FSVersion
| MSFS = unknown
| FSXI = unknown
| P3D5 = unknown
| P3D4 = unknown
| P3D3 = unknown
| P3D2 = unknown
| P3D = unknown
| FSW = unknown
| FSXSE = unknown
| FSXA = unknown
| FSX = unknown
| FS2004 = unknown
| FS2002 = unknown
| XP11 = unknown
| XP10 = unknown
| XP9 = unknown

}}
  • Open the target page for insertion.
  • Click the page's EDIT tab.
  • Position the cursor in the top of the page's EDIT BOX, (before any text).
  • Paste the code into the top line of the page.
  • Edit the version applicability from unknown, to true or false, (case insensitive).
  • Show Preview to check elements display as intended.
  • Save Page to make your edits permanent.


Do not delete any of the FS version categories .

  • P3D2, (LM P3D version 2) - Placeholder, is commented out within the the downstream template, it will be activated on LM P3D2 release.
  • FSXI, (MS Flight) - Placeholder, is commented out within the the downstream template, it will be activated on MS Flight release.
  • XP10 - Placeholder, is commented out within the the downstream template, it will be activated on request by admin.
  • XP9 - Placeholder, is commented out within the the downstream template, it will be activated on request by admin.

Editing an existing Infobox

Earlier versions of the infobox do not include all the FS-Versions.

To update an infobox to provide full FS-Version coverage,
copy & paste the required lines into the infobox.

Development

Completed

  • Added links to FS version category pages.
  • Added link to this page.
  • Modified the <div> code to align it with top edge, (was displaced by 1em).
  • Automatically generates the matching FS version Categories: footer entries.
  • Removed - FS2000 & FS98 - If not required anywhere in the entire Wiki, I will then comment these out within the source template.
  • Reworked - FSXI as MS Flight - Currently commented out within the source template.
  • Added - XP10 & XP9 - If not required anywhere in the entire Wiki, I will then comment these out within the source template.
  • Added - LM P3D & LM P3D v2 - The latter is currently commented-out in the source template.

ToDo

  • Add category generation suppression option for pages like this.
  • Not sure if this is an issue - Modify <div> so that boxes for <code> and <pre> display correctly.