Difference between revisions of "Template:Style P-Title level"

From Teopedia library
Jump to navigation Jump to search
m (+small capitals for level 0)
Line 1: Line 1:
 
<noinclude>{{Text for paragraph styles
 
<noinclude>{{Text for paragraph styles
 
  | description = '''Title of certain level'''. This style is used to design titles and subtitles of levels 1 trough 6 and add them to table of contents. Uses tag '''<nowiki><h></nowiki>'''. If level=0 then use tag '''<nowiki><div></nowiki>''' instead, so it does not reflect in table of contents. See also {{t|Style P-Title}}.
 
  | description = '''Title of certain level'''. This style is used to design titles and subtitles of levels 1 trough 6 and add them to table of contents. Uses tag '''<nowiki><h></nowiki>'''. If level=0 then use tag '''<nowiki><div></nowiki>''' instead, so it does not reflect in table of contents. See also {{t|Style P-Title}}.
  | modifications = text-align: center; font-weight: bold; border-bottom: 0px solid grey; font-family: 'Droid Sans', Arial, sans-serif;
+
  | modifications = text-align: center; font-weight: bold; font-family: 'Droid Sans', Arial, sans-serif; border-bottom: 0px solid grey; small capitals for level 0
 
  | to copy = Style P-Title level{{!}}{{!}}{{!}}
 
  | to copy = Style P-Title level{{!}}{{!}}{{!}}
 
}}
 
}}
Line 28: Line 28:
 
{{Style P-Title level |2| Title name | short_anchor}}
 
{{Style P-Title level |2| Title name | short_anchor}}
 
</pre>
 
</pre>
 
+
{{Style S-Small capitals|}}
 
</noinclude><includeonly>{{#if: {{{3|}}}| <span id="{{{3|}}}"></span>|}}
 
</noinclude><includeonly>{{#if: {{{3|}}}| <span id="{{{3|}}}"></span>|}}
<{{#ifeq: {{{1|}}}|0|div|h{{{1|1}}}}} style="text-align: center; font-weight: bold; border-bottom: 0px solid grey; font-family: 'Droid Sans', Arial, sans-serif;">{{{2|}}}</{{#ifeq: {{{1|}}}|0|div|h{{{1|1}}}}}>
+
<{{#ifeq: {{{1|}}}|0|div|h{{{1|1}}}}} style="text-align: center; font-weight: bold; font-family: 'Droid Sans', Arial, sans-serif; {{#ifeq: {{{1|}}}|0|font-variant: small-caps;|}} border-bottom: 0px solid grey; ">{{{2|}}}</{{#ifeq: {{{1|}}}|0|div|h{{{1|1}}}}}>
 
</includeonly>
 
</includeonly>

Revision as of 11:41, 7 December 2021

This style is to design paragraph in text. To highligt just several symbols use templates for symbol styles.

Title of certain level. This style is used to design titles and subtitles of levels 1 trough 6 and add them to table of contents. Uses tag <h>. If level=0 then use tag <div> instead, so it does not reflect in table of contents. See also {{Style P-Title}}.


Modifications:

  • text-align: center
  • font-weight: bold
  • font-family: 'Droid Sans', Arial, sans-serif
  • border-bottom: 0px solid grey
  • small capitals for level 0


To copy:

{{Style P-Title level|||}}


Using

{{Style P-Title level |Level| Title | Anchor}}

где

  • Level - number from 0 (for tag <div> and no TOC) up to 6; default = 1, optional
  • Title - text of a title, mandatory
  • Anchor - aditional anchor, wich could be used in references, f.e.: Article name#anchor_name, optional. Note that headers of any level set by equal sign already have full text anchors. This parameter allows to give an additional short version.


! Note, that level number has to be set without spaces! Other parameters do not depend on this.

Examples

  • 1-st level title without additional anchor
{{Style P-Title level || Title name}}
  • 2-nd level title with anchor
{{Style P-Title level |2| Title name | short_anchor}}