You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Link: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(created wiki page)
 
No edit summary
Line 1: Line 1:
<includeonly>[http://www.mafiascum.net/forum/viewtopic.php?{{{1}}}={{{2}}}#{{{2}}} {{{3|&nbsp;}}}]</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}}}={{{2}}}#{{{2}}} {{{3|&nbsp;}}}]</includeonly><noinclude>
{{TOCright}}
This template creates a link to either a specific post or thread in the forums.
==Syntax==
To insert this template into a page, use the following syntax:
<pre>
{{link|||}}
</pre>
==Variables==
*1: This distinguishes between a topic or a post.
:Type <code>p</code> for a post, or <code>t</code> for a thread.
*2: This is either the post number or the thread 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=50% | What you type
| width=50% | 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"</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=50% | What you type
| width=50% | 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"</code> in the 1st example above, it just creates an arrow box that links to the post.
|
Example Post{{link|p|713769}}
|}
[[Category:Templates|P]]
</noinclude>

Revision as of 06:21, 20 August 2007

This template creates a link to either a specific post or thread in the forums.

Syntax

To insert this template into a page, use the following syntax:

{{link|||}}

Variables

  • 1: This distinguishes between a topic or a post.
Type p for a post, or t for a thread.
  • 2: This is either the post number or the thread 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:

  • 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 "p="; in the example below: 713769

Example:

Following the 2 steps for the Example Post yields the following URL:
http://www.mafiascum.net/forum/posting.php?mode=quote&p=713769

Note:

The "Quote" function will still provide a URL even if the post is located in a locked topic.

Example Post

Example Post{{link|p|713769}}

Note:

This example has the same effect except instead of making the whole word a link as in "Example" in the 1st example above, it just creates an arrow box that links to the post.

Example Post 

Topics

What you type What it looks like
{{link|p|713769|Example Post}}

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 "p="; in the example below: 713769

Example:

Following the 2 steps for the Example Post yields the following URL:
http://www.mafiascum.net/forum/posting.php?mode=quote&p=713769

Note:

The "Quote" function will still provide a URL even if the post is located in a locked topic.

Example Post

Example Post{{link|p|713769}}

Note:

This example has the same effect except instead of making the whole word a link as in "Example" in the 1st example above, it just creates an arrow box that links to the post.

Example Post