ਫਰਮਾ:BookCSS/doc
This is a documentation subpage for ਫਰਮਾ:BookCSS. It contains usage information, categories and other content that is not part of the original ਫਰਮਾ page. |
ਇਹ ਫਰਮਾ ਹੇਠ ਲਿਖੇ ਲੂਆ ਨੂੰ ਵਰਤਦਾ ਹੈ: |
Usage
ਸੋਧੋThis template includes mw:TemplateStyles CSS that applies to a specific work (or group of works). This allows the use of more semantically-correct markup rather than purely stylistic markup[1].
- 1 the stylesheet to use. If this is not given, a stylesheet related to the Index name is used.
- For example, the stylesheet for Index:Sandbox.djvu is at Template:BookCSS/Sandbox.djvu.css.
- This parameter is always needed in mainspace.
In Page: namespace
ਸੋਧੋPlace {{BookCSS}}
in the header.
If you have a CSS that is not specific to the Index name (for example, a common CSS shared by a series), use {{BookCSS|Title of CSS}}
, which will use Template:BookCSS/Title of CSS.css
.
In main namespace
ਸੋਧੋFor the Main namespace, place {{BookCSS}}
just before the transclusions:
{{BookCSS|Sandbox.djvu}} <pages index="Sandbox.djvu" from=1 to=2 />
Index of styles
ਸੋਧੋNotes
ਸੋਧੋWhen phab:T226275 is complete, it may be possible to deprecate this template and use Index page parameters instead.- Wikisource:Scriptorium/Archives/2021-03#New toys in 1.36.0-37 - work-specific CSS and fixed DjVu paragraphs
- A remaining advantage of
{{BookCSS}}
is that as a removable template, it can be applied selectively to certain pages and chapters, rather than to an entire book.
- A remaining advantage of
- Wikisource:Scriptorium/Archives/2021-03#New toys in 1.36.0-37 - work-specific CSS and fixed DjVu paragraphs
- ↑ For example, the use of
=== Heading ===
rather than{{center|{{x-larger|'''Heading'''}}}}
, or the ability to add styles to certain lists.