From ee499cb121da0d81c8f33a721d28f1c530ec233e Mon Sep 17 00:00:00 2001
From: "Leigh B. Stoller" <stoller@flux.utah.edu>
Date: Fri, 25 Mar 2005 14:31:06 +0000
Subject: [PATCH] Move the permission notes into separate wiki "include" files
 so that I do not replicate the notes into 1200 files (and of course, so we
 easily change the notes later).

---
 wiki/GroupPermNotes.txt | 20 ++++++++++++++++++++
 wiki/UserPermNotes.txt  | 14 ++++++++++++++
 wiki/usertemplate.in    | 15 ++-------------
 wiki/webhometemplate.in | 21 +--------------------
 4 files changed, 37 insertions(+), 33 deletions(-)
 create mode 100644 wiki/GroupPermNotes.txt
 create mode 100644 wiki/UserPermNotes.txt

diff --git a/wiki/GroupPermNotes.txt b/wiki/GroupPermNotes.txt
new file mode 100644
index 0000000000..b5fee35caf
--- /dev/null
+++ b/wiki/GroupPermNotes.txt
@@ -0,0 +1,20 @@
+__TWiki permissions explained__
+	* The default permissions for Emulab project Wikis is that
+          *only members of your project can access (read and write) the wiki.*
+          Guest users and people outside your project will not be able to
+          read/write your project pages.
+	* Your TWiki [[%WIKIUSERNAME%][homepage]] has the same default
+          permissions. 
+	* If you want to allow a specific Wiki user to access (read/write)
+          your project Wiki, add their TWiki.WikiName to
+          [[%MAINWEB%.%WEB%Group][%WEB%Group]].
+          (Click on the link, and then use _edit_ button in the upper left).
+        * If you want to make your Project wiki *world readable*, edit the
+          WebPreferences file, and clear the ALLOWWEBVIEW and NOSEARCHALL
+          variables.
+        * If you want to make your Project wiki *world writable*, also
+          clear the ALLOWWEBCHANGE variable.
+        * You should leave the ALLOWWEBRENAME, ALLOWTOPICCHANGE, and
+          ALLOWTOPICRENAME variables (WebPreferences) alone.
+	* More details (then you could possibly want) can be found in the
+          TWiki.TWikiAccessControl page.
diff --git a/wiki/UserPermNotes.txt b/wiki/UserPermNotes.txt
new file mode 100644
index 0000000000..7e0896b89a
--- /dev/null
+++ b/wiki/UserPermNotes.txt
@@ -0,0 +1,14 @@
+__TWiki permissions explained__
+	* The default permissions for Emulab user Wikis (this page) is
+          that only *you* can access (read and write) your wiki (homepage).
+	* If you want to allow a specific Wiki user to view (read)
+          your homepage, edit this page (button in upper left) and add
+          their TWiki.WikiName to the ALLOWTOPICVIEW variable above.
+	* If you want to make your wiki homepage *world readable*, edit
+	  this page and clear the ALLOWTOPICVIEW variable above.
+	* We do not recommend that you allow world write to this page.
+	* More details (then you could possibly want) can be found in the
+          TWiki.TWikiAccessControl page.
+
+*In most cases, you probably want to leave this page alone, and add*
+*your TWiki.WikiTopics to specific project wikis.*
diff --git a/wiki/usertemplate.in b/wiki/usertemplate.in
index a96b6984d1..4285b8dbc6 100644
--- a/wiki/usertemplate.in
+++ b/wiki/usertemplate.in
@@ -10,20 +10,9 @@ __Permissions (leave these alone unless you know what you are doing, or ask us)_
 	* Set ALLOWTOPICCHANGE = 
 	* Set ALLOWTOPICRENAME = 
 
-__TWiki permissions explained__
-	* The default permissions for Emulab user Wikis (this page) is
-          that only *you* can access (read and write) your wiki (homepage).
-	* If you want to allow a specific Wiki user to view (read)
-          your homepage, edit this page (button in upper left) and add
-          their TWiki.WikiName to the ALLOWTOPICVIEW variable above.
-	* If you want to make your wiki homepage *world readable*, edit
-	  this page and clear the ALLOWTOPICVIEW variable above.
-	* We do not recommend that you allow world write to this page.
-	* More details (then you could possibly want) can be found in the
-          TWiki.TWikiAccessControl page.
 
-*In most cases, you probably want to leave this page alone, and add*
-*your TWiki.WikiTopics to specific project wikis.*
+%INCLUDE{"Emulab.UserPermNotes"}%
+
 
 __Personal Preferences (details in %TWIKIWEB%.TWikiVariables)__
 	* Horizontal size of text edit box:
diff --git a/wiki/webhometemplate.in b/wiki/webhometemplate.in
index 48304e6b9a..ba9dcafdb1 100644
--- a/wiki/webhometemplate.in
+++ b/wiki/webhometemplate.in
@@ -11,26 +11,7 @@ information on how to write and create TWiki pages.
 __This project wiki can be accessed externally as:__ [[%SCRIPTURL%/view/%WEB%][%SCRIPTURL%/view/%WEB%]]
 
 
-__TWiki permissions explained__
-	* The default permissions for Emulab project Wikis is that
-          *only members of your project can access (read and write) the wiki.*
-          Guest users and people outside your project will not be able to
-          read/write your project pages.
-	* Your TWiki [[%WIKIUSERNAME%][homepage]] has the same default
-          permissions. 
-	* If you want to allow a specific Wiki user to access (read/write)
-          your project Wiki, add their TWiki.WikiName to
-          [[%MAINWEB%.%WEB%Group][%WEB%Group]].
-          (Click on the link, and then use _edit_ button in the upper left).
-        * If you want to make your Project wiki *world readable*, edit the
-          WebPreferences file, and clear the ALLOWWEBVIEW and NOSEARCHALL
-          variables.
-        * If you want to make your Project wiki *world writable*, also
-          clear the ALLOWWEBCHANGE variable.
-        * You should leave the ALLOWWEBRENAME, ALLOWTOPICCHANGE, and
-          ALLOWTOPICRENAME variables (WebPreferences) alone.
-	* More details (then you could possibly want) can be found in the
-          TWiki.TWikiAccessControl page.
+%INCLUDE{"Emulab.GroupPermNotes"}%
 
 
 __TWiki groups that are relevant to your Project/Group__
-- 
GitLab