This is a simple function that allows you to display whether or not the currently logged in user has tagged an entry or not. You would typically place this code into a Channel:Entries loop.

{exp:tag:tagged} content {/exp:tag:tagged} 

Parameters

The following parameters are available for use:

entry_id=

entry_id="{entry_id}" 

This enables you to gather the entry ID from an entry to properly use this function.

Conditionals

The following variables are available for use:

if tagged

{if tagged}{if:else}{/if} 

This conditional allows you to output a message based on whether or not an entry has been tagged by the current user.

Examples

The below is an example of how you would use this function to show if an entry has been tagged by the currently logged in user or not:

{exp:channel:entries}
    <h2>{title}</h2>
    <p>{body}</p>

    {exp:tag:tagged entry_id="{entry_id}"}
        <p>
            {if tagged}
                You've tagged this entry
            {if:else}
                You have not yet tagged this entry.
                <a href="path_to/tag_form_template">
                    Click here to Add Tags
                </a>
            {/if}
        </p>
    {/exp:tag:tagged}

{/exp:channel:entries}