Can I use %category% like Templates in my Plugin?

You don’t need anything WordPress specific here. Use PHP’s str_replace to replace tokens entered by users in the settings. In your plugin code, wherever you are echoing the setting value wrap it in str_replace with the value you want to replace %my_url% with.

echo str_replace("%my_url%", $real_url_value, $setting_text);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)