Vorlage:Webmo staff: Unterschied zwischen den Versionen

Aus ZUM-Unterrichten
KKeine Bearbeitungszusammenfassung
Markierung: 2017-Quelltext-Bearbeitung
KKeine Bearbeitungszusammenfassung
Markierung: 2017-Quelltext-Bearbeitung
Zeile 1: Zeile 1:
<noinclude>
f<noinclude>
This is the <em>template:webmo staff</em>. It fills the page <em>User:webmo_staff.username</em>.<br/><br/>
This is the <em>template:webmo staff</em>. It fills the page <em>User:webmo_staff.username</em>.<br/><br/>
<b>Please note</b>: Each user page is created automatically by the CargoUserManagement extension when a staff member/user creates a wiki account upon invitation or the <em>Special:CreateAccount</em> page. The extension fills the fields <em>webmo_staff.wiki_db_id</em> and <em>webmo_staff.username</em>. The remaining fields can be edited by the user herself via the <em>form:webmo staff</em>. New fields can be added to the <em>webmo_staff</em> table and won't interfere with the CargoUserManagement extension.<br/><br/>
<b>Please note</b>: Each user page is created automatically by the CargoUserManagement extension when a staff member/user creates a wiki account upon invitation or the <em>Special:CreateAccount</em> page. The extension fills the fields <em>webmo_staff.wiki_db_id</em> and <em>webmo_staff.username</em>. The remaining fields can be edited by the user herself via the <em>form:webmo staff</em>. New fields can be added to the <em>webmo_staff</em> table and won't interfere with the CargoUserManagement extension.<br/><br/>
Zeile 34: Zeile 34:
[[Category:Nutzer]]
[[Category:Nutzer]]


{{#vardefine:name|{{#cargo_query:tables=webmo_staff|fields=fullname|where=webmo_staff.username="{{{username}}}"|no html|default=}}}}
{{#vardefine:name|{{#cargo_query:tables=webmo_staff|fields=name|where=webmo_staff.username="{{{username}}}"|no html|default=}}}}
{{DISPLAYTITLE:{{#if:{{#var:name}}|{{#var:name}}|{{{username}}}}}}}
{{DISPLAYTITLE:{{#if:{{#var:name}}|{{#var:name}}|{{{username}}}}}}}
__NOEDITSECTION__
__NOEDITSECTION__
__NOTOC__  
__NOTOC__  
</includeonly>
</includeonly>

Version vom 4. September 2018, 13:02 Uhr

f This is the template:webmo staff. It fills the page User:webmo_staff.username.

Please note: Each user page is created automatically by the CargoUserManagement extension when a staff member/user creates a wiki account upon invitation or the Special:CreateAccount page. The extension fills the fields webmo_staff.wiki_db_id and webmo_staff.username. The remaining fields can be edited by the user herself via the form:webmo staff. New fields can be added to the webmo_staff table and won't interfere with the CargoUserManagement extension.

Note:
1) the form:webmo staff does not create user pages.
2) For reasons of consistency the email is not stored in the CargoDB. For example, if a user changes her user settings in the Wiki preferences, the CargoDB would not update automatically and old emails will pop up here and there. When needed, the email can be retrieved via the CargoUserManagement parser function {{#getEmail:username}} from the Wiki DB directly.

{{#cargo_declare: _table=webmo_staff |wiki_db_id=Integer |username=String |vorname=String |nachname=String |name=String |ueber_mich=String }}