Template:Link: Difference between revisions

From Adventure Game Studio
Jump to navigation Jump to search
*>Monkey 05 06
(I think this will work without the qif template...testing now...)
*>Monkey 05 06
mNo edit summary
Line 4: Line 4:
   <nowiki>{{link|PAGE_TITLE|ANCHOR|ALT_TEXT}}</nowiki>
   <nowiki>{{link|PAGE_TITLE|ANCHOR|ALT_TEXT}}</nowiki>


All parameters ''except'' PAGE_TITLE are optional. The last specified parameter will be used as the link text. So if only PAGE_TITLE is specified:
All parameters ''except'' PAGE_TITLE ''or'' ANCHOR are optional (at least one of the two must be supplied). The last specified parameter will be used as the link text. So if only PAGE_TITLE is specified:


   <nowiki>{{link|Adventure Game Studio}}</nowiki>
   <nowiki>{{link|Adventure Game Studio}}</nowiki>

Revision as of 19:35, 21 May 2009

About

This template is used to simplify creating wiki links. It is used as

 {{link|PAGE_TITLE|ANCHOR|ALT_TEXT}}

All parameters except PAGE_TITLE or ANCHOR are optional (at least one of the two must be supplied). The last specified parameter will be used as the link text. So if only PAGE_TITLE is specified:

 {{link|Adventure Game Studio}}

You would get the link:

    Adventure Game Studio

ANCHOR allows you to specifically link to a subsection of an article while using the subsection's title as the link text. That is:

 {{link|Adventure Game Studio|History}}

Would yield the following link:

    History

ALT_TEXT does as it implies and wllows you to change the text used in the link. So you could do this:

 {{link|Adventure Game Studio|History|AGS History}}

To produce the following link:

    AGS History

You can still specify ALT_TEXT without specifying an ANCHOR as well:

 {{link|Adventure Game Studio||AGS}}

Gives the link:

    AGS

Another great use is to link to a subsection of the current page:

 {{link||About}}

Which produces this:

    About