Template:Forum: Difference between revisions

From Adventure Game Studio | Wiki
Jump to navigation Jump to search
*>Monkey 05 06
(nevermind that formatting thing...)
mNo edit summary
 
(43 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[http://www.bigbluecup.com/yabb/index.php?{{{args|}}} {{{name|AGS forums}}}]</includeonly><noinclude>Provides a link to the AGS forums for easy updating if the link needs to be changed.
<includeonly>[http://www.adventuregamestudio.co.uk/forums/index.php{{#ifeq:{{{2|}}}|||?{{{2}}}{{#ifeq:{{{3|}}}|||={{{3}}}}}{{#ifeq:{{{4|}}}|||={{{4}}}}}{{#ifeq:{{{5|}}}|||={{{5}}}}}}} {{{1|AGS forums}}}]</includeonly><noinclude>'''Examples:'''


'''Usage:''' ''args'' defines the parameters to pass to the URL. ''name'' sets the name of the link.
Template with no parameters: ''<nowiki>{{forum}}</nowiki>''


'''Example:'''
{{forum}}


  <nowiki>{{forum}}</nowiki>
The first parameter sets the link text: ''<nowiki>{{forum|Forums!}}</nowiki>''


Gives:
{{forum|Forums!}}


&nbsp;&nbsp;&nbsp;&nbsp;{{forum}}
The rest of the parameters are appended to the forum address: ''<nowiki>{{forum|Give some hints!|topic|46167.0}}</nowiki>''


  <nowiki>{{forum|args=action=profile;u=1}}</nowiki>
{{forum|Give some hints!|topic|46167.0}}


Gives:
Due to technical reasons, replace equal signs by adding a new parameter: ''<nowiki>{{forum|View CJ's profile!|action|profile;u|1}}</nowiki>''


&nbsp;&nbsp;&nbsp;&nbsp;{{forum|args=action=profile;u=1}}
{{forum|View CJ's profile!|action|profile;u|1}}


  <nowiki>{{forum|args=action=profile;u=1|name=View CJ's profile}}</nowiki>
Currently the template supports up to a maximum of 5 parameters, more can be added if needed.


Gives:
'''See Also:''' [[Template:Thread]]


&nbsp;&nbsp;&nbsp;&nbsp;{{forum|args=action=profile;u=1|name=View CJ's profile}}
[[Category:External link templates]]</noinclude>
 
</noinclude>

Latest revision as of 07:53, 19 August 2012

Examples:

Template with no parameters: {{forum}}

AGS forums

The first parameter sets the link text: {{forum|Forums!}}

Forums!

The rest of the parameters are appended to the forum address: {{forum|Give some hints!|topic|46167.0}}

Give some hints!

Due to technical reasons, replace equal signs by adding a new parameter: {{forum|View CJ's profile!|action|profile;u|1}}

View CJ's profile!

Currently the template supports up to a maximum of 5 parameters, more can be added if needed.

See Also: Template:Thread