Difference between revisions of "Template:forum ref"

From Lord of the Craft
Jump to: navigation, search
(Made a template for forum references)
 
m
 
(7 intermediate revisions by the same user not shown)
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|}}}|<!--
 +
  -->{{#tag:ref|<!--
 +
  -->[https://www.lordofthecraft.net/forums/topic/{{{1}}}--/ {{#if:{{{2|}}}|<!--
 +
    -->{{{2}}}|<!--
 +
    -->User failed to give a title}}]<!--
 +
  -->|name={{{1}}}forum}}|<!--
 +
  --><span style='color: red'>BROKEN REFERENCE</span>}}<!--
 +
--></includeonly>
 
<noinclude>[[Category:Template]]
 
<noinclude>[[Category:Template]]
 
Template works as follows:
 
Template works as follows:

Latest revision as of 15:30, 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.