Template:Participant: Difference between revisions
No edit summary |
(→Discord: new section) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params:|Timezone (property=Timezone)|Homepage (label=Homepage(s);list;property=Has Homepage;display=nonempty)|Affiliation (label=Institutional Affiliation(s);list;property=Affiliated With;display=nonempty)|Projects (label=Relevant Projects;list;property=Associated with;display=nonempty)|Interests (label=Topic Interests;list;property=Interested In;display=nonempty)|Group (label=Group(s);list;property=In Group;display=nonempty)|Table Assignment(label=Table Assignment;list;property=Assigned Table;display=nonempty)|ORCID (property=Has ORCID;display=nonempty)|Twitter (label=Twitter Handle;property=Has Twitter Handle;display=nonempty)|Fediverse (label=Mastodon/Fediverse Handle;property=Has Fedi Handle;display=nonempty)|Github (label=GitHub handle;property=Has Github Handle;display=nonempty)|Other Git Handles (label=Other Git Handles (Codeberg/GitLab/etc.);list;property=Has Git Handle;display=nonempty)|FOAF (label=FOAF URI;property=Has FOAF;display=nonempty)}} | {{#template_params:|Timezone (property=Timezone)|Homepage (label=Homepage(s);list;property=Has Homepage;display=nonempty)|Affiliation (label=Institutional Affiliation(s);list;property=Affiliated With;display=nonempty)|Projects (label=Relevant Projects;list;property=Associated with;display=nonempty)|Interests (label=Topic Interests;list;property=Interested In;display=nonempty)|Group (label=Group(s);list;property=In Group;display=nonempty)|Table Assignment(label=Table Assignment;list;property=Assigned Table;display=nonempty)|Discord Handle(property=Has Discord Handle;display=nonempty)|ORCID (property=Has ORCID;display=nonempty)|Twitter (label=Twitter Handle;property=Has Twitter Handle;display=nonempty)|Fediverse (label=Mastodon/Fediverse Handle;property=Has Fedi Handle;display=nonempty)|Github (label=GitHub handle;property=Has Github Handle;display=nonempty)|Other Git Handles (label=Other Git Handles (Codeberg/GitLab/etc.);list;property=Has Git Handle;display=nonempty)|FOAF (label=FOAF URI;property=Has FOAF;display=nonempty)}} | ||
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;" | </noinclude><includeonly> | ||
{{#set:Interested In={{#ask:[[Has Interested Participant::{{SUBJECTPAGENAME}}]]|?=#}}|+sep=,}} | |||
{{#set:Member of={{#ask:[[Has Member::{{SUBJECTPAGENAME}}]]|?=#}}|+sep=,}} | |||
{{#set:Interested In={{{Interests|}}}|+sep=,}} | |||
{{#set:Member of={{{Group|}}}|+sep=,}} | |||
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;" | |||
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span> | ! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span> | ||
|- | |- | ||
Line 28: | Line 33: | ||
{{!}}- | {{!}}- | ||
! Topic Interests | ! Topic Interests | ||
{{!}} {{# | {{!}} {{#show:{{SUBJECTPAGENAME}}|?Interested In}} | ||
}} | }} | ||
|- | |||
! Group(s) | ! Group(s) | ||
| {{#show:{{SUBJECTPAGENAME}}|?Member of}} | |||
{{#if:{{{Table Assignment|}}}| | {{#if:{{{Table Assignment|}}}| | ||
{{!}}- | {{!}}- | ||
! Table | ! Table Assignment | ||
{{!}} {{#arraymap:{{{Table Assignment|}}}|,|x|[[Table | {{!}} {{#arraymap:{{{Table Assignment|}}}|,|x|[[Assigned Table::x]]}} | ||
}} | |||
{{#if:{{{Discord Handle|}}}| | |||
{{!}}- | |||
! Discord Handle | |||
{{!}} [[Has Discord Handle::{{{Discord Handle|}}}]] | |||
}} | }} | ||
Line 79: | Line 89: | ||
[[Category:Participant]] | [[Category:Participant]] | ||
</includeonly> | </includeonly> | ||
== Discord == | |||
{{Message | |||
|Author=sneakers-the-rat | |||
|Avatar=https://cdn.discordapp.com/avatars/305044217393053697/2970b22bd769d0cd0ee1de79be500e85.png?size=1024 | |||
|Date Sent=22-11-12 19:32:48 | |||
|Channel=discourse-modeling | |||
|Text=[[Page Schemas#Creating a new Schema]] | |||
Page schemas is mostly a handy way to generate boilerplate templates and link them to semantic properties. A Form (using [[Page Forms]] is something that is an interface for filling in values for a template. | |||
For an example of how this shakes out, see | |||
[[:Category:Participant]] | |||
[[Template:Participant]] | |||
[[Form:Participant]] | |||
* go to a `Category:CategoryName` page, creating it if it doesn't already exist. | |||
* Click "Create schema" in top right | |||
* If you want a form, check the "Form" box. it is possible to make a schema without a form. The schema just defines what pages will be generated, and the generated pages can be further edited afterwards (note that this might make them inconsistent with the schema) | |||
* Click "add template" If you are only planning on having one template per category, name the template the same thing as the category. | |||
* Add fields! Each field can have a corresponding form input (with a type, eg. a textbox, token input, date selector, etc.) and a semantic property. | |||
* Once you're finished, save the schema | |||
* Click "Generate pages" on the category page. Typically you want to uncheck any pages that are already bluelinks so you don't overwrite them. You might have to do the 'generate pages' step a few times, and it can take a few minutes, bc it's pretty buggy. | |||
|Link=https://discord.com/channels/1029514961782849607/1038988750677606432/1041073096687370250 | |||
}} |
Latest revision as of 19:31, 12 November 2022
This is the "Participant" template.
It should be called in the following format:
{{Participant |Timezone= |Homepage= |Affiliation= |Projects= |Interests= |Group= |Table Assignment= |Discord Handle= |ORCID= |Twitter= |Fediverse= |Github= |Other Git Handles= |FOAF= }}
Edit the page to see the template text.
Discord
Page Schemas#Creating a new Schema Page schemas is mostly a handy way to generate boilerplate templates and link them to semantic properties. A Form (using Page Forms is something that is an interface for filling in values for a template.
For an example of how this shakes out, see Category:Participant Template:Participant Form:Participant
- go to a `Category:CategoryName` page, creating it if it doesn't already exist.
- Click "Create schema" in top right
- If you want a form, check the "Form" box. it is possible to make a schema without a form. The schema just defines what pages will be generated, and the generated pages can be further edited afterwards (note that this might make them inconsistent with the schema)
- Click "add template" If you are only planning on having one template per category, name the template the same thing as the category.
- Add fields! Each field can have a corresponding form input (with a type, eg. a textbox, token input, date selector, etc.) and a semantic property.
- Once you're finished, save the schema
- Click "Generate pages" on the category page. Typically you want to uncheck any pages that are already bluelinks so you don't overwrite them. You might have to do the 'generate pages' step a few times, and it can take a few minutes, bc it's pretty buggy.