User:Meghdhanu/Common Scripts: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 3: Line 3:


{| class="wikitable"
{| class="wikitable"
|+ Caption text
|colspan="4"|<center>Common Scripts</center>
|-
|-
! Sr. No !! Purpose !! Syntex !! Output
! Sr. No !! Purpose !! Syntex !! Output
|-
|-
| 1 || Bold || <nowiki>'''ABCD'''</nowiki> || '''ABCD'''
| || Bold || <nowiki>'''ABCD'''</nowiki> || '''ABCD'''
|-
|-
| 2 || Italics || <nowiki>''ABCD''</nowiki> || ''ABCD''
| || Italics || <nowiki>''ABCD''</nowiki> || ''ABCD''
|-
|-
| 2 || Align Center || <nowiki>{{center|ABCD}}</nowiki> || {{center|ABCD}}
| || increasing font size || <nowiki><big>ABCD</big></nowiki> || <big>ABCD</big>
|-
|-
| 2 || Align Right || <nowiki>{{Right|ABCD}}</nowiki> || {{Right|ABCD}}
| || reducing font size || <nowiki><small>ABCD</small></nowiki> || <small>ABCD</small>
|-
|-
| 3 || Foot Notes || <nowiki>Reference<ref>''ABCD''</ref></nowiki> || Reference<ref>''ABCD''</ref><br>{{reflist}}
| || Colour text || <nowiki>{{color|green|ABCD}}</nowiki> || {{color|green|ABCD}}
|-
|-
| 4 || Poem Text || <nowiki>{{Block center|<poem>મેં એક બિલાડી પાળી છે
| || Align Center || <nowiki>{{center|ABCD}}</nowiki> || {{center|ABCD}}
|-
|  || Align Center || <nowiki><center>ABCD</center></nowiki> || <center>ABCD</center>
|-
|colspan="4"|Center templated leaves one additional line space below, it needs correction
|-
|  || Align Right || <nowiki>{{Right|ABCD}}</nowiki> || {{Right|ABCD}}
|-
|  || Foot Notes || <nowiki>Reference<ref>''ABCD''</ref></nowiki> || Reference<ref>''ABCD''</ref><br>{{reflist}}
|-
|| Poem Text || <nowiki>{{Block center|<poem>મેં એક બિલાડી પાળી છે
તે રંગે બહુ રૂપાળી છે</poem>}}</nowiki> || {{Block center|<poem>મેં એક બિલાડી પાળી છે
તે રંગે બહુ રૂપાળી છે</poem>}}</nowiki> || {{Block center|<poem>મેં એક બિલાડી પાળી છે
તે રંગે બહુ રૂપાળી છે</poem>}}
તે રંગે બહુ રૂપાળી છે</poem>}}
|-
|-
| 5 || Paragraph Text || <nowiki>{{Poem2Open}}ગાંધી કુટુંબ પ્રથમ તો ગાંધિયાણાનો વેપાર કરનારું હોય એમ જણાય છે. પણ મારા દાદાથી માંડીને ત્રણ પેઢી થયાં તો એ કારભારું કરતું આવેલું છે. ઉત્તમચંદ ગાંધી અથવા ઓતા ગાંધી ટેકીલા હશે એમ લાગે છે. તેમને રાજખટપટને લીધે પોરબંદર છોડવું પડેલું ને જૂનાગઢ રાજ્યમાં આશ્રય લીધેલો. તેમણે નવાબસાહેબને સલામ ડાબે હાથે કરી. કોઈએ આ દેખાતા અવિનયનું કારણ પૂછયું તો જવાબ મળ્યો : ‘જમણો હાથ તો પોરબંદરને દેવાઈ ચૂક્યો છે.’{{Poem2Close}}</nowiki> || {{Poem2Open}}ગાંધી કુટુંબ પ્રથમ તો ગાંધિયાણાનો વેપાર કરનારું હોય એમ જણાય છે. પણ મારા દાદાથી માંડીને ત્રણ પેઢી થયાં તો એ કારભારું કરતું આવેલું છે. ઉત્તમચંદ ગાંધી અથવા ઓતા ગાંધી ટેકીલા હશે એમ લાગે છે. તેમને રાજખટપટને લીધે પોરબંદર છોડવું પડેલું ને જૂનાગઢ રાજ્યમાં આશ્રય લીધેલો. તેમણે નવાબસાહેબને સલામ ડાબે હાથે કરી. કોઈએ આ દેખાતા અવિનયનું કારણ પૂછયું તો જવાબ મળ્યો : ‘જમણો હાથ તો પોરબંદરને દેવાઈ ચૂક્યો છે.’{{Poem2Close}}
| || Paragraph Text || <nowiki>{{Poem2Open}}ગાંધી કુટુંબ પ્રથમ તો ગાંધિયાણાનો વેપાર કરનારું હોય એમ જણાય છે. પણ મારા દાદાથી માંડીને ત્રણ પેઢી થયાં તો એ કારભારું કરતું આવેલું છે. ઉત્તમચંદ ગાંધી અથવા ઓતા ગાંધી ટેકીલા હશે એમ લાગે છે. તેમને રાજખટપટને લીધે પોરબંદર છોડવું પડેલું ને જૂનાગઢ રાજ્યમાં આશ્રય લીધેલો. તેમણે નવાબસાહેબને સલામ ડાબે હાથે કરી. કોઈએ આ દેખાતા અવિનયનું કારણ પૂછયું તો જવાબ મળ્યો : ‘જમણો હાથ તો પોરબંદરને દેવાઈ ચૂક્યો છે.’{{Poem2Close}}</nowiki> || {{Poem2Open}}ગાંધી કુટુંબ પ્રથમ તો ગાંધિયાણાનો વેપાર કરનારું હોય એમ જણાય છે. પણ મારા દાદાથી માંડીને ત્રણ પેઢી થયાં તો એ કારભારું કરતું આવેલું છે. ઉત્તમચંદ ગાંધી અથવા ઓતા ગાંધી ટેકીલા હશે એમ લાગે છે. તેમને રાજખટપટને લીધે પોરબંદર છોડવું પડેલું ને જૂનાગઢ રાજ્યમાં આશ્રય લીધેલો. તેમણે નવાબસાહેબને સલામ ડાબે હાથે કરી. કોઈએ આ દેખાતા અવિનયનું કારણ પૂછયું તો જવાબ મળ્યો : ‘જમણો હાથ તો પોરબંદરને દેવાઈ ચૂક્યો છે.’{{Poem2Close}}
|-
|-
| 6 || To hide the page path shown on top : || <nowiki>{{SetTitle}}</nowiki> ||{{SetTitle}}
| || To hide the page path shown on top : || <nowiki>{{SetTitle}}</nowiki> ||{{SetTitle}}
|-
|-
| 7 || To Show Heading in standard format - brown, bold and big text: || <nowiki>{{Heading|ABCD|xyz}}</nowiki> ||{{Heading|ABCD|xyz}}
| || To Show Heading in standard format - brown, bold and big text: || <nowiki>{{Heading|ABCD|xyz}}</nowiki> ||{{Heading|ABCD|xyz}}
 
|-
|  || Chapter footer for navigating to previous chapter : || <nowiki>{{HeaderNav2
|previous = અબક
|next = અબક
}}</nowiki> ||{{HeaderNav2
|previous = અબક
|next = અબક
}}
|-
|  || For placing JPG, PDF or audio Files : || <nowiki>[[File:Ekatra-emblem.png|200px|center]]</nowiki> ||[[File:Ekatra-emblem.png|200px|center]]
|-
|  || For indenting lines / creating gaps in Poem formtting: || <nowiki>{{gap}}મેં એક બિલાડી પાળી છે<br>
{{gap|4em}}તે રંગે બહુ રૂપાળી છે</nowiki> ||{{gap}}મેં એક બિલાડી પાળી છે<br>
{{gap|4em}}તે રંગે બહુ રૂપાળી છે
|-
|  || line breaks|| <nowiki>મેં એક બિલાડી પાળી છે<br>તે રંગે બહુ રૂપાળી છે</nowiki> ||મેં એક બિલાડી પાળી છે<br>તે રંગે બહુ રૂપાળી છે
|-
|  || horizontal line || <nowiki><hr></nowiki> ||<hr>
|-
|  || horizontal line at Center || <nowiki>{{rule|4em|height=3px}}</nowiki> ||{{rule|4em|height=3px}}
|-
|  || Running Header : to place text with 3 alignment in single line || <nowiki>{{rh|left|center|right}}</nowiki> ||{{rh|left|center|right}}
|-
|  || Hiding Text || <nowiki><!-- This is hiddent Text in right side box --></nowiki> ||<!-- This is hiddent Text -->
|}
|}


<poem>
<poem>
{{color|blue|2. To Show Heading in standard format - brown, bold and big text:}}
<nowiki>{{Heading|અબક|}}</nowiki>
{{color|blue|3. To Set paragraph indent on pros text:}}
<nowiki>{{Poem2Open}}</nowiki>
<nowiki>{{Poem2Close}}</nowiki>
{{color|blue|4. To place Poem stanza block in center:}}
<nowiki>{{Block center|<poem></nowiki>
<nowiki>અબક< /poem>}}</nowiki>
{{color|blue|5. For giving footnotes and references :}}
<nowiki><ref></ref></nowiki>
{{color|blue|6. Chapter footer for navigating to previous chapter :}}
<nowiki>{{HeaderNav2
|previous = અબક
|next = અબક
}}</nowiki>
{{color|blue|7. For aligning text to right :}}
<nowiki>{{right|--અબક}}</nowiki>
{{color|blue|8. For placing JPG, PDF or audio Files :}}
<nowiki>[[File:abcs|200px|center]]</nowiki>
{{color|blue|9. For indenting lines / creating gaps in Poem formtting:}}
<nowiki>{{gap}}</nowiki>


</poem>
</poem>