Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 18:53, 4 September 2025 by Kowaulsky (talk | contribs) (Created page with "<includeonly>{{#switch:{{{type|}}} | players = {{#ifexist:Players/{{{target}}}|[[Players/{{{target}}}|{{{text|{{{target}}}}}}]]|{{{text|{{{target}}}}}}}} | places = [[Places/{{{target}}}|{{{text|{{{target}}}}}}]] | groups = [[Groups/{{{target}}}|{{{text|{{{target}}}}}}]] | businesses = [[Businesses/{{{target}}}|{{{text|{{{target}}}}}}]] | #default = {{{text|{{{target}}}}}} }}</includeonly><noinclude> = AutoLink Template = This is a unified auto-linking template that can...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AutoLink Template

This is a unified auto-linking template that can create links to different types of entities (players, places, groups, businesses, etc.).

Usage

{{AutoLink|type=TYPE|target=TARGET_NAME|text=DISPLAY_TEXT}}

Parameters

  • type - The type of entity to link to (players, places, groups, businesses)
  • target - The exact name/identifier of the entity to link to
  • text - Optional display text (defaults to target name if not provided)

Supported Types

Players (type=players)

Links to player pages in the Players/ directory:

  • Checks if Players/{target} exists
  • If it exists, creates a link; otherwise displays as plain text

Places (type=places)

Links to Places/{target}

Groups (type=groups)

Links to Groups/{target}

Businesses (type=businesses)

Links to Businesses/{target}

Examples

{{AutoLink|type=players|target=Falcon40k}}Falcon40k

{{AutoLink|type=players|target=Falcon40k|text=my friend}}my friend

{{AutoLink|type=places|target=Tokyo|text=the capital}}the capital

{{AutoLink|type=businesses|target=SushiCorp}}SushiCorp