You are viewing an old version of this page. Return to the latest version.
Tags
-
- Last edited 4 years ago by MLR
-
-
- No status information
Revision as of 10:43, 2 December 2019 by Mlink-rodrigue (talk | contribs)
Wiki tags are XML-Tags which can be customized by parameters to get a certain output. If you use the bookshelf tag for example, then the page contains an index of the book the article belongs to with links for each chapter.
Tips for working with tags
Some of these tags can be inserted using VisualEditor. Go to Insert > Magic words and select the magic word you want to use. If you don't see the tag listed, switch to source editing mode and insert the tag there. You can always find the list of all parser tags in your BlueSpice installation on the page Special:Version, in the section Parser Extension Tags.
Common tags
Parser extension | Description | Example |
<bs:booklist> | Generates a list of pages from the namespace Book. Filterable. | <bs:booklist filter="someMeta:Some|anotherMeta:Val" /> |
<booklist> | ||
<bs:bookmeta> | Tag for saving arbitrary meta information with a book apage. The data is included in the book. | <bs:bookmeta someMeta="Some Value" anotherMeta="Another Value" /> |
<bookmeta> | ||
<bs:bookshelf> | Insert a navigation menu by chapters of a book. | <bs:bookshelf src="Book:User handbook wiki" float="right"/> |
<bookshelf> | ||
<bs:infobox> | Creates an infobox with, for example, the last pages released | <infobox mode="flaggedrevisions" ns="502" count="7"/> |
<infobox> | ||
<bs:newbies> | Lists the newest users | One inserts this in an article like this: {{#hwnewbies:X}} X can take a value between 1 and 100. If nothing is given for X, the newest 10 users will be shown. |
<bs:pagesvisited> | Lists the user's last visited pages. | You can add the function to a normal wiki page (for example on your start page) by using the following tag: <pagesvisited count="7" maxtitlelength="40" /> |
<pagesvisited> | ||
<bs:statistics:progress> | Generates a progress bar. The value depends on the appearance of a given text found in the body and an upper limit defined by the user. | <bs:statistics:progress basecount="200" progressitem="OK" width="150" /> Generates a 150 pixel wide progress bar which will display a value of 75% when the word "OK" appears 150 times in the body of the article (200 times would then show 100%). |
<bs:universalexport:exclude> | Alias for <bs:universalexport:noexport> | |
<bs:universalexport:exclude> | ||
<bs:universalexport:excludearticle> | This tag is only designated for system-internal use. At the moment it has no function. | |
<universalexport:excludearticle> | ||
<bs:universalexport:hidetitle> | Disables the export of article headings. | <bs:uehidetitle /> |
<universalexport:hidetitle> | ||
<bs:universalexport:meta> | Allows arbitrary meta data in the export document independently of which export template is used. Depending on the export backend, this data may also be included in the meta data of the export document. At the moment, this is generally used system-internally. | <bs:universalexport:meta Department="Finance" Security-level="5" /> |
<universalexport:meta> | ||
<bs:universalexport:noexport> | leaves out the area/contents marked by the tag when exporting | <bs:uenoexport>Not included in export</bs:uenoexport> |
<universalexport:noexport> | ||
<bs:universalexport:pagebreak> | forces a page break at the point of the tag | <bs:uepagebreak /> |
<universalexport:pagebreak> | ||
<bs:universalexport:params> | Similar to <bs:universalexport:meta>. However, the data affects the export itself. There, for example an export template can be chosen. This tag is also generally for system-internal use at the moment. | <bs:universalexport:params template="BlueSpice Landscape" /> |
<universalexport:params> | ||
<bs:watchlist> | Adds a page to the watchlist. | |
<watchlist> | ||
<categorytree> | Display of a category tree with the categories and pages that belong to it. | <categorytree mode=categories hideroot=on style="float:right; clear:right; margin-left:1ex; border:1px solid gray; padding:0.7ex; background-color:white;">!Main category</categorytree> |
<dynamicpagelist> | Dynamically generates a list of pages. | http://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia) |
<gallery> | A series of grouped images. | <gallery perrow="4"><br /> Image:Brochure.jpg|Page 1<br /> Image:Brochure2.jpg|Page 2<br /> Image:Brochure3.jpg|Page 3<br /> Image:Brochure4.jpg|Page 4<br /> </gallery> |
<imagemap> | Image with clickable links. | <imagemap><br /> Image:StartPage_Wiki.JPG|650px<br /> rect 7 37 186 215 [[StartPage|The wiki's logo]]<br /> rect 11 249 190 365 [[Help:Wiki-Structure|Navigation bar]]<br /> rect 11 539 192 726 [[Help:Wiki-Structure|Tools]]<br /> rect 931 4 1070 27 [[Help:Wiki-Structure|Search box]]<br /> rect 884 3 917 32 [[Help:Wiki-Structure|Logging on and off]]<br /> default [[StartPage]]<br /> desc bottom-right<br /> </imagemap> |
<inputbox> | Create a search box, a button for creating new pages or link to a discussion page.http://www.mediawiki.org/wiki/Extension:InputBox | <inputbox><br /> type=search<br /> width=42<br /> placeholder=Search term<br /> buttonlabel=Search<br /> searchbuttonlabel=Full text<br /> break=no<br /> </inputbox> |
<nopdf> | The text within the tag will not be shown in PDF documents. | This text will not appear in PDF documents. |
<nowiki> | No wiki formatting | |
<pagetemplates> | Page templates predefine the structure and content of a new page and are shown as a choice each time a new page is created. | ==Minutes of the meeting on the ... == * In attendance: * Absent: * Excused... |
<pdfexcludepage> | Alias of <bs:universalexport:excludearticle> | |
<pdfhidetitle> | Excludes page title in PDF export. | |
<pdfpagebreak> | Forces a page brake when page is exported as a PDF. | |
<poem> | The poem tag makes formatting poetry or similarly structured texts easy. Line breaks in the source text are kept so that you do not need to use <br /> or indentation with ":". Wiki links, italics and so on are available as usual. |
<poem><br /> <br /> ''Jaques:''<br /> All the world's a stage, And all the men and women merely players; They have their exits and their entrances, And one man in his time plays many parts, His acts being seven ages.</poem> en.wikipedia.org/wiki/H:POEM#Retaining_newlines_and_spaces |
<pre> | Text between these tags is displayed as preformatted text. | preformatted text |
<quiz> | Multiple-choice, true/false, or text questions with evaluation. | |
<ref> | Creates footnotes. | |
<references> | List of the footnotes with explanation | |
<source> | mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi/ | <source lang="php"> HTML-Text </source> |