v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:TutorialVersion"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(created)
 
(use ns, not ns/0)
Line 1: Line 1:
 
{{#vardefine:tutorialversion|{{#rsplit:{{FULLPAGENAME}}|:|1}}}}{{#vardefine:tutorial-base|{{#rsplit:{{FULLPAGENAME}}|:|2}}}}{{
 
{{#vardefine:tutorialversion|{{#rsplit:{{FULLPAGENAME}}|:|1}}}}{{#vardefine:tutorial-base|{{#rsplit:{{FULLPAGENAME}}|:|2}}}}{{
 
#ifeq:{{ns/0|{{#var:tutorialversion}}}}|cv|<span class="error">Invalid page name</span>|
 
#ifeq:{{ns/0|{{#var:tutorialversion}}}}|cv|<span class="error">Invalid page name</span>|
{{version links|center=This tutorial is for DF v{{#var:tutorialversion}}.|bottom=[[Tutorial:{{#var:tutorial-base}}|More versions]]|theme={{#ifeq:{{ns/0|{{#var:tutorialversion}}}}|{{DF:Current}}|green|orange}}}}
+
{{version links|center=This tutorial is for DF v{{#var:tutorialversion}}.|bottom=[[Tutorial:{{#var:tutorial-base}}|More versions]]|theme={{#ifeq:{{ns|{{#var:tutorialversion}}}}|{{DF:Current}}|green|orange}}}}
 
}}
 
}}

Revision as of 22:37, 27 November 2022

Invalid page name