Difference between revisions of "Template:forum ref"
(Made a template for forum references) |
m (fixed formatting) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{{1|}}}|<ref name="{{{1}}}">{{#if:{{{2|}}}|[https://www.lordofthecraft.net/forums/topic/{{{1}}}--/ {{{2}}}]|[https://www.lordofthecraft.net/forums/topic/{{{1}}}--/ User failed to give a title]}}</ref>|<span style='color: red'>BROKEN REFERENCE</span>}}</includeonly> | + | <includeonly><!-- |
+ | -->{{#if:{{{1|}}}|<!-- | ||
+ | --><ref name="{{{1}}}"><!-- | ||
+ | -->{{#if:{{{2|}}}|<!-- | ||
+ | -->[https://www.lordofthecraft.net/forums/topic/{{{1}}}--/ {{{2}}}]|<!-- | ||
+ | -->[https://www.lordofthecraft.net/forums/topic/{{{1}}}--/ User failed to give a title]}}<!-- | ||
+ | --></ref>|<span style='color: red'>BROKEN REFERENCE</span>}}<!-- | ||
+ | --></includeonly> | ||
<noinclude>[[Category:Template]] | <noinclude>[[Category:Template]] | ||
Template works as follows: | Template works as follows: |
Revision as of 14:34, 28 August 2021
Template works as follows:
{{forum ref|[post id]|[post title]}}
in which the ID must be given, and the post title should be given.