Template:Grok: Difference between revisions
Fabrice P. Laussy's Web
Grok did this for me
 
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}} |  
<includeonly>{{#if: {{{1|}}} |  
<div style="border: 1px solid #ccc; padding: 10px; margin: 10px 0; background-color: #f9f9f9;">
<div style="overflow: hidden;">
'''Human:''' {{{1}}}<br><br>
<div style="border: 1px solid #ccc; padding: 10px; margin: 10px 0; background-color: #e0e0e0; float: right; width: 45%; text-align: left;">
'''Human:''' {{{1}}}
</div>
<div style="border: 1px solid #ccc; padding: 10px; margin: 10px 0; background-color: #f9f9f9; clear: both;">
'''Grok:''' {{#if: {{{2|}}} | {{{2}}} | Hello! I'm Grok, created by xAI. How can I assist you today? If you have any questions or topics you'd like to explore, feel free to ask! (Current date: March 05, 2025)}}
'''Grok:''' {{#if: {{{2|}}} | {{{2}}} | Hello! I'm Grok, created by xAI. How can I assist you today? If you have any questions or topics you'd like to explore, feel free to ask! (Current date: March 05, 2025)}}
</div>
</div>
</div>
|  
|  
<div style="border: 1px solid #ccc; padding: 10px; margin: 10px 0; background-color: #f9f9f9;">
<div style="overflow: hidden;">
'''Human:''' Hello, Grok!<br><br>
<div style="border: 1px solid #ccc; padding: 10px; margin: 10px 0; background-color: #e0e0e0; float: right; width: 45%; text-align: left;">
'''Human:''' Hello, Grok!
</div>
<div style="border: 1px solid #ccc; padding: 10px; margin: 10px 0; background-color: #f9f9f9; clear: both;">
'''Grok:''' Hello! I'm Grok, created by xAI. How can I assist you today? If you have any questions or topics you'd like to explore, feel free to ask! (Current date: March 05, 2025)
'''Grok:''' Hello! I'm Grok, created by xAI. How can I assist you today? If you have any questions or topics you'd like to explore, feel free to ask! (Current date: March 05, 2025)
</div>
</div>
</div>
}}</includeonly><noinclude>
}}</includeonly><noinclude>
== Documentation ==
== Documentation ==
This is a self-contained MediaWiki template that simulates a conversation between a user ("Human") and Grok, an AI created by xAI. It styles the dialogue in a clean, boxed format.
This is a self-contained MediaWiki template that simulates a conversation between a user ("Human") and Grok, an AI created by xAI. The "Human" input is displayed in a greyish box flushed to the right, while "Grok's" response is in a lighter box below.


=== Usage ===
=== Usage ===

Revision as of 15:37, 5 March 2025

Documentation

This is a self-contained MediaWiki template that simulates a conversation between a user ("Human") and Grok, an AI created by xAI. The "Human" input is displayed in a greyish box flushed to the right, while "Grok's" response is in a lighter box below.

Usage

  • Call the template with no parameters for a default interaction:
{{Grok}}
  • Pass a custom user input (parameter 1) and Grok's response (parameter 2):
{{Grok|How's the weather?|I'm not a weather bot, but I can search the web for you if you'd like! What's your location?}}

Parameters

1. 1 (unnamed) - The user's input (defaults to "Hello, Grok!" if omitted). 2. 2 (unnamed) - Grok's response (defaults to a generic greeting if omitted).

Example

{{Grok|Tell me about yourself|I'm Grok, an AI built by xAI, designed to help users understand the universe and assist with various tasks. I can analyze X posts, search the web, and more. How can I help you today?}}