BIKI Helper – Extension

From Bohemia Interactive Community
(Add Subtitle Categories feature)
(Add Functions exclusion)
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
* 2024-04-15: 1.10, add page title's namespace formatting
* 2024-04-15: 1.10, add page title's namespace formatting
* 2025-04-09: 1.15, add subtitle categories
* 2025-04-09: 1.15, add subtitle categories
* 2025-04-15: 1.20, add header anchor link
|-
|-
! Version
! Version
| 1.15
| 1.20
|}
|}
This extension provides useful tools here and there on the BIKI.
This extension provides useful tools here and there on the BIKI.
{{TOC}}




Line 30: Line 29:


{{TOC|subtoc|content=
{{TOC|subtoc|content=
* 1. {{Link|#Editor Toolbar Buttons}}
# {{Link|#Editor Toolbar Buttons}}
* 2. {{Link|#biki-date Function Syntax}}
# {{Link|#biki-date Function Syntax}}
* 3. {{Link|#Page Title Formatting}}
# {{Link|#Page Title Formatting}}
# {{Link|#Subtitle Categories}}
# {{Link|#Header Anchor Link}}
}}
}}


Line 120: Line 121:
{{Clear}}
{{Clear}}
=== Page Title Formatting ===
=== Page Title Formatting ===
<div class="float-right">
[[File:wiki-biki_helper_page-title-before.jpg|Before]]<br>
[[File:wiki-biki_helper_page-title-after.jpg|After]]
</div>


Namespaced page's title formatting, available through the <syntaxhighlight lang="css" inline>#biki-title-namespace</syntaxhighlight> CSS classname.
Namespaced page's title formatting, available through the <syntaxhighlight lang="css" inline>#biki-title-namespace</syntaxhighlight> CSS classname.


<gallery mode="packed" style="display: inline-block">
{{Clear}}
wiki-biki_helper_page-title-before.jpg|Before
=== Subtitle Categories ===
wiki-biki_helper_page-title-after.jpg|After
 
</gallery>
Categories are reminded at the top of the page as subtitle. An exception is made for pages in the {{Link|:Category:Scripting Commands|Scripting Commands}} and {{Link|:Category:Functions|Functions}} categories.


=== Subtitle Categories ===
=== Header Anchor Link ===


Categories are reminded at the top of the page as subtitle.
H1..H6 ''page content'' titles display a self-pointing link when hovered.





Latest revision as of 13:01, 17 April 2025

BIKI Helper
Description Provides useful tools here and there on the BIKI.
Author Lou Montana
Project Start 2022-07-12: Project start
Release Date
  • 2022-07-12: 1.00, first upload
  • 2023-06-21: 1.05, add date functions
  • 2024-04-15: 1.10, add page title's namespace formatting
  • 2025-04-09: 1.15, add subtitle categories
  • 2025-04-15: 1.20, add header anchor link
Version 1.20

This extension provides useful tools here and there on the BIKI.


Features

Editor Toolbar Buttons

New buttons available

Added functionalities:

  • Highlight and BIKI Link buttons
  • Code tags (SQF Syntax, SQS Syntax, config (C++), Enforce Script (C#), JSON)
  • Infoboxes ({{Feature}} informative/important/warning, {{Wiki}} TODO/WIP)
  • Game icons ({{GVI}} for most games)

biki-date Function Syntax

{{#biki-date}}
{{#biki-date:}}
{{#biki-date:age_full_months}}
{{#biki-date:age_full_months|2001-06-22}}

{{#biki-date}}
first date not provided
first date not provided
second date not provided

{{#biki-date:age_full_days|2001-06-22|2005-06-21}}
{{#biki-date:age_full_days|2001-06-22|2005-06-22}}
{{#biki-date:age_full_days|2001-06-22|2005-06-23}}

1460
1461
1462

{{#biki-date:age_full_months|2001-06-22|2005-06-21}}
{{#biki-date:age_full_months|2001-06-22|2005-06-22}}
{{#biki-date:age_full_months|2001-06-22|2005-06-23}}

47
48
48

{{#biki-date:age_full_years|2001-06-22|2004-06-22}}
{{#biki-date:age_full_years|2001-06-22|2005-06-21}}
{{#biki-date:age_full_years|2001-06-22|2005-06-22}}
{{#biki-date:age_full_years|2001-06-22|2005-06-23}}
{{#biki-date:age_full_years|2001-06-22|2006-06-22}}

3
3
4
4
5

{{#biki-date:ymd|2001-06-22|2005-06-21}}
{{#biki-date:ymd|2001-06-22|2005-06-22}}
{{#biki-date:ymd|2001-06-22|2005-06-23}}
{{#biki-date:his|2001-06-22 10:30:00|2001-06-23 11:45:17}}
{{#biki-date:ymdhis|2001-06-22 10:30:00|2002-05-23 11:45:17}}

3 year(s), 11 month(s), 29 day(s)
4 year(s), 0 month(s), 0 day(s)
4 year(s), 0 month(s), 1 day(s)
1 hour(s), 15 minute(s), 17 second(s)
0 year(s), 11 month(s), 1 day(s),
1 hour(s), 15 minute(s), 17 second(s)

{{#biki-date:format|date1|date2}}
  • format: can be one of
    • age_full_days, age_full_months, age_full_years
    • ymd (year month day), his (hour minute second) or ymdhis
  • date1: from what date to start - ideally format yyyy-mm-dd or yyyymmdd (hh:ii:ss or hhiiss)
  • date2: up to what date to calculate - same as date1

Page Title Formatting

Before
After

Namespaced page's title formatting, available through the #biki-title-namespace CSS classname.

Subtitle Categories

Categories are reminded at the top of the page as subtitle. An exception is made for pages in the Scripting Commands and Functions categories.

Header Anchor Link

H1..H6 page content titles display a self-pointing link when hovered.


Installation

  • Unzip the directory to wiki/extensions/BIKIHelper
  • Add wfLoadExtension( 'BIKIHelper' ); to LocalSettings.php