Cookie consent settingsAccept all
  • Skip to header bar
  • Skip to main navigation
  • Skip to page tools
  • Skip to work area
  • New process
  • Overview
    • Files
    • Processes
    • Ratings
    • Recommendations
    • WikiExplorer
    • Workflows
  • Login
Book navigation as tree structure
Main navigation
Getting started with Semantic MediaWiki
PreviousNext
  • 1Semantic MediaWiki Basics
    • 2Example: Customer data
      • 2.1Define properties
        • 2.2Create a template
          • 2.3Create a form
            • 2.4Integrate form edit mode
            • 3Template styling
              • 4Query the data
                • 5Naming conventions
                  Edit book
                  Main navigation contains tabs, main links and MediaWiki sidebar
                  To book navigation
                  Entrypoints
                  • Main Page
                  • Pages
                  • Books
                  • Blogs
                  • Recent changes
                  Quick Links
                  • All topics
                  • Video-Tutorials
                  • Templates download
                  Documentation
                  • Security Advisories
                  • Installation
                  • Releases
                  • Software catalog
                  • Trust & Safety
                  Books
                  • User manual
                  • Admin manual
                  • Semantic MediaWiki basics
                  Participate
                  • BlueSpice community
                  You are viewing an old version of this page. Return to the latest version.
                  This is the version of 22 December 2020, 08:00 by [[User:hw>Mlink-rodrigue|hw>Mlink-rodrigue]]
                  PreviousNext
                  • Manual
                  • Semantic MediaWiki
                    • Examples
                      • Customer data
                        • Template
                        Last edited 3 years ago
                        by Redaktion

                        2.2 Create a template

                        • Deutsch
                        • English
                        Revision as of 08:00, 22 December 2020 by hw>Mlink-rodrigue
                        (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

                        Contents

                        • 1 Creating the display template
                        • 2 Including the template on a page
                        • 3 Next step
                        • 4 Related info

                        Creating the display template

                        To create the template, we go to the page Special:Create template. On this page, we have access to the properties that we have already created.

                        1. Like in the previous step (creating properties), switch to the Page Forms section on the page Special:SpecialPages.

                          Create a template
                          Create a template
                        2. Define the data fields that you want to use in your template. For each property that you created, you need to have a field in the template.
                          Create the template
                          Create the template

                          • Template name (1): Enter Customer data as name for the template.
                          • Category (2): Define a category which will be assigned to all customer pages that use this template. It makes sense to also call this category Customer data.
                          • Field name (3): Create a field name for the property Has location. This field name will later be used to connect the template with the data entry form. The name should not contain spaces.
                          • Display label (4): This is the field label tha tis shown on the customer pages. It can contain spaces.
                          • Semantic property (5): Choose the property Has location that you created in the previous step.
                          • Add field (6): Click Add field to create the fields for the properties Has First contact and Has contact person.
                        3. Click Save page at the end of the page Seite speichern.


                        The template is now available and can be viewed in the Template namespace. You do not have to edit the template any further at this point.

                        Including the template on a page

                        1. To include the template on a customer page, you simply add it from the Visual Editor Insert menu.
                          Insert the template on a page
                          Insert the template on a page
                        2. Start typing the name Customer data and select the template (1). Then, click Add template (2).
                          Select template
                          Select template
                        3. Click Insert.
                          Insert template
                          Insert template
                        4. Save the page. The template is now included on the page.
                          Included template
                          Included template

                        Next step

                        Next, we create a form that makes it easy for users to enter the data.


                        Create a form

                        Related info

                        • https://www.semantic-mediawiki.org/wiki/Help:Semantic_templates Help page for semantic templates




                        PDF exclude - start

                        To submit feedback about this documentation, visit our community forum.

                        PDF exclude - end
                        Retrieved from "https://en.wiki.bluespice.com/w/index.php?title=Manual:Semantic_MediaWiki/Examples/Customer_data/Template&oldid=821"
                        No categories assignedEdit
                        Page actions and tools navigaiton contains tabs, toolbox and actions
                        Actions
                        • Refresh
                        • Copy URL
                        • E-Mail
                        • QR code
                        Details
                        • View history
                        • Page information
                        • Browse properties
                        • ... all actions
                        • Privacy policy
                        • Terms of service
                        • Disclaimer
                        • Imprint
                        • Accessibility
                        • About
                        • Analysis service
                        • Edit preview settings
                        • Powered by MediaWiki
                        • Powered by BlueSpice
                        • Powered by Semantic MediaWiki
                        • Creative Commons License