User:Blackice/templates/waypoint optional chat link

From Guild Wars 2 Wiki
Jump to navigationJump to search

Experimental extension of the waypoint template, which adds a second unnamed parameter to hide the chat link next to the waypoint page link. If this parameter equals nochatlink, only the icon and page link will be displayed.

This template uses User:Blackice/templates/waypoint optional chat link result format to format the #ask query.

Tests[edit]

Description Source Result
Without parameters {{User:Blackice/templates/waypoint optional chat link}}
Existing waypoint name {{User:Blackice/templates/waypoint optional chat link|Shaemoor Waypoint}} Waypoint (map icon).png Shaemoor Waypoint
Existing waypoint id {{User:Blackice/templates/waypoint optional chat link|239}} Waypoint (map icon).png Shaemoor Waypoint
Nonexistent waypoint name {{User:Blackice/templates/waypoint optional chat link|Quaggans Waypoint}} No waypoint named Quaggans Waypoint found. Check if it has been added to the area.
Nonexistent waypoint id {{User:Blackice/templates/waypoint optional chat link|0}} Waypoint with id 0 not found. Check if it has been added to the area.
Only the nochatlink param {{User:Blackice/templates/waypoint optional chat link|nochatlink}} No waypoint named nochatlink found. Check if it has been added to the area.
Waypoint name w/o chat link {{User:Blackice/templates/waypoint optional chat link|Shaemoor Waypoint|nochatlink}} Waypoint (map icon).png Shaemoor Waypoint
Waypoint id w/o chat link {{User:Blackice/templates/waypoint optional chat link|239|nochatlink}} Waypoint (map icon).png Shaemoor Waypoint
Nonexistent waypoint name w/o chat link {{User:Blackice/templates/waypoint optional chat link|Quaggans Waypoint|nochatlink}} No waypoint named Quaggans Waypoint found. Check if it has been added to the area.
Nonexistent waypoint id w/o chat link {{User:Blackice/templates/waypoint optional chat link|0|nochatlink}} Waypoint with id 0 not found. Check if it has been added to the area.
Bogus value instead of nochatlink {{User:Blackice/templates/waypoint optional chat link|239|nochtli}} Waypoint (map icon).png Shaemoor Waypoint