Actions

Bộ nhãn

From LimeSurvey Manual

Revision as of 18:23, 15 January 2024 by Maren.fritz (talk | contribs) (Created page with "==...sắp xếp lại nhãn==")

Chung

Bộ nhãn là các mẫu danh sách trong đó mỗi danh sách có một bộ mã có nhãn và có thể được sử dụng trong hầu hết các loại câu hỏi dưới dạng câu trả lời hoặc câu hỏi phụ. Xin lưu ý rằng bộ nhãn của LimeSurvey chỉ được sao chép vào câu hỏi cụ thể dưới dạng câu hỏi phụ hoặc câu trả lời. Do đó, nếu bạn thay đổi một bộ nhãn sau khi bạn đã 'sử dụng' nó trong bảng câu hỏi, những thay đổi đó sẽ không lan truyền đến các câu hỏi từ bảng câu hỏi có sử dụng bộ nhãn tương ứng.

Việc sử dụng bộ nhãn mới này mang lại sự linh hoạt hơn nhiều cho việc phát triển trong tương lai và làm cho cấu trúc của câu hỏi trở nên hợp lý hơn.

Template:Cảnh báo

Dưới đây là ví dụ về bộ nhãn để giúp bạn hiểu rõ hơn về khái niệm này. Bấm vào đây nếu bạn muốn truy cập thẳng vào chức năng quản lý bộ nhãn của LimeSurvey.

Nếu bạn muốn xác định thang đo 7 điểm tùy chỉnh, bộ nhãn sẽ cung cấp chức năng này. Trong ví dụ bên dưới, một bộ nhãn tùy chỉnh rất đơn giản có các cặp mã/nhãn (nhãn là nội dung xuất hiện trong các câu hỏi thực tế).

Code Label
1 Không hữu ích chút nào
2 2
3 3
4 Hơi hữu ích
5 5
6 6
7 Rất hữu ích

Dưới đây là một ví dụ đồ họa trong đó ba biểu tượng mặt cười khác nhau được sử dụng thay cho văn bản nhãn:


Bộ nhãn - cách...

Nhấp vào 'Quản lý bộ nhãn trong menu Cấu hình để chỉnh sửa, tạo, xóa, nhập và/hoặc xuất bộ nhãn.



...tạo hoặc nhập (các) bộ nhãn mới

Nhấp vào nút Tạo hoặc nhập (các) bộ nhãn mới nằm ở góc trên bên trái của trang. Bạn có thể tạo bộ nhãn mới hoặc nhập nó từ another source:

  • Bộ nhãn mới: Bộ nhãn phải được tạo thủ công.
    • Đặt tên: Mỗi bộ nhãn mới phải được đặt tên.
    • 'Ngôn ngữ:' Mỗi bộ nhãn phải được chỉ định cho ngôn ngữ được sử dụng. Bạn có thể chọn bao nhiêu ngôn ngữ từ menu tùy thích.
  • Nhập (các) bộ nhãn: Để nhập một bộ nhãn, hãy nhấp vào duyệt và thêm tệp bộ nhãn .lsl. Nếu trước đây bạn đã tạo một bộ nhãn thì LimeSurvey sẽ không cho phép bạn nhập một bộ nhãn bên ngoài tương tự trừ khi bạn tắt tùy chọn Không nhập nếu bộ nhãn đã tồn tại. Một số bộ nhãn hữu ích có sẵn trên trang web LimeSurvey.

Khi nhãn đã được nhập hoặc tạo, hãy nhấp vào nút Lưu nằm ở phần trên bên phải của màn hình.



Template:Lưu ý

...chỉnh sửa, xóa hoặc xuất bộ nhãn

Mỗi bộ nhãn nằm trong danh sách Bộ nhãn có một menu tương ứng chứa bốn tùy chọn sau:



  • Xem nhãn: Cho phép người dùng xem các nhãn hiện có nằm trong bộ nhãn tương ứng.
  • Chỉnh sửa bộ nhãn: Người dùng có thể đổi tên bộ nhãn và/hoặc thêm /xóa ngôn ngữ.
  • Bộ nhãn xuất: Xuất bộ nhãn thành tệp .lsl.
  • Xóa bộ nhãn: Một cửa sổ sẽ bật lên để xác nhận bạn có muốn xóa bộ nhãn tương ứng hay không.

Nhãn - cách...

...thêm nhãn

Bạn phải điền mã nhãn, giá trị đánh giá và mô tả nhãn.



Sau đó, nhấp vào dấu cộng để thêm nhãn mới. Có thể sử dụng đồ họa thay vì (hoặc ngoài) văn bản nhãn. Để làm điều đó, bạn phải sử dụng mã HTML để đưa vào hình ảnh bạn muốn, ví dụ:

<img border="0" src="http://www.yourdomain.at/pics/pic.gif">

Template:Lưu ý

Để trợ giúp quá trình chỉnh sửa mã HTML, hãy sử dụng trình soạn thảo HTML nhúng của LimeSurvey, nằm ở cuối hộp văn bản nhãn (nhấp vào nút bút màu xanh lá cây ->0,85px).



Template:Lưu ý

Thêm nhanh

Một cách khác để thêm nhãn là sử dụng nút Thêm nhanh.... Khi bạn nhấp vào nó, một cửa sổ sẽ được hiển thị. Nó hoạt động dưới dạng sau: Code ; Tiêu đề.


0.8px


Bạn có thể thay thế hoặc thêm nhãn. Nếu bạn nhấp vào Thay thế, tất cả các nhãn có sẵn sẽ bị xóa và thay thế bằng những nhãn bạn đã nhập. Nếu bạn nhấp vào Thêm, các nhãn mới sẽ được thêm vào bộ nhãn (những nhãn có sẵn không bị ảnh hưởng).


0.8px


được tự động thêm vào nếu lối vào mới được tạo. Do đó, bạn chỉ có thể nhập tiêu đề của các nhãn sẽ tự động được gán mã:


0.8px


0.8px


Không thể chỉnh sửa/nhập giá trị đánh giá thông qua tùy chọn này - nó phải được thay đổi thủ công từ danh sách nhãn.

  Chú ý : Nếu bạn muốn dịch nhãn bằng cách sử dụng chức năng Thêm nhanh..., bạn cần thêm bản dịch trên cùng một dòng và được phân tách bằng dấu dấu chấm phẩy.


...xóa nhãn

Để xóa nhãn, hãy nhấp vào nút thùng rác màu đỏ (0.85px) nằm dưới cột 'Action'.

...sắp xếp lại nhãn

Để sắp xếp lại thứ tự của các nhãn, hãy nhấp vào dấu màu xanh lục (0.85px) nằm dưới cột có tên 'Position' và định vị lại nhãn.

...add a new language

To add a new language: Create or import new label set(s) -> Languages -> select the languages you wish to add.

To start translating the labels into another language, select the language in which you would like to translate the labels to from the upper part of the matrix.




Every label needs a code, an assessment value, and a description (as mentioned above). While the label description can be edited for all language options, label codes and assessment values can be edited only from the first language option that is located on the languages toolbar of the matrix. The order of the languages is alphabetical and cannot be changed.

In our case, the language from where the label codes and assessment values can be changed is English. Only the label description can be edited when the Romanian tab is selected - which represents the corresponding Romanian label translation of the English label.

Once you are done with the changes, do not forget to click on the 'Save changes' button located in the upper-right part of the screen.

Examples

Before reading further, take a look at our wiki on how to create surveys since it is already assumed in the examples from below that you have already created your survey.


For a better understanding of the label sets option, let's take a look at the following examples:

The screenshots used below are from LimeSurvey 3.0, the interface being slightly different from the last LimeSurvey 2.xx release.


I want to use a label set as an answer list for one question

All the label sets that are displayed under Configuration -> Label sets are called predefined label sets. They can be used either as subquestions or as answers.

Assuming that the label set and survey are created:

  • Go to the structure of the survey and create a question group - About LimeSurvey.



  • Click the Structure tab and then on the newly created question group (About LimeSurvey in our case). Look for group quick actions and choose Add new question to group:



  • Type in the code and text of the question.
  • To use a label set as a set of answers, pick the right type of question that can make use of label sets. The array question type is selected in our example:



  • Save the question to add it into your question group.
  • Once created, you will have to add subquestions and answers:



Please note that not all question types ask for subquestions and/or answers!
  • Add at least one subquestion:



  • Add answer options. Predefined label sets... option will be used:



  • Select the label set you want to use:


0.7px


The result should look like this:



  • Save & preview the question:


I want to use labels in another language as answers

Before reading this example:
  1. Create a label set and select the other languages you would like to use in your survey. For further details, read our wiki on how to translate a label set in other languages.
  2. Edit your survey (Settings -> General Settings) by adding the additional languages you want to translate to. For more details on how to create a survey, read the following wiki.

Assuming that the label set and survey are created:

  • Create a question that can make use of label sets (e.g. array question type):
  Attention : Do not forget to select the language you want to translate to from the languages toolbar!


  • Because the array question type is selected, both the subquestions and answers need to be translated.



  • Translate the subquestions. Do not forget to select the right language tab for translation:



  • Translate the answers. However, because we use predefined label sets, select the right language tab to add the translated label set as answer options:




  • Save & Preview the survey:


I want to use emoticons instead of label text

To use emoticons (or any other graphics) , you have to use the embedded HTML editor when creating labels.

Assuming that the survey is created:




The HTML editor offers you a more comprehensive view on how different options can be used to enhance your survey. It is not necessary to have HTML knowledge because the toolbar is self-explaining (for further details you can either hover the mouse over the options or click on that option for more details). By using such an editor, you can also add (for example) smileys, images and/or videos that are either hosted online or on your server. In this example. three smileys have been added:



  • Create a question that can make use of label sets as predefined answers (e.g. array question type):



  • Edit the subquestions and the answer options



  • Set predefined labels as answer options.


SmileysLabelsExample.png


  • Save and preview the question:


I want to import a label set and use it as a subquestion list

Assuming that the survey is created:

Optional: Access LimeSurvey templates database and download the one you wish to use - .lsl file format (Australian states in our example).
  • Go to Configuration and click Manage label sets button.
  • Click Create or import new label set(s) (in the upper-left side of the screen) -> Import label set(s). Browse your computer and select the .lsl file (the label set format).
  • Now that the label set was uploaded, create a question that requires the usage of subquestions (array question types).
  • Edit subquestions.
  • Load the imported label set:
  • Save and preview.