mediawiki_apply_formatting
Apply formatting markup like bold, italic, strikethrough, underline, or code to specific text on MediaWiki pages. Preview changes before saving to ensure correct formatting.
Instructions
BEST for adding formatting markup to specific text.
USE WHEN: User says "strike out X", "cross out the name", "make X bold", "italicize Y", "mark as code".
NOT FOR: Replacing text (use mediawiki_find_replace).
PARAMETERS:
title: Page name (required)
text: Text to format (required)
format: Formatting type (required):
"strikethrough":
text(for removed/former items)"bold": '''text'''
"italic": ''text''
"underline": text
"code": text
all: Format all occurrences (default false)
preview: Preview changes (default true)
summary: Edit summary
RETURNS: Preview of formatting applied. Set preview=false to apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Page title to edit | |
| text | Yes | Text to find and format | |
| format | Yes | Format to apply: 'strikethrough', 'bold', 'italic', 'underline', 'code', 'nowiki' | |
| all | No | Apply to all occurrences (default: first only) | |
| preview | No | Preview changes without saving | |
| summary | No | Edit summary (auto-generated if empty) |