Template:Spec-paragraph

From Linux Web Expert

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

Mark text as descriptive, for use in guidelines and policies.

Usage: {{Spec-paragraph|Some spec text.}}

Some spec text.

Usage with a handle that functions as an anchor: {{Spec-paragraph|handle=ex-1|Some spec text.}}

ex-1 Some spec text.

Usage with a status marker: {{Spec-paragraph|status=todo|Some spec text.}}

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. 
Some spec text.
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.


Templates

<templatedata> { "description": "Styled box for normative text in guidelines and policies.", "params": { "1": { "label": "Text", "description": "Text to be displayed", "type": "string", "default": "", "suggested": true }, "discussion": { "label": "Discussion", "description": "Any discussion to be shown below the paragraph", "type": "string", "default": "", "suggested": false }, "handle": { "label": "Handle", "description": "A moniker that functions as an anchor", "type": "string", "default": "", "suggested": false }, "status": { "label": "Status", "description": "A status marker like 'wip' or 'fixme' or 'todo'.", "type": "string", "default": "", "suggested": false }, "class": { "label": "CSS Classes", "description": "Additional classes for the spec paragraph.", "type": "string", "default": "", "suggested": false }, "collapsible": { "label": "Collapsible", "description": "Whether the paragraph should have a button that allows it to be collapsed and expanded", "type": "boolean", "default": "", "suggested": false } } } </templatedata>