ਫਰਮਾ:BookCSS
ਇਹ ਫਰਮਾ ਹੇਠ ਲਿਖੇ ਲੂਆ ਨੂੰ ਵਰਤਦਾ ਹੈ: |
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.
The above documentation is transcluded from ਫਰਮਾ:BookCSS/doc. (ਸੋਧੋ | ਅਤੀਤ) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |