Difference between revisions of "Template:Forum"

From Space Engineers Wiki
Jump to: navigation, search
(Support for thew new changelog page url)
m (Previous method would not work for Main page where template calls can not be altered.)
Line 1: Line 1:
 
<!-- Keen Software House has retired the forums.
 
<!-- Keen Software House has retired the forums.
  
The new template argument "pcannouncement" produces a link to the new changelog page instead of the defunct forums. The old behavior is kept intact to not disturb any old urls, should someone want to know where they pointed.
+
A hack to detect if the input is a number or text.
 +
This produces a link to the new changelog page instead of the defunct forums.
 +
The old behavior is kept intact to not disturb any old urls, should someone want to know where they pointed.
  
-->{{#if: {{{pcannouncement|}}}<!--
+
-->{{#ifeq: {{#expr: {{{1|}}} + 0}}| {{{1|}}}<!--
  -->|[https://support.keenswh.com/spaceengineers/pc/announcement/{{{pcanouncement}}} {{{2|Announcement}}}]<!--
 
 
   -->|[https://forum.keenswh.com/threads/{{{1|}}} {{{2|Forum Post}}}]<!--
 
   -->|[https://forum.keenswh.com/threads/{{{1|}}} {{{2|Forum Post}}}]<!--
 +
  -->|[https://support.keenswh.com/spaceengineers/pc/announcement/{{{1|}}} {{{2|Announcement}}}]<!--
 
-->}}
 
-->}}

Revision as of 14:16, 10 December 2020

Announcement