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
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>[http://www.mafiascum.net/forum/viewtopic.php?{{{1}}}={{{2}}}#{{{2}}} {{{3|&nbsp;}}}]</includeonly><noinclude>
<includeonly>[http://www.mafiascum.net/forum/viewtopic.php?{{{1}}}={{{2}}}#{{{2}}} {{{3|&nbsp;}}}]</includeonly><noinclude>
{{TOCright}}
{{TOCright}}
This template creates a link to either a specific post or thread in the forums.
This template creates a link to either a specific post or topic in the forums.
==Syntax==
==Syntax==
To insert this template into a page, use the following syntax:
To insert this template into a page, use the following syntax:
Line 8: Line 8:
</pre>
</pre>
==Variables==
==Variables==
*1: This distinguishes between a topic or a post.
*1: This distinguishes between a post or a topic.
:Type <code>p</code> for a post, or <code>t</code> for a thread.
:Type <code>p</code> for a post, or <code>t</code> for a topic.
*2: This is either the post number or the thread number.
*2: This is either the post number or the topic number.
:See [[#Examples|Examples]] below for further details.
:See [[#Examples|Examples]] below for further details.
*3: This is the text for the link.
*3: This is the text for the link.
Line 18: Line 18:
{| border="1" cellpadding="2" cellspacing="0"
{| border="1" cellpadding="2" cellspacing="0"
|-  
|-  
| width=50% | What you type
| width=75% | What you type
| width=50% | What it looks like
| width=25% | What it looks like
|- valign="top"
|- valign="top"
|
|
Line 41: Line 41:
</pre>
</pre>
'''Note:'''
'''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.
: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}}
Example Post{{link|p|713769}}
Line 48: Line 48:
{| border="1" cellpadding="2" cellspacing="0"
{| border="1" cellpadding="2" cellspacing="0"
|-  
|-  
| width=50% | What you type
| width=75% | What you type
| width=50% | What it looks like
| width=25% | What it looks like
|- valign="top"
|- valign="top"
|
|
<pre>
<pre>
{{link|p|713769|Example Post}}
{{link|t|4578|Example Topic}}
</pre>
</pre>
How to find the post number:
How to find the topic number:
*1) Find the post in the forum, then click the "Quote" button in the top right hand corner of the post.  
*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 post number directly follows "<code>p=</code>"; in the example below: <code>713769</code>
*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:'''
'''Example:'''
:Following the 2 steps for the Example Post yields the following URL:
: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/posting.php?mode=quote&p=713769</pre>
<pre>http://www.mafiascum.net/forum/viewtopic.php?t=4578</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}}
{{link|t|4578|Example Topic}}
|- valign="top"
|- valign="top"
|
|
<pre>
<pre>
Example Post{{link|p|713769}}
Example Topic{{link|t|4578}}
</pre>
</pre>
'''Note:'''
'''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.
: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 Post{{link|p|713769}}
Example Topic{{link|t|4578}}
|}
|}
[[Category:Templates|P]]
[[Category:Templates|P]]
</noinclude>
</noinclude>

Revision as of 06:39, 20 August 2007

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, or t 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:

  • 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 Post" 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|t|4578|Example Topic}}

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

Example:

Following the 2 steps for the Example Topic (located in the "Help!" forum) yields the following URL:
http://www.mafiascum.net/forum/viewtopic.php?t=4578

Example Topic

Example Topic{{link|t|4578}}

Note:

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

Example Topic