EasyUse/Promptgenerated
Wildcards(wildcardsPrompt)
The Wildcards node expands wildcard placeholders in a prompt template with randomly chosen values, and can optionally append a LoRA reference.
wildcards Prompt
output_text
populated_text
text
STRING
Select to add LoRA
COMBO
Select to add Wildcard
COMBO
seed
0
multiline_mode
Easy Use
The Wildcards node expands wildcard placeholders in a prompt template with randomly chosen values, and can optionally append a LoRA reference. It is designed for generating varied prompts while keeping results reproducible through a seed.
Inputs
- text (
STRING, default:""): The base prompt template. Use__wildcard_name__placeholders where you want random content inserted. - Select to add LoRA (
COMBO): A dropdown listing available LoRAs. Selecting one appends a LoRA prompt snippet (for example<lora:filename:1.0>) to the text before processing. Select "None" to add nothing. - Select to add Wildcard (
COMBO): A dropdown listing available wildcard files. Selecting one adds a__filename__placeholder to the text, so you don't have to type the wildcard token manually. Select "None" to add nothing. - seed (
INT, default:0, min:0): The random seed used when picking wildcard values. The same seed and text produce the same output; change the seed to get different variations. - multiline_mode (
BOOLEAN, default:false): When enabled, each line of the text input is processed as its own prompt, so wildcards are sampled independently per line and line breaks are preserved in the output. When disabled, the whole text is processed as a single prompt.
Outputs
- STRING (text): The processed prompt text — the base text with all wildcard placeholders replaced by chosen values and any selected LoRA/wildcard additions included.
- STRING (seed): The seed value passed into the node, returned as a string. It can be used to record the seed or feed it into other text-based nodes.
Usage Notes
- Wildcard tokens are written with double underscores, e.g.
__color__. The node replaces each token with a random line from the matching wildcard file. - Use the "Select to add Wildcard" dropdown as a shortcut: it inserts the token for you, which is helpful when you don't remember the exact wildcard file name.
- To build reproducible prompts, set a fixed seed and keep the same text. Changing the seed randomizes the selected wildcard lines.
- Since the second output is a string, you can connect it to nodes that expect a string seed, or simply leave it unconnected if you only need the final prompt.
Comments
Sign in with GitHub to join the discussion.