Manual:Wikitext and Template:WcagCheck: Difference between pages

(Difference between pages)
No edit summary
Tag: 2017 source edit
 
No edit summary
Tag: 2017 source edit
 
Line 1: Line 1:
<bookshelf src="Book:User manual" />
<noinclude>Template is included in Template:BSExtensionInfo and Template:BSExtensionInfobox to check all extensions for accessibility.</noinclude><templatestyles src="WcagCheck/styles.css" /><includeonly>{{#if: {{{wcagStatus|}}}|
<section begin="training-intro" />
<div class="wcaginfo">
 
==Accessibility==
 
{{{!}} class="wikitable" {{!}}
<span class="bi bi-box-arrow-down" style="color:#3e5389"></span>[[Media:Manual:Manual Wikitext Wikitext reference.pdf|'''Wikitext reference''']]
!style="width:200px" {{{!}}Test status:
 
{{!}}[[wcagStatus::{{{wcagStatus|}}}]]
<div class="training">
{{#ifeq: {{{extensionType|}}}|backend| |
Wikitext is a simplified markup language that is used to format and structure text and other data. <section end="training-intro" /><section end="training-intro" />
{{!}}-
 
!Checked for:
While HTML is the most common markup language for web pages, Wikitext is used in wiki systems. Like HTML, it uses tags to mark parts of text or other data.
{{!}}{{#arraymap:{{{wcagCheckedfor|}}}|,|@@@|[[wcagCheckedfor::@@@]]}} }}
 
{{!}}-
==How do I use Wikitext?==
!Last test date:
When you edit a page, you can switch between visual editing and source editing using the editor toolbar.
{{!}}[[wcagTestdate::{{{wcagTestdate|}}}]]
[[File:Manual:editing.png|alt=Screenshot: Visual Editor switch edit mode|center]]
{{#ifeq: {{{extensionType|}}}|backend||{{!}}-
 
!WCAG level
Wikitext can be entered in source editing mode. When you are in visual editing mode, VisualEditor inserts Wikitext "behind the scenes". If VisualEditor doesn't format elements on a page correctly, you can always switch to source editing to correct the issues directly in Wikitext.<br />
{{!}}[[wcagLevel::{{{wcagLevel|}}}]]
 
{{!}}-
==Examples of Wikitext==
!WCAG support:
Here are some typical examples of Wikitext:
{{!}} class="{{#switch:{{{wcagSupport}}}|supports=supports|partially supports=partiallysupports|does not support=notsupports|}}" {{!}}[[wcagSupport::{{{wcagSupport|}}}]] {{#ifeq: {{{wcagSupport}}}|partially supports|<span> (workaround: [[wcagWorkaround::{{{wcagWorkaround|}}}]])</span>|{{#ifeq: {{{wcagSupport}}}|does not support|<span> (workaround: [[wcagWorkaround::{{{wcagWorkaround|}}}]])</span>}}|}} }}
<section begin="training" />
{{#if: {{{wcagComments|}}}|
===Text formatting===
{{!}}-
<section begin="training-slide1" />
!Comments:
 
{{!}}
*This is <code><nowiki>'''bold'''</nowiki></code>
{{{wcagComments|}}}|}}
*This is <code><nowiki>''italic''</nowiki></code>
{{!}}-
*This is <code><nowiki><u>underlined</u></nowiki></code><section end="training-slide1" />
!Extension type:
 
{{!}}[[extensionType::{{{extensionType|}}}]]
===Structuring===
{{#ifeq: {{{extensionType|}}}|backend| |
<section begin="training-slide2" />
{{!}}-
 
!Extension focus:
*This is a <code>==Heading==</code>
{{!}}[[extensionFocus::{{{extensionFocus|}}}]]
*This is an <code>*unordered list element</code>
{{!}}} }}
*Table:<syntaxhighlight lang="text">
<div>|{{#set: wcagCheck=0}} }}</includeonly>
{| class="wikitable"
|-
!header 1
!header 2
|-
|row 1, cell 1
|row 1, cell 2
|-
|row 2, cell 1
|row 2, cell 2
|}</syntaxhighlight><section end="training-slide2" />
 
 
===Links / Embedded files===
<section begin="training-slide3" />
 
'''Link to internal wiki page'''
<syntaxhighlight lang="text">
[[Wikipage|Label]]
[[Pancake|Best Pancake]]
</syntaxhighlight>
'''Link to external website'''
<syntaxhighlight lang="text">
[url label]
[https://wikipedia.org Wikipedia]
</syntaxhighlight>
'''Link with parameters''
<syntaxhighlight lang="text">
<span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page]</span>
</syntaxhighlight>
This link opens the referenced page in edit mode in a new tab.
<section end="training-slide3" />
 
'''Embed image/file'''
 
<br />
<section begin="training-slide4" />
 
*<code>[['''Datei:'''<nowiki>image-or-pdf-name.png]]</nowiki></code> - - - '''Image/PDF is embedded on page'''<section end="training-slide4" />
**the wiki checks, if a preview can be generated (e.g., for "png", "jpeg", "gif", "svg") and embeds the preview
**otherwise, a link to the file description page is created
***can be embedded: PDF, Tiff (with extension)
***cannot be embedded: Microsoft Office- und Libre Office-Dateien; Shell-Skripte, ...<section begin="training-slide4" />
*<code>[['''Media:'''<nowiki>image-or-pdf--name.png]]</nowiki></code> - - - - '''Links to image / PDF'''
*<code>[[''':Datei:'''<nowiki>image-or-pdf--name.png]]</nowiki></code> - - - '''Links to file description page'''
<section end="training-slide4" /></div>
<section end="training" />
 
===Magic words===
{| class="contenttable"
!Type of Wikitext
!Example
|-
|Special character
|'''<code>&amp;atilde;</code>  &rarr; &atilde;'''
'''<code>&amp;ccedil;</code> &rarr; &ccedil;'''
 
UTF-8 is possible
|-
|Comment
|<code>'''<nowiki><!-- unnoticed --></nowiki>'''</code>
|-
|No "wiki translation"
|<code>'''&lt;nowiki'''&gt;</code> and <code>'''</pre'''></code>
|-
|Table of contents
|<code>'''<nowiki>__TOC__</nowiki>'''</code> and <code>'''<nowiki>__NOTOC__</nowiki>'''</code>
|-
|Signature
|<code>'''<nowiki>--~~~</nowiki>'''</code>
|-
|Redirect
|<code>'''<nowiki>#REDIRECT [[targetpage]]</nowiki>'''</code>
|-
|Template
|<code>'''<nowiki>{{template name}}</nowiki>'''</code>
|}
<section end="wikitextTraining" />
{{Box Links-en
|Topic1=[https://meta.wikimedia.org/wiki/Help:Wikitext_examples  meta.wikimedia.org/wiki/Help:Wikitext_examples]
|Topic2=[[MagicWords|Magic words]]}}
 
[[en:{{FULLPAGENAME}}]]
[[de:Wikitext]]
[[Category:Editing]]
[[Category:Concept]]

Revision as of 12:44, 5 August 2022

Template is included in Template:BSExtensionInfo and Template:BSExtensionInfobox to check all extensions for accessibility.




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

No categories assignedEdit

Discussions