Skip to content

Commit

Permalink
Item13480: Remove HIDE_NON_WIKI_WORD_WARNINGS
Browse files Browse the repository at this point in the history
This is getting too complex.  It's easier to just override the templates
with the  desired changes.
  • Loading branch information
gac410 committed Jun 29, 2015
1 parent 7e69e14 commit 82079ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 1 addition & 3 deletions core/data/System/DefaultPreferences.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1434574342" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1435589524" format="1.1" version="1"}%
%META:TOPICPARENT{name="AdminToolsCategory"}%
---+!! <nop>%WIKITOOLNAME% Site-Level Preferences

Expand Down Expand Up @@ -48,8 +48,6 @@ Preference settings local to your site should be set in [[%LOCALSITEPREFS%]] (th
* Prevent automatic linking of [[%SYSTEMWEB%.WikiWords][WikiWords]] and [[%SYSTEMWEB%.ACRONYM][acronyms]] (if set to =on=); link <nop>WikiWords (if empty); can be overwritten by web preferences:
* Set NOAUTOLINK =
* *Note:* Use the =[<nop>[...][...]]= syntax to link topics in case you disabled <nop>WikiWord linking. The =&lt;noautolink&gt; ... &lt;/noautolink&gt;= syntax can be used to prevents links within a block of text.
* If you use non !WikiWords for topic names (for example "Expenses" or "Mighty1") and if you use bracket notation to link to those topics, it is useful to *turn of all warnings* (like: "WARNING: This topic name is not recommended because it will not be linked automatically") and checkboxes ("Allow non !WikiWord for the new topic name"). Can be overwritten by web preferences. Set to =on= to activate:
* Set HIDE_NON_WIKI_WORD_WARNINGS =

* Warn if =%<nop>INCLUDE{}%= of topic fails: Fail silently if empty or =off=. Output warning message (defined in templates/oopsalerts.tmpl) if set to =on=. Otherwise output specific text (use =$topic= for topic). You can override this in web preferences, or by using a =warn="..."= parameter with =%<nop>INCLUDE{}%= :
* Set INCLUDEWARNING = on
Expand Down
8 changes: 6 additions & 2 deletions core/data/System/ReleaseNotes01x02.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1434387485" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1435589524" format="1.1" version="1"}%
%META:TOPICPARENT{name="ReleaseHistory"}%
---+!! Foswiki Release 1.2.0 Beta 2

Expand Down Expand Up @@ -66,7 +66,11 @@ Foswiki 1.2 is shipped with the following: ( __New to Foswiki 1.2__ )
* Perl 5.8.8 is the minimum perl version. The newer the better. There are know issues with international characters and Perl 5.16.x See [[%BUGS%/Item13424][Item13424]]. For international character set support, Perl 5.18+ is recommended.
</div>

---++ Deprecation
---++ Deprecation and removals

---+++ Setting HIDE_NON_WIKI_WORD_WARNINGS has been removed
This setting was used to hide the checkbox for controlling whether or not non-WikiWord topic names are permitted. The checkbox is now always visible.
The recommended replacement is to use a SKIN setting to override foswiki.tmpl.

---+++ Space delimited square bracket links have been removed.
The long-deprecated =[<nop>[http://foswiki.org Spaced title]]= link format has been removed. Links must be written as =[<nop>[url][title]]= format if a title is desired.
Expand Down
2 changes: 1 addition & 1 deletion core/templates/foswiki.tmpl
Expand Up @@ -27,7 +27,7 @@ but may be used in derived templates.
---------------------------------------------------
}%%TMPL:DEF{"onlywikinameallowed"}%<input type="hidden" name="onlywikiname" value="%URLPARAM{"onlywikiname" default="on"}%" />%TMPL:END%%{
---------------------------------------------------
}%%TMPL:DEF{"onlywikiname"}%%IF{"$HIDE_NON_WIKI_WORD_WARNINGS!='on'" then="$percntTMPL:P{$quotonlywikinamewarning$quot}$percnt" else="$percntTMPL:P{$quotonlywikinameallowed$quot}$percnt"}%%TMPL:END%%{
}%%TMPL:DEF{"onlywikiname"}%%TMPL:P{"onlywikinamewarning"}%%TMPL:END%%{
---------------------------------------------------
}%%TMPL:DEF{"htmldoctype"}%<!DOCTYPE html>
<html lang="%LANG%">%TMPL:END%%{
Expand Down

0 comments on commit 82079ee

Please sign in to comment.