Convert to Mediawiki Ai Prompt Template: Difference between revisions

From Irregularpedia
Jump to navigation Jump to search
added pre for codeblcoks and references →‎Prompt for Fixing Pages to MediaWiki Format
Tag: wikieditor
Tag: 2017 source edit
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
<pre>
<pre>
Please convert the following page into MediaWiki format, following these instructions:
Please convert the following page into MediaWiki format, following these instructions:
Convert any codeblocks to use the mediawiki <pre></pre> box  
remove any "---" as it can mess with the code
Add Categories to the page  
Convert any codeblocks to use the mediawiki pre box
Add Categories to the page that make sense
Bold should not be ** it should be ''', remember this is media syntax
Any links referenced add them as basic mediawiki references and add a reference end to the bottom of the page if so  
Any links referenced add them as basic mediawiki references and add a reference end to the bottom of the page if so  
Convert Markdown Links to MediaWiki Syntax:
Convert Markdown Links to MediaWiki Syntax:
  - Replace External Markdown links with MediaWiki links. For example, change `[Link Text](http://example.com)` to `[http://example.com|Link Text]`.
* Replace External Markdown links with MediaWiki links. For example, change `[Link Text](http://example.com)` to `[http://example.com Link Text]`. space between the url and the title
  - Replace Internal Markdown links with MediaWiki links. For example, change `[Link Text](/path/page_title.md)` to `[page_title|Link Text]`.
* Replace Internal Markdown links with MediaWiki links. For example, change `[Link Text](/path/page_title.md)` to `[page_title|Link Text]`.


Update Image and Media Links:
Update Image and Media Links:
  - Convert Markdown image syntax `![Alt Text](http://example.com/image.jpg)` to MediaWiki syntax `[[File:image.jpg|alt=Alt Text]]`.
* Convert Markdown image syntax `![Alt Text](http://example.com/image.jpg)` to MediaWiki syntax `[[File:image.jpg|alt=Alt Text]]`.


Handle Lists:
Handle Lists:
  - Replace Markdown unordered list syntax `- item` or `* item` with MediaWiki list syntax:
* Replace Markdown unordered list syntax `- item` or `* item` with MediaWiki list syntax:
    * item
** subitem
    * item
*** sub-sub-item
  - Replace Markdown ordered list syntax `1. item` or `2. item` with MediaWiki list syntax:
** subitem
    # item
# Replace Markdown ordered list syntax `1. item` or `2. item` with MediaWiki list syntax:
    # item
## subitem
## subitem


Preserve Code Blocks:
Preserve Code Blocks:
  - Ensure code blocks are correctly formatted with <pre> tags. Maintain the content without any additional MediaWiki formatting:
* Ensure code blocks are correctly formatted with <pre> tags. Maintain the content without any additional MediaWiki formatting:
     content without wiki syntax formatting
     content without wiki syntax formatting


Ensure Proper Formatting:
Ensure Proper Formatting:
  - Ensure headers, tables, and other elements are converted to appropriate MediaWiki formatting.
* Ensure headers, tables, and other elements are converted to appropriate MediaWiki formatting.


Preserve Existing Content:
Preserve Existing Content:
  - Keep all content intact and ensure that the conversion maintains the original meaning and context.
* Keep all content intact and ensure that the conversion maintains the original meaning and context.


Please apply these changes to the provided content and ensure the final output aligns with MediaWiki standards.
Please apply these changes to the provided content and ensure the final output aligns with MediaWiki standards.

Latest revision as of 00:41, 6 October 2024

Prompt for Fixing Pages to MediaWiki Format

Please convert the following page into MediaWiki format, following these instructions:
remove any "---" as it can mess with the code 
Convert any codeblocks to use the mediawiki pre box
Add Categories to the page that make sense
Bold should not be ** it should be ''', remember this is media syntax
Any links referenced add them as basic mediawiki references and add a reference end to the bottom of the page if so 
Convert Markdown Links to MediaWiki Syntax:
* Replace External Markdown links with MediaWiki links. For example, change `[Link Text](http://example.com)` to `[http://example.com Link Text]`. space between the url and the title
* Replace Internal Markdown links with MediaWiki links. For example, change `[Link Text](/path/page_title.md)` to `[page_title|Link Text]`.

Update Image and Media Links:
* Convert Markdown image syntax `![Alt Text](http://example.com/image.jpg)` to MediaWiki syntax `[[File:image.jpg|alt=Alt Text]]`.

Handle Lists:
* Replace Markdown unordered list syntax `- item` or `* item` with MediaWiki list syntax:
** subitem
*** sub-sub-item
** subitem
# Replace Markdown ordered list syntax `1. item` or `2. item` with MediaWiki list syntax:
## subitem
## subitem

Preserve Code Blocks:
* Ensure code blocks are correctly formatted with <pre> tags. Maintain the content without any additional MediaWiki formatting:
     content without wiki syntax formatting

Ensure Proper Formatting:
* Ensure headers, tables, and other elements are converted to appropriate MediaWiki formatting.

Preserve Existing Content:
* Keep all content intact and ensure that the conversion maintains the original meaning and context.

Please apply these changes to the provided content and ensure the final output aligns with MediaWiki standards.