<span class="mw-page-title-namespace">Template</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Grok</span>
Fabrice P. Laussy's Web

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, rounded box flushed to the right, while "Grok's" response is in a lighter box below, featuring a Grok logo with customizable absolute positioning.

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).

Notes

  • The template uses the font styling: `font-size: 1em; font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif;`.
  • The Grok logo is included in a `
    ` with `position: absolute` inside a relatively positioned container. Upload an image named "Grok_Logo.png" (e.g., the black-hole-inspired logo) to your MediaWiki instance. The size is set to 20px; adjust as needed.
  • The logo is positioned with `bottom: 2px; left: 5px;` to align its bottom with the text baseline, and `margin-right: 5px;` adds space before "rok:". The `` with `margin-left: 25px;` displaces only "rok:" to the right of the logo.
  • Padding is set to `2px 5px` (vertical 2px, horizontal 5px) to reduce vertical spacing while maintaining the previous horizontal spacing.

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?}}