Template:Spec-paragraph
Template for styling specification paragraphs following the W3C Style guidle[1].
Template styles: Template:Spec-paragraph/styles.css
To make a new template based on {{Spec-paragraph}}, use the Spec-paragraph/subst meta template:
{{subst:Spec-paragraph/subst|TYPE|ADJECTIVE|SAMPLE}}
Usage
[edit]Mark text as descriptive, for use in guidelines and policies.
Usage: {{Spec-paragraph|Some spec text.}}
Usage with a handle that functions as an anchor: {{Spec-paragraph|handle=ex-1|Some spec text.}}
Usage with a status marker: {{Spec-paragraph|status=todo|Some spec text.}}
This template can also attach a discussion to a part of a guideline:
Usage with discussion:
{{{{BASEPAGENAME}}|{{{2|SAMPLE}}} |discussion=Some ongoing discussion. : Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. :: At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. : Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
- At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
- Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Templates
[edit]Styled box for normative text in guidelines and policies.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | Text to be displayed
| String | suggested |
Discussion | discussion | Any discussion to be shown below the paragraph
| String | optional |
Handle | handle | A moniker that functions as an anchor
| String | optional |
Status | status | A status marker like 'wip' or 'fixme' or 'todo'.
| String | optional |
CSS Classes | class | Additional classes for the spec paragraph.
| String | optional |
Collapsible | collapsible | Whether the paragraph should have a button that allows it to be collapsed and expanded
| Boolean | optional |