You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Link: Difference between revisions
Jump to navigation
Jump to search
LyingBrian (talk | contribs) (created wiki page) |
No edit summary |
||
(28 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[http://www.mafiascum.net/forum/viewtopic.php?{{{1}}}={{{2}}}#{{{2}}} {{{3| }}}]</includeonly><noinclude>This template creates a link to either a specific topic or post in the forums.</noinclude> | <includeonly>[http://www.mafiascum.net/forum/viewtopic.php?{{{1}}}={{#ifeq:{{{1}}}|p|{{{2}}}#p{{{2}}}|{{{2}}}}} {{{3| }}}]</includeonly><noinclude> | ||
{{TOCright}} | |||
This template creates a link to either a specific post or topic in the forums. | |||
==Syntax== | |||
To insert this template into a page, use the following syntax: | |||
<pre> | |||
{{link|||}} | |||
</pre> | |||
==Variables== | |||
*1: This distinguishes between a post or a topic. | |||
:Type <code>p</code> for a post, or <code>t</code> for a topic. | |||
*2: This is either the post number or the topic number. | |||
:See [[#Examples|Examples]] below for further details. | |||
*3: This is the text for the link. | |||
:This variable is optional. See [[#Examples|Examples]] below for further details. | |||
==Examples== | |||
===Posts=== | |||
{| border="1" cellpadding="2" cellspacing="0" | |||
|- | |||
| width=75% | What you type | |||
| width=25% | What it looks like | |||
|- valign="top" | |||
| | |||
<pre> | |||
{{link|p|713769|Example Post}} | |||
</pre> | |||
How to find the post number: | |||
*1) Find the post in the forum, then click the "Quote" button in the top right hand corner of the post. | |||
*2) Look in the address bar of your browser, and notice the URL. The post number directly follows "<code>p=</code>"; in the example below: <code>713769</code> | |||
'''Example:''' | |||
:Following the 2 steps for the Example Post yields the following URL: | |||
<pre>http://www.mafiascum.net/forum/posting.php?mode=quote&p=713769</pre> | |||
'''Note:''' | |||
:The "Quote" function will still provide a URL even if the post is located in a locked topic. | |||
| | |||
{{link|p|713769|Example Post}} | |||
|- valign="top" | |||
| | |||
<pre> | |||
Example Post{{link|p|713769}} | |||
</pre> | |||
'''Note:''' | |||
:This example has the same effect except instead of making the whole word a link as in <code>"Example Post"</code> in the 1st example above, it just creates an arrow box that links to the post. | |||
| | |||
Example Post{{link|p|713769}} | |||
|} | |||
===Topics=== | |||
{| border="1" cellpadding="2" cellspacing="0" | |||
|- | |||
| width=75% | What you type | |||
| width=25% | What it looks like | |||
|- valign="top" | |||
| | |||
<pre> | |||
{{link|t|4578|Example Topic}} | |||
</pre> | |||
How to find the topic number: | |||
*1) Find the topic in one of the forums, then click the title of the topic. | |||
*2) Look in the address bar of your browser, and notice the URL. The topic number directly follows "<code>t=</code>"; in the example below: <code>4578</code> | |||
'''Example:''' | |||
:Following the 2 steps for the Example Topic (located in the "<code>Help!</code>" forum) yields the following URL: | |||
<pre>http://www.mafiascum.net/forum/viewtopic.php?t=4578</pre> | |||
| | |||
{{link|t|4578|Example Topic}} | |||
|- valign="top" | |||
| | |||
<pre> | |||
Example Topic{{link|t|4578}} | |||
</pre> | |||
'''Note:''' | |||
:This example has the same effect except instead of making the whole word a link as in <code>"Example Topic"</code> in the 1st example above, it just creates an arrow box that links to the topic. | |||
| | |||
Example Topic{{link|t|4578}} | |||
|} | |||
[[Category:Templates|Link]] | |||
</noinclude> |
Latest revision as of 14:14, 2 January 2011
This template creates a link to either a specific post or topic in the forums.
Syntax
To insert this template into a page, use the following syntax:
{{link|||}}
Variables
- 1: This distinguishes between a post or a topic.
- Type
p
for a post, ort
for a topic.
- 2: This is either the post number or the topic number.
- See Examples below for further details.
- 3: This is the text for the link.
- This variable is optional. See Examples below for further details.
Examples
Posts
What you type | What it looks like |
{{link|p|713769|Example Post}} How to find the post number:
Example:
http://www.mafiascum.net/forum/posting.php?mode=quote&p=713769 Note:
|
|
Example Post{{link|p|713769}} Note:
|
Topics
What you type | What it looks like |
{{link|t|4578|Example Topic}} How to find the topic number:
Example:
http://www.mafiascum.net/forum/viewtopic.php?t=4578 |
|
Example Topic{{link|t|4578}} Note:
|