No edit summary |
No edit summary |
||
Line 53: | Line 53: | ||
*Dedicated namespace "Template" | *Dedicated namespace "Template" | ||
*Can take parameters | *Can take parameters | ||
*Example: <code><nowiki>{{Infobox|London}}</nowiki></code> | |||
===Page templates=== | ===Page templates=== | ||
Line 72: | Line 73: | ||
==Functions== | ==Functions== | ||
=== Redirects === | ===Redirects=== | ||
* Abbreviations | *Abbreviations | ||
* Synonyms | *Synonyms | ||
* Plural / singular | *Plural / singular | ||
* After renaming/moving a page | *After renaming/moving a page | ||
=== Behavior switches === | ===Behavior switches=== | ||
* Aka "double underscores" | *Aka "double underscores" | ||
* Example: <code><nowiki>__NOTOC__</nowiki></code> | *Example: <code><nowiki>__NOTOC__</nowiki></code> | ||
* Influences the particular page it is used on | *Influences the particular page it is used on | ||
===Variables=== | |||
*Placeholder for a value that gets filled by the wiki system | |||
*Example: <code><nowiki>{{PAGENAME}}</nowiki></code> --> {{PAGENAME}} | |||
*Automatically set | |||
*Context sensitive | |||
=== Parser functions === | |||
* "scripting / programming language" for wikitext | |||
* Used to add "logic" | |||
* Mainly used within templates | |||
=== Tag === | |||
* NOT RELATED TO "Category" | |||
* Example: <code><nowiki><smartlist /></nowiki></code> | |||
* Placeholder for complex output | |||
** e.g. user interface | |||
* Customisations | |||
<br /> | |||
=== Import / export === | |||
TBD |
Revision as of 16:02, 3 June 2020
Structuring
Page
- "Specialpages": Automatically generated content; "Maintenance lists"; "Manager interface"
- "Contentpages": User generated content; versioned changes;
- "Wikipage"
- "File description pages": Hybrid page
- "Cagetory pages": Hybrid page
- ...
Namespace
- Avoid naming collisions
- Used for access restrictions
- A page can only be assigned to one namespace
- Can be identified by a prefix in the page name
- Exception: "Main namespace", aka "(Pages)"
- Special predefined namespaces, like "File", "Category", "User", "Template", ...
- Custom namespaces: E.g. for "Documenttypes" or "Organisational structuring"
- "Talk" namespaces: Associated namespace, like "User_talk", "Template_talk", ...
- Certain functions of the wiki can be activated/deactivated based on namespaces
Category
- "Tagging" mechanism --> Multiple categories for a page
- Namespace independent
- Part of the content --> Everyone that can edit a regular contentpage can also create categories
- Category pages can be categorized --> Treelike catgegory structure
Subpage
- Path indicated by "/" (=forward slash)
- Example: "Product:N52000786-2/Technical notes"
- "Product:" => "namespace prefix"
- "N52000786-2" => "root / parent pagename"
- "Technical notes" => "subpage name"
- Recommendation: not more than two levels
- When to use?
- "strong association" of pages
- "avoid naming collisions"
- When not to use?
- Knowledge base-like content
Content and formatting
Templates (=Text-templates, Text-blocks)
- Include contents
- "Transclusion" => Transfrom + Include
- Dedicated namespace "Template"
- Can take parameters
- Example:
{{Infobox|London}}
Page templates
- Only used then a new page is created
- Prefill mechanism
Wikitext
- Simple to learn
- Effcient to create
- Easy to compare
- (Inline) formantting like bold, italic, underline, ...
- Structuring (markup) like lists, tables, headings, ...
- Special functionality like "Tags", "Hidden comments", ...
- Subset of HTML
- UTF-8 enabled
Functions
Redirects
- Abbreviations
- Synonyms
- Plural / singular
- After renaming/moving a page
Behavior switches
- Aka "double underscores"
- Example:
__NOTOC__
- Influences the particular page it is used on
Variables
- Placeholder for a value that gets filled by the wiki system
- Example:
{{PAGENAME}}
--> Maintainer Training - Automatically set
- Context sensitive
Parser functions
- "scripting / programming language" for wikitext
- Used to add "logic"
- Mainly used within templates
Tag
- NOT RELATED TO "Category"
- Example:
<smartlist />
- Placeholder for complex output
- e.g. user interface
- Customisations
Import / export
TBD