aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-07-11 15:58:02 +0200
committerGuillem Jover <guillem@debian.org>2019-03-18 00:11:25 +0100
commit49505301a59910f7d0772a52219bfabfd50fd508 (patch)
tree87a57d3d61d3bc0ae74e25164a345e8c21303e3d
parent49468adc9e078833949684fba6ce4a743ae8f5a6 (diff)
templates: Add debian/redirect.wml
This new template can be used to redirect old pages to new ones, so that we do not leave dangling links to our pages, and users unable to know where the new stuff went to.
-rw-r--r--english/template/debian/redirect.wml31
1 files changed, 31 insertions, 0 deletions
diff --git a/english/template/debian/redirect.wml b/english/template/debian/redirect.wml
new file mode 100644
index 00000000000..fcfb3939834
--- /dev/null
+++ b/english/template/debian/redirect.wml
@@ -0,0 +1,31 @@
+#use wml::debian::basic SUMMARY="$(SUMMARY)" title="Page redirected to $(newpage)"
+#use wml::debian::languages
+
+<define-tag redirect whitespace=delete>
+ <div class="important">
+ <p>
+ <gettext>This page has been renamed to <url "%0">, please update your links.</gettext>
+ </p>
+ </div>
+</define-tag>
+
+{#check_trans#}
+
+<ifeq "$(NOHEADER)" "" "
+<h1>$(title)</h1>
+"/>
+
+{#pre_footer#:
+<hrlinehidden/>
+
+<ifeq "$(NOHOMELINK)" "" "
+<p><returnline/></p>
+<hrline/>
+"/>
+
+<ifeq "$(NOLANGUAGES)" "" "
+<:= languages_footer() :>
+"/>
+:#pre_footer#}
+
+<redirect $(newpage)>

© 2014-2024 Faster IT GmbH | imprint | privacy policy