Convert Properties to MediaWiki
Max file size 100mb.
Properties vs MediaWiki Format Comparison
| Aspect | Properties (Source Format) | MediaWiki (Target Format) |
|---|---|---|
| Format Overview |
Properties
Java Properties File
A line-oriented configuration format used by Java applications and frameworks. Each entry stores a key-value pair with = or : as separator. Supports dotted key hierarchies (e.g., |
MediaWiki
Wiki Markup Language
The markup language used by Wikipedia and thousands of MediaWiki-powered wikis worldwide. Features a distinctive syntax with == headings ==, {| table markup |}, [[internal links]], and {{templates}}. Designed for collaborative knowledge management with rich formatting, categories, and cross-referencing capabilities. Wiki Markup Collaborative |
| Technical Specifications |
Structure: Key=value pairs, one per line
Encoding: ISO 8859-1 with Unicode escapes Format: java.util.Properties specification Comments: # or ! at line start Extensions: .properties |
Structure: Section-based with wiki markup syntax
Encoding: UTF-8 Format: MediaWiki markup specification Comments: <!-- HTML comments --> Extensions: .wiki, .mediawiki |
| Syntax Examples |
Properties with dotted namespaces: # Security settings security.oauth2.client-id=myapp security.oauth2.client-secret=s3cret security.oauth2.redirect-uri=https://app.example.com/callback security.cors.allowed-origins=* |
MediaWiki with tables and formatting: == Security Settings ==
{| class="wikitable"
! Property !! Value
|-
|
|
| Content Support |
|
|
| Advantages |
|
|
| Disadvantages |
|
|
| Common Uses |
|
|
| Best For |
|
|
| Version History |
Introduced: 1996 (Java 1.0)
Current Version: Part of java.util (JDK 21+) Status: Stable, long-term support Evolution: XML properties added in Java 5 |
Introduced: 2002 (MediaWiki 1.0)
Current Version: MediaWiki 1.42 (2024) Status: Active development Evolution: Visual Editor, Parsoid, Wikidata integration |
| Software Support |
Java API: java.util.Properties
Frameworks: Spring Boot, Jakarta EE IDEs: IntelliJ IDEA, Eclipse, VS Code Libraries: Apache Commons Configuration |
Engine: MediaWiki (PHP)
Converters: Pandoc, mw2txt Hosted: Wikipedia, Fandom, Miraheze Other: Parsoid, Visual Editor |
Why Convert Properties to MediaWiki?
Converting Java Properties files to MediaWiki markup enables you to publish configuration documentation directly on wiki platforms used for internal knowledge management. Many organizations run MediaWiki-based wikis for their internal documentation, and converting properties files to wiki markup allows configuration references to be maintained collaboratively within the team's existing documentation infrastructure.
MediaWiki's table syntax, while more verbose than Markdown's, offers powerful formatting capabilities including sortable columns, row spanning, colored cells, and CSS classes. Properties data presented in wikitables can be sorted by key name, grouped by namespace, and styled to highlight important or deprecated settings. This level of formatting control makes MediaWiki ideal for comprehensive configuration reference pages.
The wiki platform's built-in version history feature brings natural change tracking to configuration documentation. When properties change between releases, updating the wiki page creates an automatic diff showing exactly what was added, modified, or removed. Teams can review configuration changes through the wiki's history interface without needing separate version control for documentation.
MediaWiki's template system allows you to create reusable configuration documentation patterns. A property entry template can standardize how each setting is documented -- with fields for the key name, default value, description, valid range, and the version when it was introduced. This templating approach ensures consistency across large configuration reference wikis and reduces the effort of maintaining documentation.
Key Benefits of Converting Properties to MediaWiki:
- Wiki Integration: Publish configuration docs directly on your organization's MediaWiki instance
- Collaborative Editing: Team members can improve documentation through wiki's built-in editing
- Rich Tables: Wikitables support sorting, styling, row/column spanning, and CSS classes
- Version History: Wiki tracks all changes with diffs, timestamps, and editor attribution
- Template Support: Reusable templates standardize property documentation format
- Category System: Organize configuration pages using wiki categories and namespaces
- Cross-Linking: Link between configuration pages, application pages, and deployment guides
Practical Examples
Example 1: Application Server Configuration
Input Properties file (server.properties):
# Server configuration server.port=8443 server.ssl.enabled=true server.ssl.key-store=classpath:keystore.p12 server.ssl.key-store-type=PKCS12 server.servlet.session.timeout=30m
Output MediaWiki file (server.wiki):
= Server Configuration =
== HTTP Server Settings ==
{| class="wikitable sortable" style="width: 100%"
! Property !! Value !! Description
|-
| server.port || 8443 || HTTPS listening port
|-
| server.ssl.enabled || true || Enable SSL/TLS
|-
| server.ssl.key-store || classpath:keystore.p12 || Keystore location
|-
| server.ssl.key-store-type || PKCS12 || Keystore format
|-
| server.servlet.session.timeout || 30m || Session timeout duration
|}
[[Category:Configuration]]
[[Category:Server Settings]]
Example 2: Kafka Producer Properties
Input Properties file (kafka-producer.properties):
# Kafka Producer kafka.bootstrap.servers=broker1:9092,broker2:9092 kafka.producer.acks=all kafka.producer.retries=3 kafka.producer.batch.size=16384 kafka.producer.key.serializer=org.apache.kafka.common.serialization.StringSerializer kafka.producer.value.serializer=org.apache.kafka.common.serialization.StringSerializer
Output MediaWiki file (kafka-producer.wiki):
= Kafka Producer Configuration =
{| class="wikitable" style="width: 100%"
! style="width:35%" | Property
! style="width:35%" | Value
! style="width:30%" | Notes
|-
| kafka.bootstrap.servers
| broker1:9092, broker2:9092
| Cluster connection endpoints
|-
| kafka.producer.acks
| '''all'''
| Wait for all replicas (highest durability)
|-
| kafka.producer.retries
| 3
| Retry count on failure
|-
| kafka.producer.batch.size
| 16384
| Batch size in bytes (16 KB)
|-
| kafka.producer.key.serializer
| StringSerializer
| Key serialization class
|-
| kafka.producer.value.serializer
| StringSerializer
| Value serialization class
|}
[[Category:Kafka]]
[[Category:Messaging Configuration]]
Example 3: Localization Resource Bundle
Input Properties file (labels_en.properties):
# Navigation labels nav.home=Home nav.about=About Us nav.contact=Contact nav.settings=Settings # Error messages error.404=Page Not Found error.500=Internal Server Error error.generic=Something went wrong. Please try again.
Output MediaWiki file (labels_en.wiki):
= Localization Reference (English) =
== Navigation Labels ==
{| class="wikitable"
! Key !! Display Text
|-
| nav.home || Home
|-
| nav.about || About Us
|-
| nav.contact || Contact
|-
| nav.settings || Settings
|}
== Error Messages ==
{| class="wikitable"
! Key !! Display Text
|-
| error.404 || Page Not Found
|-
| error.500 || Internal Server Error
|-
| error.generic || Something went wrong. Please try again.
|}
[[Category:Localization]]
[[Category:English Strings]]
Frequently Asked Questions (FAQ)
Q: What is MediaWiki markup?
A: MediaWiki markup is the formatting syntax used by MediaWiki, the open-source wiki software that powers Wikipedia. It uses distinctive syntax like == headings ==, {| tables |}, '''bold''', and ''italic'' to format content. It is primarily used on wiki platforms for collaborative documentation.
Q: Can I paste the output directly into my wiki?
A: Yes, the converted output is valid MediaWiki markup that you can paste directly into any MediaWiki page editor. The tables, headings, and formatting will render correctly on any standard MediaWiki installation, including those hosted on Wikipedia, Fandom, Miraheze, or self-hosted instances.
Q: How are Properties comments converted in MediaWiki?
A: Comment lines starting with # or ! in Properties files are converted to section descriptions or plain text above the relevant property tables. This provides context for wiki readers. If you need hidden comments, the converter can use HTML comment syntax <!-- comment --> which is also supported in MediaWiki.
Q: Will the wikitables be sortable?
A: Yes, the converter generates tables with the "wikitable sortable" CSS class, which enables click-to-sort functionality on column headers in any standard MediaWiki installation. Users can sort by property name, value, or any other column directly in their browser.
Q: Does the converter add wiki categories?
A: The converter adds relevant category tags based on the Properties file content. For example, database-related properties get a [[Category:Database Configuration]] tag, server settings get [[Category:Server Configuration]], and so on. You can customize these categories after conversion.
Q: Can I use wiki templates in the converted output?
A: The basic conversion produces standard wikitable markup. However, if your wiki has custom templates for configuration documentation (like {{ConfigProperty|key|value|description}}), you can easily adapt the output to use your templates. The structured nature of Properties data maps well to parameterized wiki templates.
Q: How are special characters in property values handled?
A: Characters that have special meaning in MediaWiki markup (such as |, {, }, [, ]) are properly escaped in the output to prevent rendering issues. Property values containing URLs, file paths, or regex patterns are preserved exactly as they appear in the original file.
Q: Is this useful for documenting Spring Boot configuration on an internal wiki?
A: Absolutely. Many enterprise teams maintain internal MediaWiki instances for project documentation. Converting Spring Boot application.properties to wiki markup lets you publish a comprehensive configuration reference that team members can collaboratively maintain, annotate, and cross-reference with other wiki pages about the application architecture.