Template:ForumLink View history

(Made forumid a variable using a subtemplate to allow for expansion to other communities.)
m (link typo)
Line 7: Line 7:
       | Bring up comments or questions on this {{#if:{{{section|}}}|section|page}} in {{#if:{{{text|}}}{{{1|}}}|<br/>[[File:Forum topic unread.gif|link={{{forum}}}&view=unread#unread]]&nbsp;}}[{{{forum}}} {{#if:{{{text|}}}{{{1|}}}|'''}}{{{text|{{{1|this forum}}}}}}{{#if:{{{text|}}}{{{1|}}}|'''}}]{{#if:{{{text|}}}{{{1|}}}||&nbsp;[[File:Forum topic unread.gif|link={{{forum}}}&view=unread#unread]]}}.
       | Bring up comments or questions on this {{#if:{{{section|}}}|section|page}} in {{#if:{{{text|}}}{{{1|}}}|<br/>[[File:Forum topic unread.gif|link={{{forum}}}&view=unread#unread]]&nbsp;}}[{{{forum}}} {{#if:{{{text|}}}{{{1|}}}|'''}}{{{text|{{{1|this forum}}}}}}{{#if:{{{text|}}}{{{1|}}}|'''}}]{{#if:{{{text|}}}{{{1|}}}||&nbsp;[[File:Forum topic unread.gif|link={{{forum}}}&view=unread#unread]]}}.
       | {{#if: {{{topicid|}}}
       | {{#if: {{{topicid|}}}
       | {{Anchor|ForumLink via topicid}}You can bring up comments or questions about this at <br/>[[File:Forum topic unread.gif|link=http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{/community|{{{community|}}}}}}}}&t={{{topicid}}}&view=unread#unread]]&nbsp;[http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{/community|{{{community|}}}}}}}}&t={{{topicid}}} {{nobr|'''''{{{text|{{{1|this}}}}}}''' forum topic''}}].
       | {{Anchor|ForumLink via topicid}}You can bring up comments or questions about this at <br/>[[File:Forum topic unread.gif|link=http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{ForumLink/community|{{{community|}}}}}}}}&t={{{topicid}}}&view=unread#unread]]&nbsp;[http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{ForumLink/community|{{{community|}}}}}}}}&t={{{topicid}}} {{nobr|'''''{{{text|{{{1|this}}}}}}''' forum topic''}}].
   |{{#if: {{{text|}}}
   |{{#if: {{{text|}}}
       | {{Anchor|ForumLink via text}}Comments or questions on this {{#if:{{{section|}}}|section|page}} can be brought up in the [https://www.waze.com/{{{lang|}}}/forum/search.php?keywords={{urlencode:{{{forum}}}}}&terms=all&sv=0&fid%5B%5D={{{forumid|{{/community|{{{community|}}}}}}}}&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search {{nobr|'''''{{{text}}}''' forum topic''}}].
       | {{Anchor|ForumLink via text}}Comments or questions on this {{#if:{{{section|}}}|section|page}} can be brought up in the [https://www.waze.com/{{{lang|}}}/forum/search.php?keywords={{urlencode:{{{forum}}}}}&terms=all&sv=0&fid%5B%5D={{{forumid|{{ForumLink/community|{{{community|}}}}}}}}&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search {{nobr|'''''{{{text}}}''' forum topic''}}].
     |{{#if: {{{2|}}}
     |{{#if: {{{2|}}}
       | {{Anchor|ForumLink via 2}}You can bring up comments or questions about this in <br/>[[File:Forum topic unread.gif|link=http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{/community|{{{community|}}}}}}}}&t={{{2}}}&view=unread#unread]]&nbsp;[http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{/community|{{{community|}}}}}}}}&t={{{2}}} '''''{{{1|'''this'''}}}''' forum topic''].
       | {{Anchor|ForumLink via 2}}You can bring up comments or questions about this in <br/>[[File:Forum topic unread.gif|link=http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{ForumLink/community|{{{community|}}}}}}}}&t={{{2}}}&view=unread#unread]]&nbsp;[http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{ForumLink/community|{{{community|}}}}}}}}&t={{{2}}} '''''{{{1|'''this'''}}}''' forum topic''].
     |{{#if: {{{1|}}}
     |{{#if: {{{1|}}}
       | {{#ifexpr: {{#ifeq:{{{1}}}|{{#expr:{{{1}}}}}|1|0}} <!--if numeric-->
       | {{#ifexpr: {{#ifeq:{{{1}}}|{{#expr:{{{1}}}}}|1|0}} <!--if numeric-->
             | {{Anchor|ForumLink via 1-numeric|n{{{1}}}n}}Please bring up comments or questions about this in <br/>[[File:Forum topic unread.gif|link=http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{/community|{{{community|}}}}}}}}&t={{#replace:{{{1}}}}}&view=unread#unread]]&nbsp;[http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{/community|{{{community|}}}}}}}}&t={{#replace:{{{1}}}}} {{nobr|''this forum topic''}}].
             | {{Anchor|ForumLink via 1-numeric|n{{{1}}}n}}Please bring up comments or questions about this in <br/>[[File:Forum topic unread.gif|link=http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{ForumLink/community|{{{community|}}}}}}}}&t={{#replace:{{{1}}}}}&view=unread#unread]]&nbsp;[http://www.waze.com/{{{lang|}}}/forum/viewtopic.php?f={{{forumid|{{ForumLink/community|{{{community|}}}}}}}}&t={{#replace:{{{1}}}}} {{nobr|''this forum topic''}}].
             | <!--non-numeric, invoke search--> {{Anchor|ForumLink via 1-alpha}}Please bring up comments or questions on this {{#if:{{{section|}}}|section|page}} in the [https://www.waze.com/{{{lang|}}}/forum/search.php?keywords={{urlencode:{{{1}}}}}&terms=all&sv=0&fid%5B%5D={{{forumid|{{/community|{{{community|}}}}}}}}&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search {{nobr|'''''{{{1}}}''' forum topic''}}].
             | <!--non-numeric, invoke search--> {{Anchor|ForumLink via 1-alpha}}Please bring up comments or questions on this {{#if:{{{section|}}}|section|page}} in the [https://www.waze.com/{{{lang|}}}/forum/search.php?keywords={{urlencode:{{{1}}}}}&terms=all&sv=0&fid%5B%5D={{{forumid|{{ForumLink/community|{{{community|}}}}}}}}&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search {{nobr|'''''{{{1}}}''' forum topic''}}].
             <!--close single positional parameter text or number-->}}
             <!--close single positional parameter text or number-->}}
       |<!--else default!-->{{Anchor|ForumLink via default}}Comments or questions on any Wiki page can be brought up in the [http://www.waze.com/{{{lang|}}}/forum/viewforum.php?f={{{forumid|{{/community|{{{community|}}}}}}}} ''{{#if: {{{forumid|}}}this|'''Wiki{{nbsp}}updates'''}}{{nbsp}}forum{{nbsp}}topic''].
       |<!--else default!-->{{Anchor|ForumLink via default}}Comments or questions on any Wiki page can be brought up in the [http://www.waze.com/{{{lang|}}}/forum/viewforum.php?f={{{forumid|{{ForumLink/community|{{{community|}}}}}}}} ''{{#if: {{{forumid|}}}this|'''Wiki{{nbsp}}updates'''}}{{nbsp}}forum{{nbsp}}topic''].
         <!--close innermost 'if:' we have 1 positional/else no parameters default-->}}
         <!--close innermost 'if:' we have 1 positional/else no parameters default-->}}
     <!--close case of have 2 positional/else 1 or default-->}}
     <!--close case of have 2 positional/else 1 or default-->}}

Revision as of 05:28, 7 June 2016

Comments or questions on any Wiki page can be brought up in the Template:ForumLink/community Wiki updates forum topic.
Documentation icon Template documentation[view] [edit] [history] [purge]

This template provides a box displaying a link to the Wiki forum. It is designed to go on the bottom of pages (or top of talk pages) with an expectation of a high number of user questions.

Usage

Place {{ForumLink}} on a page where this message box is desired. The template is designed to automatically decode as many of the parameters as possible, but a few require being named in the template. The default condition with no parameters will send the user to the general forum on Wiki updates.

Any of the following (simplified syntax):

{{ForumLink | search-linktext }}

{{ForumLink | topicid-wikiforum }}

{{ForumLink | link-text | topicid-wikiforum }}

{{ForumLink | forumid=nnn | search-linktext | topicid }}

{{ForumLink | lang=aa | forumid=nnn | linktext | topicid }}

{{ForumLink | forum=url }}

{{ForumLink | forum=url | linktext}}

Parameters

forum

Optional parameter. The value is a URL to the Waze forum topic thread that covers a discussion of the wiki page that uses this template.

forumid

Optional parameter. If the target Waze forum is not the Wiki forum, the forumid value can be entered. This also requires a |topicid= value.

text

Optional parameter. If the target is using the |forum= or |topicid= parameters, this will modify the link text. otherwise this will used as a forum search query text.

section

Optional parameter. If |section=yes is used it will the displayed text from saying "this page", to say "this section" instead.

community

Optional parameter. If |community=USA (or other community name after being built into the template) is used, the link generated when a forumid or full URL is not specified will point to the local wiki forum for that specific community.

Examples

{{ForumLink|forum=http://www.waze.com/forum/viewtopic.php?f=276&t=98195}}
will generate the following:
Bring up comments or questions on this page in this forum .


{{ForumLink}}
will generate the following:
Comments or questions on any Wiki page can be brought up in the Template:ForumLink/community Wiki updates forum topic.
{{ForumLink|New Page - WME Chat|89344}}</wikilink>
generates:
You can bring up comments or questions about this in
 Template:ForumLink/community&t=89344 New Page - WME Chat forum topic.
{{ForumLink|Go to the first topic in New Jersey's forum, guys!|forumid=249}}
generates:
You can bring up comments or questions about this in
 Go to the first topic in New Jersey's forum, guys! forum topic.

Category added

No category is added to pages with this template.

See also

The above documentation is transcluded from Template:ForumLink/doc.
Please add categories to the /doc subpage.
Subpages of this template.