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
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[http://www.mafiascum.net/forum/viewtopic.php?{{{1}}}={{{2}}}{{#ifeq:{{{1}}}|p|#p{{{2}}}|&nbsp;}} {{{3|&nbsp;}}}]</includeonly><noinclude>
<includeonly>[http://www.mafiascum.net/forum/viewtopic.php?{{{1}}}={{#ifeq:{{{1}}}|p|{{{2}}}#p{{{2}}}|{{{2}}}}} {{{3|&nbsp;}}}]</includeonly><noinclude>
 
{{link|p|111|}}
 
{{link|t|111|}}
 
{{link|p|111|aaa}}
 
{{link|t|111|aaa}}
 
{{TOCright}}
{{TOCright}}
This template creates a link to either a specific post or topic in the forums.
This template creates a link to either a specific post or topic in the forums.

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, 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