Verlinke zu Filmen und Serien ganz einfach mit dem Kürzel ST1, ST2 usw. und TOS, TNG, DSN, VOY, ENT, DSC - z.B. so: %DSC%

De Web Preferences

Customize logo and tooltip texts:

  • Set WEBLOGOIMG = headerlogo_de.png
  • Set WEBLOGOALT = Klingonisch-Wiki - Lernst du noch oder sprichst du schon?
  • Set WEBLOGOURL = /bin/view/De/Hauptseite
  • Set WEBBGCOLOR = #FFCC33
    • web-specific background color, current color

  • Set BROADCASTMESSAGE = Verlinke zu Filmen und Serien ganz einfach mit dem Kürzel ST1, ST2 usw. und TOS, TNG, DSN, VOY, ENT, DSC - z.B. so: %DSC%
  • #Set BROADCASTMESSAGE = Am 18.12.2016 wurde der 1.000ste Artikel geschrieben: Lucifer - großer Dank geht dabei an alle Unterstützer des Klingonisch-Wiki!
  • #Set BROADCASTMESSAGE = Falls die Liste der Übersetzungswünsche abgearbeitet ist, könnte man vergleichen ob neulich bearbeitete Artikel des Englischen Teils im Deutschen auch aktualisiert wurden.

  • Set SITEMAPLIST = on
    • set to off to hide this web from the SiteMap

  • Set WEBSUMMARY = The Wiki in German
    • description what this web is used for

  • Set NOSEARCHALL =
    • if set to on, this web will be exclude web from a global search

  • Set VIEW_TEMPLATE = De.TopicView

Deactivate Autloinking because of Klingon words like QongDaq
This is deactivated on Main.SitePreferences, but set in the WebPreferences of each Web differently, so that other Webs may still have working WikiWords
  • Set NOAUTOLINK = on
  • Set HIDE_NON_WIKI_WORD_WARNINGS = on

Portal Title

ToDo-Macro

  • Set TODO =
      flag   Dieser Artikel wurde zur To-Do-Liste hinzugefügt. Grund: er muss verbessert werden.

Quellenangaben ergänzen Macro

Fiktion Macro

  • Set FIKTION =
      presentation   Dieser Artikel ist aus Sicht des Star-Trek-Universums geschrieben. Die beschriebene Person oder das Ereignis sind nicht real und basieren auf die Filme und Serien.

Meinung Macro

  • Set MEINUNG =
    bubble   Dieser Abschnitt enthält eine PERSÖNLICHE MEINUNG. Sie ist daher eventuell nicht enzyklopädisch neutral. Ergänzungen zu dem Beitrag sind willkommen, jedoch sollte man beachten, dass dies kein Forum ist.

Stub-Macro

Guter Artikel

  • Set PERFEKT =
    Dieser Artikel wurde als beonders ausführlich und wertvoll gekennzeichnet. Klicke für mehr Artikel dieser Art.

Language Setting for HTML-tag

See LANG for details.
  • Set LANG = de

Film-Makros

Klingon Dictionary Kapitel

  • Set TKD =
    TKD
    Kapitel
    0.0.0

Wiki application settings

  • WebTopicEditTemplate

  • Set WEBFORMS = De.TopicForm
    • Comma separated list of forms that can be attached to topics in this web. See DataForms for more information.

Generated Table of Contents (TOC) settings

The first header level to appear in the TOC:
  • Set TOC_MIN_DEPTH = 2
    • If not set: 1
    • Possible values: 1 to 6
The last header level to appear in the TOC:
  • Set TOC_MAX_DEPTH =
    • If not set: 6
    • Possible values: 1 to 6
    • Can be overridden by depth parameter of TOC
The default TOC title:
  • Set TOC_TITLE = Inhaltsverzeichnis:
    • If not set: nothing
    • Possible values: any string, for example On this page:
    • Can be overridden by title parameter of TOC
Do not show a TOC if the topic it contains is included in another topic:
  • Set TOC_HIDE_IF_INCLUDED =
    • If not set: included TOC is shown
    • Possible values: on or nothing

Access control

Users or groups who are allowed to view, change and rename topics in the De web. Remember that an empty setting is a valid setting; setting DENYWEBVIEW to nothing means that anyone can view the web.

  • Set DENYWEBVIEW =
  • Set ALLOWWEBVIEW =
  • Set DENYWEBCHANGE = Main.MobileUser
  • Set ALLOWWEBCHANGE =
  • Set ALLOWWEBRENAME = Main.AdminGroup

Users or groups allowed to change or rename this WebPreferences topic: (e.g., AdminGroup)

  • Set ALLOWTOPICCHANGE = Main.AdminGroup
  • Set ALLOWTOPICRENAME = Main.AdminGroup

Tools

Preference Settings

A preference setting lets you define a simple macro that will be expanded in your output. A preference setting looks like this:

[multiple of 3 spaces] * [space] Set [space] MACRONAME [space] = [space] value

Example:

   * Set WEBBGCOLOR = #FFFFC0
Macros defined using preference settings are expanded by enclosing their name in percent signs. So when you write %WEBBGCOLOR%, it gets expanded to #FFCC33

A preference macro is always taken from the most current topic revision, even when accessing previous revisions of a topic.

Preferences can be defined in a number of places:
  1. System.DefaultPreferences (Foswiki upgrades overwrite this topic)
  2. Main.SitePreferences
  3. Sub-webs inherit the WebPreferences of their parent
  4. WebPreferences
  5. In user topics, if the user has one (yours is Main.WikiGuest)
  6. In (some) plugin documentation topics
  7. In the topic being accessed
Set statements which occur at higher-numbered locations override macros of the same name defined at lower numbered levels, unless the macro was listed in a FINALPREFERENCES setting (finalised) at a lower-numbered level. In this case, the macro is locked to the value at that level; Set statements at higher-numbered levels are ignored.

IDEA! Preference settings can easily be disabled with a # sign. Example:
   * #Set DENYWEBCHANGE = %USERSWEB%.UnknownUser
IDEA! You can hide preference settings in the output by enclosing them in HTML comments; for example,
<!--
   * Set HIDDEN = This will be invisible in the output
-->

If you are setting a preference and using it in the same topic, note that Foswiki reads all the preference settings from the saved version of the topic before it displays anything. This means you can use a setting anywhere in the topic, even if you set it at the very end. But beware: it also means that if you change the setting of a macro you are using in the same topic, Preview will show the wrong thing, and you must Save the topic to see it correctly.

Also note that Foswiki always reads the setting from the most current topic revision, so viewing older revisions of a topic can show unexpected results.

And especially important, preference settings are never overridden or set in "%INCLUDE{" topics. in the below example about weather conditions, note the difference in the CONDITIONS expansion

Spaces between the = sign and the value will be ignored. You can split a value over several lines by indenting following lines with spaces - as long as you don't try to use * as the first character on the following line.

Example:
   * Set MACRONAME = value starts here
     and continues here

Whatever you include in your macro will be expanded on display, exactly as if it had been entered directly (though see Parameters, below).

Example: Create a custom logo macro
  • To place a logo anywhere in a web by typing %MYLOGO%, define the preference settings in the web's WebPreferences topic, and upload a logo file, ex: mylogo.gif. You can upload by attaching the file to WebPreferences, or, to avoid clutter, to any other topic in the same web, e.g. LogoTopic. Sample preference setting in WebPreferences:
   * Set MYLOGO = %PUBURL%/%WEB%/LogoTopic/mylogo.gif

You can also set preference settings in a topic by clicking the link Edit topic preference settings under More topic actions. Preferences set in this manner are known as 'meta' preferences and are not visible in the topic text, but take effect nevertheless.

Parameters

Note that %CONDITIONS% expands differently when this example is viewed in Macros. This is because Set statement are not active in included topics. The including topic's set statements are used.

Macros defined using preference settings can take parameters. These are symbols passed in the call to the macro to define local macros that will be expanded in the output. For example,
   * Set CONDITIONS = According to [[System.%BASETOPIC%][%BASETOPIC%]] the %WHAT% is %STATE% today (Set in ...).
You can call this macro passing in values for WHAT and STATE. For example:
  • %CONDITIONS{WHAT="sea" STATE="choppy"}%
    • expands to %CONDITIONS{WHAT="sea" STATE="choppy"}%.

Parameter defaults

  • The special parameter name DEFAULT gets the value of any unnamed parameter in the macro call.
  • Parameter macros can accept a default parameter so that they expand to something even when a value isn't passed for them in the call.
Example:
   * Set WEATHER = It's %DEFAULT{default="raining"}%.
  • %WEATHER% expands to %WEATHER%
  • %WEATHER{"sunny"}% expands to %WEATHER{"sunny"}%
The standard formatting tokens can be used in parameters. They will be expanded immediately when the macro is instantiated.

ALERT! Note that parameters override all other macros, including system defined macros, in the expansion of the macro where they are used.

Access Control Settings

These are special types of preference settings to control access to content. System.AccessControl explains these security settings in detail. Parameters are not available in access control settings.

Local values for preferences

Certain topics (user, plugin, web, site and default preferences topics) have a problem; macros defined in those topics can have two meanings. For example, consider a user topic. A user may want to use a double-height edit box when they are editing their home topic - but only when editing their home topic. The rest of the time, they want to have a normal edit box. This separation is achieved using Local in place of Set in the macro definition. For example, if the user sets the following in their home topic:
   * Set EDITBOXHEIGHT = 10
   * Local EDITBOXHEIGHT = 20
Then, when they are editing any other topic, they will get a 10 high edit box. However, when they are editing their home topic they will get a 20 high edit box. Local can be used wherever a preference needs to take a different value depending on where the current operation is being performed.

Use this powerful feature with great care! %ALLVARIABLES% can be used to get a listing of the values of all macros in their evaluation order, so you can see macro scope if you get confused.

Related Topics

Kategorie: WikiVerwaltung    Letzte Bearbeitung: 04 Sep 2017, durch WikiAdmin    Erstellt: 27 Mar 2014 durch KliWiki


History: r40 < r39 < r38 < r37 - View wiki text


2007
* Das 14. qep'a' findet statt * Das 6. qepHom Saarbrücken findet ...
LandesmuseumHannover
Das Landesmuseum Hannover bietet seinen Besuchern Postkarten mit Wörtern ...
TalkNow
TalkNow! ist eine Software der erfahrenen Sprach Lern Firma EuroTalk ...

Wochentag:
Heute ist jaj wa'


starred Zufälliger Artikel


  • Search

Andere Sprachen:

flag_en.png English
flag_de.png Deutsch
flag_nl.png Nederlands
flag_fr.png Français

Das Wiki auf Facebook:

 
Klingonisch-Wiki - Lernst du noch oder sprichst du schon?

All text is available under the terms of a Creative Commons License.
Star Trek™, Klingon™ and related names are trademarks of CBS Corporation and Paramount Pictures, and are used under "fair use" guidelines.