הבדלים בין גרסאות בדף "תבנית:Sub Chapter"
מתוך ויקירפואה
(יצירת דף עם התוכן "<noinclude> -This is the "Sub Chapter" template. It should be called in the following format: <pre> {{Chapter |Book= |Parent Chapter number= |Sub Chapter number=...") |
|||
שורה 5: | שורה 5: | ||
{{Chapter | {{Chapter | ||
|Book= | |Book= | ||
− | | | + | |Chapter number= |
|Sub Chapter number= | |Sub Chapter number= | ||
}} | }} | ||
שורה 19: | שורה 19: | ||
|template=Book Header | |template=Book Header | ||
}} | }} | ||
− | {{#set: | + | {{#set:ספר={{{Book|}}}}}{{#set:Parent Chapter number={{{Chapter number|}}}}}{{#set:Sub Chapter number={{{Sub Chapter number|}}}}}<div class="row"> |
<div class="col-sm-3" style="text-align: left;"> | <div class="col-sm-3" style="text-align: left;"> | ||
<span class="button-link"> | <span class="button-link"> | ||
[[{{#ask: | [[{{#ask: | ||
− | [[ | + | [[ספר::{{{Book|}}}]] |
− | [[ | + | [[מספר הפרק::{{{Chapter number|}}}]] |
|limit=1 | |limit=1 | ||
|searchlabel= | |searchlabel= | ||
|link=none | |link=none | ||
− | }}| | + | }}|הוֹרֶה פרק]] |
<!-- next sub chapter--><span class="button-link">{{#if: | <!-- next sub chapter--><span class="button-link">{{#if: | ||
{{#ask: | {{#ask: | ||
− | [[ | + | [[ספר::{{{Book|}}}]] |
[[Parent Chapter number::{{{Chapter number|}}}]] | [[Parent Chapter number::{{{Chapter number|}}}]] | ||
[[Sub Chapter number::{{#expr:{{{Sub Chapter number|}}}+1}}]] | [[Sub Chapter number::{{#expr:{{{Sub Chapter number|}}}+1}}]] | ||
שורה 41: | שורה 41: | ||
}} | }} | ||
|<!-- then -->[[{{#ask: | |<!-- then -->[[{{#ask: | ||
− | [[ | + | [[ספר::{{{Book|}}}]] |
[[Parent Chapter number::{{{Chapter number|}}}]] | [[Parent Chapter number::{{{Chapter number|}}}]] | ||
[[Sub Chapter number::{{#expr:{{{Sub Chapter number|}}}+1}}]] | [[Sub Chapter number::{{#expr:{{{Sub Chapter number|}}}+1}}]] | ||
שורה 47: | שורה 47: | ||
|searchlabel= | |searchlabel= | ||
|link=none | |link=none | ||
− | }}| | + | }}|הבא תַת פרק]] |
}}</span><!-- /next chapter--> | }}</span><!-- /next chapter--> | ||
<!-- prev sub chapter--><span class="button-link">{{#if: | <!-- prev sub chapter--><span class="button-link">{{#if: | ||
{{#ask: | {{#ask: | ||
− | [[ | + | [[ספר::{{{Book|}}}]] |
[[Parent Chapter number::{{{Chapter number|}}}]] | [[Parent Chapter number::{{{Chapter number|}}}]] | ||
[[Sub Chapter number::{{#expr:{{{Sub Chapter number|}}}-1}}]] | [[Sub Chapter number::{{#expr:{{{Sub Chapter number|}}}-1}}]] | ||
שורה 59: | שורה 59: | ||
|<!-- then --> | |<!-- then --> | ||
[[{{#ask: | [[{{#ask: | ||
− | [[ | + | [[ספר::{{{Book|}}}]] |
[[Parent Chapter number::{{{Chapter number|}}}]] | [[Parent Chapter number::{{{Chapter number|}}}]] | ||
[[Sub Chapter number::{{#expr:{{{Sub Chapter number|}}}-1}}]] | [[Sub Chapter number::{{#expr:{{{Sub Chapter number|}}}-1}}]] | ||
שורה 65: | שורה 65: | ||
|searchlabel= | |searchlabel= | ||
|link=none | |link=none | ||
− | }}| | + | }}|הקודם תַת פרק]] |
}}</span><!-- /prev sub chapter--> | }}</span><!-- /prev sub chapter--> | ||
</div> | </div> | ||
שורה 76: | שורה 76: | ||
{{#arraymap: | {{#arraymap: | ||
{{#ask: | {{#ask: | ||
− | [[Category: | + | [[Category:ערכים]] |
[[Sub Chapter::{{FULLPAGENAME}}]] | [[Sub Chapter::{{FULLPAGENAME}}]] | ||
|format=list | |format=list | ||
|link=none | |link=none | ||
− | |sort= | + | |sort=מספר הערך |
|order=ascending | |order=ascending | ||
|searchlabel= | |searchlabel= |
גרסה מ־06:38, 28 בפברואר 2021
-This is the "Sub Chapter" template. It should be called in the following format:
{{Chapter |Book= |Chapter number= |Sub Chapter number= }}
Edit the page to see the template text.