Template:LinkForumThread: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) Link template for forum threads |
DroneBetter (talk | contribs) m sorry, accidentally removed space (I hope an & nbsp ; will suffice) |
||
| (20 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>* {{#if:{{{ | <includeonly>{{#ifeq: {{{format|}}} | ref | | {{#ifeq: {{{format|}}} | raw | | * }} }} {{#if: {{{author|}}} | {{{author}}}{{#if: {{{date|}}} | ({{{date}}}) }}. }} [https://conwaylife.com/forums/viewtopic.php?{{#if:{{{f|}}}|f={{{f}}}}}{{#if:{{{t|}}}|&t={{{t}}}}}{{#if:{{{p|}}}|&p={{{p}}}#p{{{p}}}}} {{{title|}}}]{{#ifeq: {{{format|}}}|raw|| (discussion thread) at the ConwayLife.com forums}} [[Category:Pages that link to the ConwayLife.com forums]]</includeonly><noinclude>This is a template for including links to threads and individual posts on the '''[https://conwaylife.com/forums/ ConwayLife.com forums]''' in the "External Links" section of an article. It can take the following parameters: | ||
* ''t'', the id number of the thread being linked to (optional); | |||
* ''f'', the id number of the forum the thread is located in (optional); | |||
* ''p'', the id number of a specific post to be linked to (optional); | |||
* ''title'', the title of the thread as it will appear in the link text (mandatory); | |||
* ''author'', the author of the thread or post (optional) | |||
* ''format'', the way the resulting link should be formatted (optional): | |||
:* ''format=ref'', format with a bullet point in a way suitable for <tt><nowiki><ref> ... </ref></nowiki></tt> tags. | |||
:* ''format=raw'', remove ending " (discussion thread) at the ConwayLife.com forums" text | |||
* ''date'', the date the forum post was posted (optional, if ''author'' is specified); | |||
Here are three simple usage examples: | |||
'''You type:''' | '''You type:''' | ||
| Line 9: | Line 19: | ||
'''You see:''' | '''You see:''' | ||
* [ | * [https://conwaylife.com/forums/viewtopic.php?t=1452 Soup search results] (discussion thread) at the ConwayLife.com forums | ||
'''You type:''' | |||
<tt><nowiki>{{LinkForumThread|p=46748|title=Re: Soup search results}}</nowiki></tt> | |||
'''You see:''' | |||
* [https://conwaylife.com/forums/viewtopic.php?t=&p=46748#p46748 Re: Soup search results] (discussion thread) at the ConwayLife.com forums | |||
'''You type:''' | |||
<pre><nowiki><ref name="post46748" /> | |||
==References== | |||
<references> | |||
<ref name="post46748">{{LinkForumThread | |||
|f = 7 | |||
|t = 2036 | |||
|p = 46748 | |||
|title = Re: Thread for basic questions | |||
|format = ref | |||
}}</ref> | |||
</references></nowiki></pre> | |||
'''You see:''' a footnote link<sup>1</sup> at the '''ref''' tag location, and a reference section containing | |||
== | 1. [https://conwaylife.com/forums/viewtopic.php?f=7&t=2036&p=46748#p46748 Re: Thread for basic questions] (discussion thread) at the ConwayLife.com forums | ||
==See also== | |||
{{ListOfLinkTemplates}} | {{ListOfLinkTemplates}} | ||
[[Category:Citation templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 14:54, 14 May 2024
This is a template for including links to threads and individual posts on the ConwayLife.com forums in the "External Links" section of an article. It can take the following parameters:
- t, the id number of the thread being linked to (optional);
- f, the id number of the forum the thread is located in (optional);
- p, the id number of a specific post to be linked to (optional);
- title, the title of the thread as it will appear in the link text (mandatory);
- author, the author of the thread or post (optional)
- format, the way the resulting link should be formatted (optional):
- format=ref, format with a bullet point in a way suitable for <ref> ... </ref> tags.
- format=raw, remove ending " (discussion thread) at the ConwayLife.com forums" text
- date, the date the forum post was posted (optional, if author is specified);
Here are three simple usage examples:
You type:
{{LinkForumThread|t=1452|title=Soup search results}}
You see:
- Soup search results (discussion thread) at the ConwayLife.com forums
You type:
{{LinkForumThread|p=46748|title=Re: Soup search results}}
You see:
- Re: Soup search results (discussion thread) at the ConwayLife.com forums
You type:
<ref name="post46748" />
==References==
<references>
<ref name="post46748">{{LinkForumThread
|f = 7
|t = 2036
|p = 46748
|title = Re: Thread for basic questions
|format = ref
}}</ref>
</references>
You see: a footnote link1 at the ref tag location, and a reference section containing
1. Re: Thread for basic questions (discussion thread) at the ConwayLife.com forums
See also
- Pages that link to external sites (category)
External link templates
- Template:Cata
- Template:LinkCallahan
- Template:LinkCatagolue
- Template:LinkCatagolueRule
- Template:LinkEppstein
- Template:LinkEppsteinRule
- Template:LinkForumThread
- Template:LinkGoLDictionary
- Template:LinkGoLNews
- Template:LinkGollyHelp
- Template:LinkLexicon
- Template:LinkMathworld
- Template:LinkMirek
- Template:LinkNiemiec
- Template:LinkPentadecathlonObject
- Template:LinkWikipedia
- Template:LinkYouTube
- Template:MathGenealogy
- Template:OEIS