{"id":94,"date":"2018-08-21T16:57:18","date_gmt":"2018-08-21T16:57:18","guid":{"rendered":"https:\/\/openbook.ums.edu.my\/userguide\/chapter\/use-shortcodes\/"},"modified":"2024-09-19T04:19:25","modified_gmt":"2024-09-19T04:19:25","slug":"use-shortcodes","status":"publish","type":"chapter","link":"https:\/\/openbook.ums.edu.my\/userguide\/chapter\/use-shortcodes\/","title":{"raw":"Use Shortcodes","rendered":"Use Shortcodes"},"content":{"raw":"Shortcodes are small blocks of square-bracketed code which Pressbooks recognizes and handles in special ways in the webbook and export files. Shortcodes can be used both in the Visual Editor and in the Text editor. For most users, inserting content via the Visual Editor will be the easiest option. Shortcodes also provide a convenient way to include Pressbooks-specific elements in an external document which is intended for <a href=\"https:\/\/pressbooks.pub\/guide\/chapter\/bring-your-content-into-pressbooks\/#chapter-156-section-3\">import into Pressbooks<\/a>.\n<div class=\"textbox smallpadding\"><strong>Note: <\/strong>Shortcode examples on this page are wrapped in a <code>&lt;code&gt;<\/code> element which forces the shortcodes to be displayed as text instead of being properly rendered. If you paste them from this chapter into your book, they will not work correctly. You can, however, retype the text displayed in the shortcode into your chapter.<\/div>\n<h1 id=\"headings\">Headings and subheadings<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[[heading]<\/strong>Top-level heading inside chapter (H1)<strong>[\/heading]]<\/strong>\n<strong>[[subheading]<\/strong>Second-level heading inside chapter (H2)<strong>[\/subheading]]<\/strong>\n<\/code><\/div>\n<strong>Description<\/strong>: Formats the text as a heading (h1) or subheading (h2). Note that the \"heading\" is not the chapter title, but the next level of headings. Custom classes can be applied to this shortcode.\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img class=\"alignnone size-full wp-image-294 noborder\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2018\/03\/shortcodeheading.jpg\" alt=\"\" width=\"444\" height=\"127\"><\/td>\n<td style=\"width: 50%; height: 14px;\"><img class=\"alignnone size-full wp-image-295 noborder\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/shortcodeheadingoutput.jpg\" alt=\"\" width=\"491\" height=\"205\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"code\">Code<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[[code]<\/strong>Text to be rendered in fixed-width font.<strong>[\/code]]<\/strong>\n<\/code><\/div>\n<strong>Description<\/strong>: Formats the text with fixed-width font. HTML tags can be displayed if they are entered in the visual editor (Pressbooks will automatically convert them to HTML character entities). Custom classes can be applied to this shortcode.\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-296 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/shortcodeCode.jpg\" alt=\"Example of the [code] shortcode\" width=\"375\" height=\"64\"><\/td>\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-297 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/shortcodeCodeoutput.jpg\" alt=\"Example of the output for the [code] shortcode\" width=\"285\" height=\"66\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\"><img class=\"noborder alignnone wp-image-298 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/shortcodeCode1.jpg\" alt=\"[code]<p>The code can also be a block.<\/p> 4 spaces before the line here\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0and here <b>more code<\/b> [\/code]\" width=\"370\" height=\"108\"><\/td>\n<td style=\"width: 50%;\"><img class=\"noborder alignnone wp-image-299 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/shortcodeCode1output.jpg\" alt=\"Example output of the content formatted as code\" width=\"446\" height=\"98\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<strong>Note<\/strong>: for the second example above, the text needs to be entered in the Text Editor with no extra blank lines between lines of text or it will not display correctly.\n<h1 id=\"email\">Email<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[[email]<\/strong>email@yourdomain.com<strong>[\/email]]<\/strong>\nOR\n<strong>[[email address=<\/strong>email@yourdomain.com <strong>\/]]\n<\/strong>OR\n<strong>[[email address=<\/strong>hugh@pressbooks.com<strong>]<\/strong>Link to be displayed<strong>[\/email]]<\/strong><\/code><\/div>\n<strong>Description<\/strong>: Formats the email address into a proper email link. This shortcode has multiple variants. Custom classes can be applied to this shortcode.\n<table style=\"border-collapse: collapse; width: 100%; height: 62px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><code><strong>[[email]<\/strong>example@pressbooks.com<strong>[\/email]]<\/strong><\/code><\/td>\n<td style=\"width: 50%; height: 14px;\"><a href=\"mailto:example@pressbooks.com\">example@pressbooks.com<\/a><\/td>\n<\/tr>\n<tr style=\"height: 17px;\">\n<td style=\"width: 50%; height: 17px;\"><strong><code>[[email address=<\/code><\/strong><code>example@pressbooks.com\u00a0<\/code><strong><code>\/]]<\/code><\/strong><\/td>\n<td style=\"width: 50%; height: 17px;\"><a href=\"mailto:example@pressbooks.com\">example@pressbooks.com<\/a><\/td>\n<\/tr>\n<tr style=\"height: 17px;\">\n<td style=\"width: 50%; height: 17px;\"><strong><code>[[email address=<\/code><\/strong><code>example@pressbooks.com<\/code><strong><code>]<\/code><\/strong><code>Email us<\/code><strong><code>[\/email]]<\/code><\/strong><\/td>\n<td style=\"width: 50%; height: 17px;\"><a href=\"mailto:example@pressbooks.com\">Email us<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"equations\">Equation\/Latex<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[[equation]<\/strong>latex code here<strong>[\/equation]]\n<\/strong>OR\n<strong>[la\u200btex]<\/strong>latex code here<strong>[\/lat\u200bex]<\/strong>\n<\/code><\/div>\n<div><strong>Description<\/strong>: Renders the expression using the book's preferred LaTeX rendering solution.<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\">[[equation]e^{\\i \\pi} + 1 = 0[\/equation]]<\/td>\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-300 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/latex.png\" alt=\"\" width=\"77\" height=\"13\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"blockquote\">Blockquote<\/h1>\n<div class=\"textbox shaded\"><code><strong>[[blockquote]<\/strong>Text to be formatted as a blockquote<strong>[\/blockquote]]<\/strong><\/code><\/div>\n<strong>Description<\/strong>: formats the content as a block quote. Custom classes can be applied to this shortcode.\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img class=\"alignnone wp-image-301 size-full noborder\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/blockquotecode.jpg\" alt=\"\" width=\"687\" height=\"358\"><\/td>\n<td style=\"width: 50%; height: 14px;\"><img class=\"alignnone wp-image-302 size-full noborder\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/blockquotecodeoutput.jpg\" alt=\"\" width=\"716\" height=\"449\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"footnotes\">Footnote<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[[footnote]<\/strong>Your footnote text here<strong> [\/footnote]]<\/strong>\n<\/code><\/div>\n<div>\n\n<strong>Description<\/strong>:\u00a0Formats text into a footnote.\n\nIn the visual editor, the footnote text, wrapped in the shortcode, should be placed where the footnote reference number should be located, and not at the end of the chapter or page.\n\n<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\">This leads to a footnote[[footnote]This is the footnote content. [\/footnote]].<\/td>\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-303 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/footnote1.jpg\" alt=\"Visual display of the footnote reference in superscript.\" width=\"301\" height=\"61\">\n\n<img class=\"noborder alignnone wp-image-304 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/footnote2.jpg\" alt=\"Visual display of the footnote at the end of the page\" width=\"428\" height=\"102\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"anchor\">Anchor<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[[anchor id=<\/strong>anchorname <strong>\/]]<\/strong>\n<\/code><\/div>\n<div>\n\n<strong>Description<\/strong>:\u00a0Creates an anchor which can then be linked to via href=\u201d#anchorname\u201d.\n\nThe id parameter is required and should include only letters, numbers, hyphens (-) or underscores (_). When linking to the anchor, note that the id value is case-sensitive. Custom classes can be applied to this element.\n\n<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-305 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/anchor1.jpg\" alt=\"Example of the anchor shortcode in use.\" width=\"275\" height=\"125\"><\/td>\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-306 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/anchor2.jpg\" alt=\"When rendered, the anchor displays no visible features.\" width=\"287\" height=\"113\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"textbox\">Textbox<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[[textbox]<\/strong>Your text here<strong>[\/textbox]]\nOR\n[[textbox class=<\/strong>shaded<strong>]<\/strong>Your text here<strong>[\/textbox]]<\/strong>\n<\/code><\/div>\n<strong>Description<\/strong>:\u00a0Wraps the text inside a box with an outline. Depending on the selected theme, the box may have a background color.\n\nThe \"shaded\" class or custom classes may be applied to the textbox shortcode in order to change the appearance upon display.\n<table style=\"border-collapse: collapse; width: 100%; height: 352px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-307 \" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/textbox1.jpg\" alt=\"Shortcode for textboxes\" width=\"424\" height=\"312\"><\/td>\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-308 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/textbox2.jpg\" alt=\"Rendered textbox\" width=\"717\" height=\"414\"><\/td>\n<\/tr>\n<tr style=\"height: 294px;\">\n<td style=\"width: 50%; height: 294px;\"><img class=\"noborder alignnone wp-image-309 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/textbox3.jpg\" alt=\"Usage of the textbox shortcode with shaded class.\" width=\"408\" height=\"225\"><\/td>\n<td style=\"width: 50%; height: 294px;\"><img class=\"noborder alignnone wp-image-310 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/textbox4.jpg\" alt=\"Rendered shaded textbox\" width=\"567\" height=\"339\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"columns\">Columns<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[[columns]<\/strong>Your text here<strong>[\/columns]]\n<\/strong>OR<strong>\n[[columns count=2]<\/strong>Your text will be displayed in 2 columns<strong>[\/columns]]\n<\/strong>OR<strong>\n[[columns count=3]<\/strong>Your text will be displayed in 3 columns<strong>[\/columns]]<\/strong>\n<\/code><\/div>\n<div>\n\n<strong>Description<\/strong>: Formats text in 2 or 3 columns. If the number of columns is not specified, or is a number other than 2 or 3, the text defaults to 2 columns. Custom classes may be applied to this element.\n\n<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-311 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/columns1.jpg\" alt=\"Example of the columns shortcode.\" width=\"555\" height=\"250\"><\/td>\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-312 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/columns2.jpg\" alt=\"Example of text rendered in two columns\" width=\"564\" height=\"279\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"media\">Media<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[[media src=\"<\/strong>URL_of_the_video<strong>\" \/]]\n<\/strong>OR<strong>\n[[media src=\"<\/strong>URL_of_the_video<strong>\" caption=\"<\/strong>Your caption text goes here<strong>\" \/]]\n<\/strong><\/code><\/div>\n<div>\n\n<strong>Description<\/strong>: Embeds media content in an iframe, with an optional caption parameter. <strong>Non-image media must be oEmbed-compatible<\/strong>.\n\n<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-313 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/media1.jpg\" alt=\"Example of the Media shortcode in use, with the caption parameter.\" width=\"400\" height=\"230\"><\/td>\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-314 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/media2.jpg\" alt=\"Rendered video with caption.\" width=\"576\" height=\"416\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"captions\">Captions<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[ca\u200bption width=\"400\"]<\/strong>&lt;image&gt; Caption text here<strong>[\/ca\u200bption]<\/strong>\n<\/code><\/div>\n<div>\n\n<strong>Description<\/strong>: formats text as a caption. This is used usually with an image.\n\nThis is a <a href=\"https:\/\/codex.wordpress.org\/Caption_Shortcode\">default WordPress shortcode<\/a>. The width parameter (a number) is required.\n\n<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-315 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/captions1.jpg\" alt=\"Example of the captions shortcode in the visual editor.\" width=\"310\" height=\"365\"><\/td>\n<td style=\"width: 50%; height: 14px;\"><img class=\"noborder alignnone wp-image-316 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/captions2.jpg\" alt=\"Rendered caption\" width=\"336\" height=\"296\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"custom_class\">Apply Custom Classes<\/h1>\nIf you are familiar with CSS, you may <a href=\"\/userguide\/chapter\/customizing-your-exports-with-custom-styles\/\">apply custom classes and use custom CSS<\/a> to modify the appearance of some shortcodes . For those shortcodes which support custom classes, they can be added as parameters as in the following example, which adds the class <code>custom_class<\/code> to a textbox:\n<div class=\"textbox shaded smallpadding\"><code><strong>[[textbox class=<\/strong>custom_class<strong>]<\/strong>Your text here<strong>[\/textbox]]<\/strong><\/code><\/div>\n<h1><a id=\"nestedshortcodes\" href=\"\"><\/a>Nesting Shortcodes<\/h1>\nThe following shortcodes can be nested within other shortcodes:\n<ul>\n \t<li><strong>[latex]<\/strong> shortcodes can be used inside of <strong>[[footnote]]<\/strong> and\u00a0<strong>[[blockquote]]<\/strong> shortcodes<\/li>\n \t<li><strong>[[media]]<\/strong> shortcodes can be used inside of <strong>[glossary]<\/strong> shortcodes<\/li>\n \t<li><strong>[[footnote]]<\/strong> shortcodes can be used inside of <strong>[[textbox]]<\/strong> shortcodes<\/li>\n<\/ul>\nAll shortcodes except for footnotes, glossary terms, and captions have an alternate styling method available from the <a href=\"https:\/\/pressbooks.pub\/guide\/chapter\/visual-text-editors\/#visualeditortoolbar\">visual editor toolbar<\/a>, which should help you avoid nesting unsupported shortcodes within each other.","rendered":"<p>Shortcodes are small blocks of square-bracketed code which Pressbooks recognizes and handles in special ways in the webbook and export files. Shortcodes can be used both in the Visual Editor and in the Text editor. For most users, inserting content via the Visual Editor will be the easiest option. Shortcodes also provide a convenient way to include Pressbooks-specific elements in an external document which is intended for <a href=\"https:\/\/pressbooks.pub\/guide\/chapter\/bring-your-content-into-pressbooks\/#chapter-156-section-3\">import into Pressbooks<\/a>.<\/p>\n<div class=\"textbox smallpadding\"><strong>Note: <\/strong>Shortcode examples on this page are wrapped in a <code>&lt;code&gt;<\/code> element which forces the shortcodes to be displayed as text instead of being properly rendered. If you paste them from this chapter into your book, they will not work correctly. You can, however, retype the text displayed in the shortcode into your chapter.<\/div>\n<h1 id=\"headings\">Headings and subheadings<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[heading]<\/strong>Top-level heading inside chapter (H1)<strong>[\/heading]<\/strong><br \/>\n<strong>[subheading]<\/strong>Second-level heading inside chapter (H2)<strong>[\/subheading]<\/strong><br \/>\n<\/code><\/div>\n<p><strong>Description<\/strong>: Formats the text as a heading (h1) or subheading (h2). Note that the &#8220;heading&#8221; is not the chapter title, but the next level of headings. Custom classes can be applied to this shortcode.<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-294 noborder\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2018\/03\/shortcodeheading.jpg\" alt=\"\" width=\"444\" height=\"127\" \/><\/td>\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-295 noborder\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/shortcodeheadingoutput.jpg\" alt=\"\" width=\"491\" height=\"205\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"code\">Code<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[code]<\/strong>Text to be rendered in fixed-width font.<strong>[\/code]<\/strong><br \/>\n<\/code><\/div>\n<p><strong>Description<\/strong>: Formats the text with fixed-width font. HTML tags can be displayed if they are entered in the visual editor (Pressbooks will automatically convert them to HTML character entities). Custom classes can be applied to this shortcode.<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-296 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/shortcodeCode.jpg\" alt=\"Example of the  shortcode\" width=\"375\" height=\"64\" \/><\/td>\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-297 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/shortcodeCodeoutput.jpg\" alt=\"Example of the output for the  shortcode\" width=\"285\" height=\"66\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\"><img decoding=\"async\" class=\"noborder alignnone wp-image-298 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/shortcodeCode1.jpg\" alt=\"image\" \/>The code can also be a block. 4 spaces before the line here\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0and here <b>more code<\/b> [\/code]&#8221; width=&#8221;370&#8243; height=&#8221;108&#8243;&gt;<\/td>\n<td style=\"width: 50%;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-299 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/shortcodeCode1output.jpg\" alt=\"Example output of the content formatted as code\" width=\"446\" height=\"98\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Note<\/strong>: for the second example above, the text needs to be entered in the Text Editor with no extra blank lines between lines of text or it will not display correctly.<\/p>\n<h1 id=\"email\">Email<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[email]<\/strong>email@yourdomain.com<strong>[\/email]<\/strong><br \/>\nOR<br \/>\n<strong>[email address=<\/strong>email@yourdomain.com <strong>\/]<br \/>\n<\/strong>OR<br \/>\n<strong>[email address=<\/strong>hugh@pressbooks.com<strong>]<\/strong>Link to be displayed<strong>[\/email]<\/strong><\/code><\/div>\n<p><strong>Description<\/strong>: Formats the email address into a proper email link. This shortcode has multiple variants. Custom classes can be applied to this shortcode.<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 62px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><code><strong>[email]<\/strong>example@pressbooks.com<strong>[\/email]<\/strong><\/code><\/td>\n<td style=\"width: 50%; height: 14px;\"><a href=\"mailto:example@pressbooks.com\">example@pressbooks.com<\/a><\/td>\n<\/tr>\n<tr style=\"height: 17px;\">\n<td style=\"width: 50%; height: 17px;\"><strong><code>[email address=<\/code><\/strong><code>example@pressbooks.com\u00a0<\/code><strong><code>\/]<\/code><\/strong><\/td>\n<td style=\"width: 50%; height: 17px;\"><a href=\"mailto:example@pressbooks.com\">example@pressbooks.com<\/a><\/td>\n<\/tr>\n<tr style=\"height: 17px;\">\n<td style=\"width: 50%; height: 17px;\"><strong><code>[email address=<\/code><\/strong><code>example@pressbooks.com<\/code><strong><code>]<\/code><\/strong><code>Email us<\/code><strong><code>[\/email]<\/code><\/strong><\/td>\n<td style=\"width: 50%; height: 17px;\"><a href=\"mailto:example@pressbooks.com\">Email us<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"equations\">Equation\/Latex<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[equation]<\/strong>latex code here<strong>[\/equation]<br \/>\n<\/strong>OR<br \/>\n<strong>[la\u200btex]<\/strong>latex code here<strong>[\/lat\u200bex]<\/strong><br \/>\n<\/code><\/div>\n<div><strong>Description<\/strong>: Renders the expression using the book&#8217;s preferred LaTeX rendering solution.<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\">[equation]e^{\\i \\pi} + 1 = 0[\/equation]<\/td>\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-300 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/latex.png\" alt=\"\" width=\"77\" height=\"13\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"blockquote\">Blockquote<\/h1>\n<div class=\"textbox shaded\"><code><strong>[blockquote]<\/strong>Text to be formatted as a blockquote<strong>[\/blockquote]<\/strong><\/code><\/div>\n<p><strong>Description<\/strong>: formats the content as a block quote. Custom classes can be applied to this shortcode.<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-301 size-full noborder\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/blockquotecode.jpg\" alt=\"\" width=\"687\" height=\"358\" \/><\/td>\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-302 size-full noborder\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/blockquotecodeoutput.jpg\" alt=\"\" width=\"716\" height=\"449\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"footnotes\">Footnote<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[footnote]<\/strong>Your footnote text here<strong> [\/footnote]<\/strong><br \/>\n<\/code><\/div>\n<div>\n<p><strong>Description<\/strong>:\u00a0Formats text into a footnote.<\/p>\n<p>In the visual editor, the footnote text, wrapped in the shortcode, should be placed where the footnote reference number should be located, and not at the end of the chapter or page.<\/p>\n<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\">This leads to a footnote[footnote]This is the footnote content. [\/footnote].<\/td>\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-303 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/footnote1.jpg\" alt=\"Visual display of the footnote reference in superscript.\" width=\"301\" height=\"61\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-304 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/footnote2.jpg\" alt=\"Visual display of the footnote at the end of the page\" width=\"428\" height=\"102\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"anchor\">Anchor<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[anchor id=<\/strong>anchorname <strong>\/]<\/strong><br \/>\n<\/code><\/div>\n<div>\n<p><strong>Description<\/strong>:\u00a0Creates an anchor which can then be linked to via href=\u201d#anchorname\u201d.<\/p>\n<p>The id parameter is required and should include only letters, numbers, hyphens (-) or underscores (_). When linking to the anchor, note that the id value is case-sensitive. Custom classes can be applied to this element.<\/p>\n<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-305 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/anchor1.jpg\" alt=\"Example of the anchor shortcode in use.\" width=\"275\" height=\"125\" \/><\/td>\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-306 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/anchor2.jpg\" alt=\"When rendered, the anchor displays no visible features.\" width=\"287\" height=\"113\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"textbox\">Textbox<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[textbox]<\/strong>Your text here<strong>[\/textbox]<br \/>\nOR<br \/>\n[textbox class=<\/strong>shaded<strong>]<\/strong>Your text here<strong>[\/textbox]<\/strong><br \/>\n<\/code><\/div>\n<p><strong>Description<\/strong>:\u00a0Wraps the text inside a box with an outline. Depending on the selected theme, the box may have a background color.<\/p>\n<p>The &#8220;shaded&#8221; class or custom classes may be applied to the textbox shortcode in order to change the appearance upon display.<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 352px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-307\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/textbox1.jpg\" alt=\"Shortcode for textboxes\" width=\"424\" height=\"312\" \/><\/td>\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-308 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/textbox2.jpg\" alt=\"Rendered textbox\" width=\"717\" height=\"414\" \/><\/td>\n<\/tr>\n<tr style=\"height: 294px;\">\n<td style=\"width: 50%; height: 294px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-309 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/textbox3.jpg\" alt=\"Usage of the textbox shortcode with shaded class.\" width=\"408\" height=\"225\" \/><\/td>\n<td style=\"width: 50%; height: 294px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-310 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/textbox4.jpg\" alt=\"Rendered shaded textbox\" width=\"567\" height=\"339\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"columns\">Columns<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[columns]<\/strong>Your text here<strong>[\/columns]<br \/>\n<\/strong>OR<strong><br \/>\n[columns count=2]<\/strong>Your text will be displayed in 2 columns<strong>[\/columns]<br \/>\n<\/strong>OR<strong><br \/>\n[columns count=3]<\/strong>Your text will be displayed in 3 columns<strong>[\/columns]<\/strong><br \/>\n<\/code><\/div>\n<div>\n<p><strong>Description<\/strong>: Formats text in 2 or 3 columns. If the number of columns is not specified, or is a number other than 2 or 3, the text defaults to 2 columns. Custom classes may be applied to this element.<\/p>\n<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-311 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/columns1.jpg\" alt=\"Example of the columns shortcode.\" width=\"555\" height=\"250\" \/><\/td>\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-312 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/columns2.jpg\" alt=\"Example of text rendered in two columns\" width=\"564\" height=\"279\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"media\">Media<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[media src=\"<\/strong>URL_of_the_video<strong>\" \/]<br \/>\n<\/strong>OR<strong><br \/>\n[media src=\"<\/strong>URL_of_the_video<strong>\" caption=\"<\/strong>Your caption text goes here<strong>\" \/]<br \/>\n<\/strong><\/code><\/div>\n<div>\n<p><strong>Description<\/strong>: Embeds media content in an iframe, with an optional caption parameter. <strong>Non-image media must be oEmbed-compatible<\/strong>.<\/p>\n<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-313 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/media1.jpg\" alt=\"Example of the Media shortcode in use, with the caption parameter.\" width=\"400\" height=\"230\" \/><\/td>\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-314 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/media2.jpg\" alt=\"Rendered video with caption.\" width=\"576\" height=\"416\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"captions\">Captions<\/h1>\n<div class=\"textbox shaded smallpadding\"><code><strong>[ca\u200bption width=\"400\"]<\/strong>&lt;image&gt; Caption text here<strong>[\/ca\u200bption]<\/strong><br \/>\n<\/code><\/div>\n<div>\n<p><strong>Description<\/strong>: formats text as a caption. This is used usually with an image.<\/p>\n<p>This is a <a href=\"https:\/\/codex.wordpress.org\/Caption_Shortcode\">default WordPress shortcode<\/a>. The width parameter (a number) is required.<\/p>\n<\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 28px;\">\n<tbody>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><strong>Example Code<\/strong><\/td>\n<td style=\"width: 50%; height: 14px;\"><strong>Example Output<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-315 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/captions1.jpg\" alt=\"Example of the captions shortcode in the visual editor.\" width=\"310\" height=\"365\" \/><\/td>\n<td style=\"width: 50%; height: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"noborder alignnone wp-image-316 size-full\" src=\"https:\/\/pressbooks.pub\/app\/uploads\/sites\/4748\/2022\/10\/captions2.jpg\" alt=\"Rendered caption\" width=\"336\" height=\"296\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"custom_class\">Apply Custom Classes<\/h1>\n<p>If you are familiar with CSS, you may <a href=\"\/userguide\/chapter\/customizing-your-exports-with-custom-styles\/\">apply custom classes and use custom CSS<\/a> to modify the appearance of some shortcodes . For those shortcodes which support custom classes, they can be added as parameters as in the following example, which adds the class <code>custom_class<\/code> to a textbox:<\/p>\n<div class=\"textbox shaded smallpadding\"><code><strong>[textbox class=<\/strong>custom_class<strong>]<\/strong>Your text here<strong>[\/textbox]<\/strong><\/code><\/div>\n<h1><a id=\"nestedshortcodes\" href=\"\"><\/a>Nesting Shortcodes<\/h1>\n<p>The following shortcodes can be nested within other shortcodes:<\/p>\n<ul>\n<li><strong>[latex]<\/strong> shortcodes can be used inside of <strong>[footnote]<\/strong> and\u00a0<strong>[blockquote]<\/strong> shortcodes<\/li>\n<li><strong>[media]<\/strong> shortcodes can be used inside of <strong>[glossary]<\/strong> shortcodes<\/li>\n<li><strong>[footnote]<\/strong> shortcodes can be used inside of <strong>[textbox]<\/strong> shortcodes<\/li>\n<\/ul>\n<p>All shortcodes except for footnotes, glossary terms, and captions have an alternate styling method available from the <a href=\"https:\/\/pressbooks.pub\/guide\/chapter\/visual-text-editors\/#visualeditortoolbar\">visual editor toolbar<\/a>, which should help you avoid nesting unsupported shortcodes within each other.<\/p>\n","protected":false},"author":1,"menu_order":21,"template":"","meta":{"pb_show_title":"","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-94","chapter","type-chapter","status-publish","hentry"],"part":53,"_links":{"self":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/94\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/94\/revisions\/95"}],"part":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/parts\/53"}],"metadata":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapters\/94\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/pressbooks\/v2\/chapter-type?post=94"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/contributor?post=94"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/userguide\/wp-json\/wp\/v2\/license?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}