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) No edit summary |
LyingBrian (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[http://www.mafiascum.net/forum/viewtopic.php?{{{1}}}={{{2}}}#{{{2}}} {{{3| }}}]</includeonly><noinclude> | <includeonly>[http://www.mafiascum.net/forum/viewtopic.php?{{{1}}}={{{2}}}#{{{2}}} {{{3| }}}]</includeonly><noinclude> | ||
{{TOCright}} | {{TOCright}} | ||
This template creates a link to either a specific post or | 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 | *1: This distinguishes between a post or a topic. | ||
:Type <code>p</code> for a post, or <code>t</code> for a | :Type <code>p</code> for a post, or <code>t</code> for a topic. | ||
*2: This is either the post number or the | *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= | | width=75% | What you type | ||
| width= | | 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= | | width=75% | What you type | ||
| width= | | width=25% | What it looks like | ||
|- valign="top" | |- valign="top" | ||
| | | | ||
<pre> | <pre> | ||
{{link| | {{link|t|4578|Example Topic}} | ||
</pre> | </pre> | ||
How to find the | How to find the topic number: | ||
*1) Find the | *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 | *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 | :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/ | <pre>http://www.mafiascum.net/forum/viewtopic.php?t=4578</pre> | ||
| | | | ||
{{link| | {{link|t|4578|Example Topic}} | ||
|- valign="top" | |- valign="top" | ||
| | | | ||
<pre> | <pre> | ||
Example | 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 | :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 | 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, 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:
|